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

View file

@ -13,7 +13,7 @@
<key>name</key> <key>name</key>
<string>TM_COMMENT_START</string> <string>TM_COMMENT_START</string>
<key>value</key> <key>value</key>
<string>((</string> <string>/*</string>
</dict> </dict>
</array> </array>
</dict> </dict>