Skip to content

Commit

Permalink
Added is keyword
Browse files Browse the repository at this point in the history
  • Loading branch information
zedritsch authored Dec 8, 2023
1 parent 54b32f3 commit 5f4a6f8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions syntax/laye.tmLanguage.json
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@
"patterns": [
{
"name": "keyword.laye",
"match": "\\b(?:alias|alignof|and|as|assert|break|c(?:ast|atch|allconv|ase|onst|ontinue)|default|defer|delete|discard|discardable|do|else|enum|export|for|foreign|from|goto|if|import|inline|mut|new|not|offsetof|operator|or|return|sizeof|struct|switch|test|try|varargs|variant|xor|xyzzy)\\b"
"match": "\\b(?:alias|alignof|and|as|assert|break|cast|catch|callconv|case|const|continue|default|defer|delete|discard|discardable|do|else|enum|export|for|foreign|from|goto|if|import|inline|is|mut|new|not|offsetof|operator|or|return|sizeof|struct|switch|test|try|varargs|variant|xor|xyzzy)\\b"
},
{
"name": "constant.language.laye",
Expand Down Expand Up @@ -142,7 +142,7 @@
},
"type": {
"name": "entity.name.type.laye",
"match": "(?<=\\b(?:alias|const|enum|struct|variant)\\s+)[0-9A-Z_a-z]+\\b|(?<![0-9A-Z_a-z]\\s+)\\b[0-9A-Z_a-z]+\\b(?=(?:\\s*<[\\s,0-9A-Z_a-z]*>)?[\\s&*?]*[0-9A-Z_a-z{])|(?<=<(?:[\\s,0-9A-Z_a-z]+,)?\\s*)[0-9A-Z_a-z]+(?=\\s*[,>])"
"match": "(?<=\\b(?:alias|const|enum|struct|variant)\\s+)[0-9A-Z_a-z]+\\b|(?<![0-9A-Z_a-z]\\s+)\\b[0-9A-Z_a-z]+\\b(?!\\s*(?:and|is|x?or)\\b)(?=(?:\\s*<[\\s,0-9A-Z_a-z]*>)?[\\s&*?]*[0-9A-Z_a-z{])|(?<=<(?:[\\s,0-9A-Z_a-z]+,)?\\s*)[0-9A-Z_a-z]+(?=\\s*[,>])"
},
"function": {
"name": "entity.name.function.laye",
Expand Down

0 comments on commit 5f4a6f8

Please sign in to comment.