mirror of
https://github.com/Reuh/sublime-anselme.git
synced 2025-10-27 11:49:30 +00:00
Update to Anselme 26
This commit is contained in:
parent
2f3dd1ee56
commit
7501facc8a
1 changed files with 15 additions and 7 deletions
|
|
@ -10,7 +10,7 @@ scope: source.anselme
|
||||||
|
|
||||||
variables:
|
variables:
|
||||||
identifier: '[^\~\`\^\+\-\=\<\>\/\[\]\*\{\}\|\\\_\!\?\,\;\:\(\)\"\@\&\$\#\%\.\d\s][^\~\`\^\+\-\=\<\>\/\[\]\*\{\}\|\\\_\!\?\,\;\:\(\)\"\@\&\$\#\%\.]*'
|
identifier: '[^\~\`\^\+\-\=\<\>\/\[\]\*\{\}\|\\\_\!\?\,\;\:\(\)\"\@\&\$\#\%\.\d\s][^\~\`\^\+\-\=\<\>\/\[\]\*\{\}\|\\\_\!\?\,\;\:\(\)\"\@\&\$\#\%\.]*'
|
||||||
operator: '[;:=+-/*%^,~?#|&!><!.]+'
|
operator: '[;:=+-/*%^,~?#|&!><!.$]+'
|
||||||
|
|
||||||
contexts:
|
contexts:
|
||||||
# Line types
|
# Line types
|
||||||
|
|
@ -63,7 +63,7 @@ contexts:
|
||||||
function_definition_args:
|
function_definition_args:
|
||||||
- match: \(
|
- match: \(
|
||||||
scope: punctuation.section.parens.start.anselme
|
scope: punctuation.section.parens.start.anselme
|
||||||
push: parameter_paren
|
set: parameter_paren
|
||||||
- include: pop_on_line_end
|
- include: pop_on_line_end
|
||||||
parameter_paren:
|
parameter_paren:
|
||||||
- meta_scope: meta.function.parameters.anselme
|
- meta_scope: meta.function.parameters.anselme
|
||||||
|
|
@ -84,6 +84,7 @@ contexts:
|
||||||
- match: \)
|
- match: \)
|
||||||
scope: punctuation.section.parens.end.anselme
|
scope: punctuation.section.parens.end.anselme
|
||||||
pop: true
|
pop: true
|
||||||
|
- include: pop_on_line_end
|
||||||
parameter_default:
|
parameter_default:
|
||||||
- match: '(?=,|\))'
|
- match: '(?=,|\))'
|
||||||
scope: punctuation.separator.anselme
|
scope: punctuation.separator.anselme
|
||||||
|
|
@ -99,11 +100,12 @@ contexts:
|
||||||
3: punctuation.separator.anselme
|
3: punctuation.separator.anselme
|
||||||
4: variable.other.constant.anselme
|
4: variable.other.constant.anselme
|
||||||
set: variable_definition_value
|
set: variable_definition_value
|
||||||
- match: '({{identifier}})(?:(:)({{identifier}}))?'
|
- match: '(@?)\s*({{identifier}})(?:(:)({{identifier}}))?'
|
||||||
captures:
|
captures:
|
||||||
1: variable.other.anselme
|
1: keyword.other.anselme
|
||||||
2: punctuation.separator.anselme
|
2: variable.other.anselme
|
||||||
3: variable.other.anselme
|
3: punctuation.separator.anselme
|
||||||
|
4: variable.other.anselme
|
||||||
set: variable_definition_value
|
set: variable_definition_value
|
||||||
- include: pop_on_line_end
|
- include: pop_on_line_end
|
||||||
variable_definition_value:
|
variable_definition_value:
|
||||||
|
|
@ -122,6 +124,9 @@ contexts:
|
||||||
push: paren
|
push: paren
|
||||||
- match: \)
|
- match: \)
|
||||||
scope: invalid.illegal.stray-paren-end.anselme
|
scope: invalid.illegal.stray-paren-end.anselme
|
||||||
|
- match: \%\[
|
||||||
|
scope: punctuation.section.brackets.start.anselme
|
||||||
|
push: string_subtext
|
||||||
- match: \[
|
- match: \[
|
||||||
scope: punctuation.section.brackets.start.anselme
|
scope: punctuation.section.brackets.start.anselme
|
||||||
push: list
|
push: list
|
||||||
|
|
@ -148,6 +153,9 @@ contexts:
|
||||||
scope: punctuation.accessor.anselme
|
scope: punctuation.accessor.anselme
|
||||||
- match: ','
|
- match: ','
|
||||||
scope: punctuation.separator.anselme
|
scope: punctuation.separator.anselme
|
||||||
|
- match: '\$(?=\()'
|
||||||
|
scope: keyword.other.anselme
|
||||||
|
push: function_definition_args
|
||||||
- match: '{{operator}}'
|
- match: '{{operator}}'
|
||||||
scope: keyword.operator.anselme
|
scope: keyword.operator.anselme
|
||||||
- match: \"
|
- match: \"
|
||||||
|
|
@ -177,7 +185,7 @@ contexts:
|
||||||
push: expression_in_subtext
|
push: expression_in_subtext
|
||||||
- include: text
|
- include: text
|
||||||
expression_in_subtext:
|
expression_in_subtext:
|
||||||
- match: \]
|
- match: '(?=\])'
|
||||||
scope: punctuation.section.brackets.end.anselme
|
scope: punctuation.section.brackets.end.anselme
|
||||||
pop: true
|
pop: true
|
||||||
- include: expression
|
- include: expression
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue