Skip to content

Commit 8be0a56

Browse files
committed
editors: Add the new keywords to the syntax highlighter
1 parent 207ac16 commit 8be0a56

File tree

5 files changed

+5
-3
lines changed

5 files changed

+5
-3
lines changed

editors/Lite/language_piccodescript.lua

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@ syntax.add {
2626
["is"] = "keyword",
2727
["return"] = "keyword",
2828
["catch"] = "keyword",
29+
["let"] = "keyword",
30+
["in"] = "keyword",
2931
["await"] = "keyword",
3032
["true"] = "literal",
3133
["false"] = "literal",

editors/emacs/piccodescript-mode.el

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
'("true" "false" "await"))
1717

1818
(defun piccode-keywords ()
19-
'("import" "module" "if" "else" "when" "is" "do" "catch" "return"))
19+
'("import" "module" "if" "else" "when" "is" "do" "catch" "return" "let" "in"))
2020

2121
(defun piccode-font-lock-keywords ()
2222
(list

editors/nvim/syntax/pics.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ syn region picsComment start="\/\/" end="$" contains=picsComment,picsTodo,@Spell
3838
" syn region picsComment start="\%%" contains=picsComment,picsTodo,@Spell
3939
syn keyword picsTodo contained TODO FIXME
4040

41-
syn keyword picsKeyword module when is if else import do catch return
41+
syn keyword picsKeyword module when is if else import do catch return let in
4242

4343
syn keyword picsBoolean true false
4444
syn match picsConstructor "(\s*)"
-4.54 KB
Binary file not shown.

editors/vscode/syntaxes/picoc.tmLanguage.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
"main": {
1515
"patterns": [
1616
{
17-
"match": "\\b(if|else|import|module|do|when|is|return|catch)\\b",
17+
"match": "\\b(if|else|import|module|do|when|is|return|catch|let|in)\\b",
1818
"name": "keyword.piccodescript"
1919
},
2020
{

0 commit comments

Comments
 (0)