highlight keywords

This commit is contained in:
Vyacheslav Matyukhin 2022-06-20 23:54:34 +03:00
parent 99bd6d421d
commit dab6b3d09e
No known key found for this signature in database
GPG Key ID: 3D2A774C5489F96C

View File

@ -16,6 +16,7 @@ repository:
- include: "#string"
- include: "#block"
- include: "#function-call"
- include: "#keywords"
let:
match: ^\s*(\w+)\s*=
captures:
@ -78,6 +79,9 @@ repository:
name: punctuation.definition.block.squiggle
patterns:
- include: "$self"
keywords:
match: \b(if|then|else|to)\b
name: keyword.control.squiggle
integer:
match: \b\d+([_a-zA-Z]+[_a-zA-Z0-9]*)?
name: constant.numeric.integer.squiggle