More specific loop keyword high-lighting

This commit is contained in:
Bruno BELANYI 2022-06-03 20:16:14 +02:00
parent b22ca8cd67
commit aff11eefce
2 changed files with 12 additions and 5 deletions

View file

@ -4,6 +4,13 @@
"primitive" "primitive"
] @keyword.function ] @keyword.function
[
"do"
"for"
"to"
"while"
] @keyword.repeat
[ [
"array" "array"
(break_expression) (break_expression)

View file

@ -28,13 +28,13 @@ in
/* ^ keyword */ /* ^ keyword */
for i := 12 to 27 do 42; for i := 12 to 27 do 42;
/* <- keyword */ /* <- keyword.repeat */
/* ^ keyword */ /* ^ keyword.repeat */
/* ^ keyword */ /* ^ keyword.repeat */
while 12 do break while 12 do break
/* <- keyword */ /* <- keyword.repeat */
/* ^ keyword */ /* ^ keyword.repeat */
/* ^ keyword */ /* ^ keyword */
end end