1
0
Fork 0
mirror of https://github.com/Reuh/sublime-anselme.git synced 2025-10-27 11:49:30 +00:00

Update to Anselme v2.0.0-beta

This commit is contained in:
Étienne Fildadut 2024-01-01 14:13:20 +01:00
parent 35daa005cc
commit 2da885abe8
2 changed files with 13 additions and 8 deletions

View file

@ -19,7 +19,7 @@ variables:
contexts:
prototype:
- match: '\(\('
- match: '\/\*'
scope: comment.line.anselme punctuation.definition.comment.anselme
push: comment
- match: '\s+'
@ -32,10 +32,10 @@ contexts:
comment:
- meta_scope: comment.line.anselme
- match: '\(\('
- match: '\/\*'
scope: punctuation.definition.comment.anselme
push: comment
- match: '\)\)|$'
- match: '\*\/|$'
scope: punctuation.definition.comment.anselme
pop: true
@ -54,10 +54,15 @@ contexts:
- match: '\('
scope: punctuation.section.parens.begin.anselme
push: parenthesis
- match: '\::?[&@]?\$'
- match: '\::?&?@?\$'
scope: keyword.declaration.anselme
push: function_definition
- match: '(\::?[&@]?)({{identifier}})'
- match: '(\#)({{identifier}})'
captures:
1: keyword.declaration.anselme
2: entity.name.label.anselme
push: secondary
- match: '(\::?&?@?)({{identifier}})'
captures:
1: keyword.declaration.anselme
2: variable.other.anselme
@ -102,7 +107,7 @@ contexts:
- match: '\!'
scope: keyword.operator.logical.anselme
set: primary
- match: '\*'
- match: '\*|\%|\>'
scope: keyword.operator.anselme
set: primary
@ -211,7 +216,7 @@ contexts:
- match: '\~|\~\?|\|\>'
scope: keyword.control.conditional.anselme
push: primary
- match: '\#|\:\:|\:'
- match: '\#|\:\:|\:|\-\>'
scope: keyword.operator.anselme
push: primary
- match: '\&|\|'