mirror of
https://github.com/Reuh/sublime-anselme.git
synced 2025-10-27 11:49:30 +00:00
Update to Anselme 0.10
This commit is contained in:
parent
3e86cc190a
commit
732ca7f6c5
1 changed files with 7 additions and 14 deletions
|
|
@ -2,14 +2,14 @@
|
||||||
---
|
---
|
||||||
# http://www.sublimetext.com/docs/3/syntax.html
|
# http://www.sublimetext.com/docs/3/syntax.html
|
||||||
name: Anselme
|
name: Anselme
|
||||||
comment: "Anselme v0.5.0 syntax"
|
comment: "Anselme v0.10.0 syntax"
|
||||||
file_extensions:
|
file_extensions:
|
||||||
- ans
|
- ans
|
||||||
- anselme
|
- anselme
|
||||||
scope: source.anselme
|
scope: source.anselme
|
||||||
|
|
||||||
variables:
|
variables:
|
||||||
identifier: '[^\s.{}§><()~+\-*/%^=!&|:,\n#][^.{}§><()~+\-*/%^=!&|:,\n#]*'
|
identifier: '[^\{\}\§\>\<\(\)\~\+\-\*\/\%\=\!\&\|\:\^\,\@\s\%\.\"\d][^\{\}\§\>\<\(\)\~\+\-\*\/\%\=\!\&\|\:\^\,\@\s\%\.\"]*'
|
||||||
|
|
||||||
contexts:
|
contexts:
|
||||||
main:
|
main:
|
||||||
|
|
@ -35,7 +35,7 @@ contexts:
|
||||||
push: line_expression
|
push: line_expression
|
||||||
- match: '^\s*#'
|
- match: '^\s*#'
|
||||||
scope: keyword.other.anselme
|
scope: keyword.other.anselme
|
||||||
push: tag_expression
|
push: line_expression
|
||||||
- match: '^\s*@'
|
- match: '^\s*@'
|
||||||
scope: keyword.control.anselme
|
scope: keyword.control.anselme
|
||||||
push: line_expression
|
push: line_expression
|
||||||
|
|
@ -54,7 +54,7 @@ contexts:
|
||||||
set: line_expression
|
set: line_expression
|
||||||
- match: '#'
|
- match: '#'
|
||||||
scope: keyword.other.anselme
|
scope: keyword.other.anselme
|
||||||
set: tag_expression
|
set: line_expression
|
||||||
- match: '\n'
|
- match: '\n'
|
||||||
pop: true
|
pop: true
|
||||||
|
|
||||||
|
|
@ -64,8 +64,8 @@ contexts:
|
||||||
scope: keyword.operator.logical.anselme
|
scope: keyword.operator.logical.anselme
|
||||||
- match: '[+\-*/%^<>=]'
|
- match: '[+\-*/%^<>=]'
|
||||||
scope: keyword.operator.arithmetic.anselme
|
scope: keyword.operator.arithmetic.anselme
|
||||||
- match: '\.'
|
- match: '[:,]'
|
||||||
scope: punctuation.accessor.anselme
|
scope: keyword.operator.anselme
|
||||||
- match: \d*\.\d+
|
- match: \d*\.\d+
|
||||||
scope: constant.numeric.float.anselme
|
scope: constant.numeric.float.anselme
|
||||||
- match: \d+
|
- match: \d+
|
||||||
|
|
@ -105,14 +105,7 @@ contexts:
|
||||||
set: line_expression
|
set: line_expression
|
||||||
- match: '#'
|
- match: '#'
|
||||||
scope: keyword.other.anselme
|
scope: keyword.other.anselme
|
||||||
set: tag_expression
|
set: line_expression
|
||||||
|
|
||||||
tag_expression:
|
|
||||||
- include: line_expression
|
|
||||||
- match: ':'
|
|
||||||
scope: punctuation.definition.annotation
|
|
||||||
- match: ','
|
|
||||||
scope: punctuation.separator.anselme
|
|
||||||
|
|
||||||
string:
|
string:
|
||||||
- meta_scope: string.quoted.double
|
- meta_scope: string.quoted.double
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue