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