Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sublime-syntax.sublime-syntax #95

Closed
wants to merge 19 commits into from
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions YAML/sublime-syntax.sublime-syntax
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ contexts:
- meta_content_scope: string.unquoted.yaml
- match: ^(?!^\1\s\s)
pop: true
- include: regex_unquo
# - include: regex_unquoted_line
- include: regex_unquoted

# inline regex
Expand Down Expand Up @@ -412,7 +412,7 @@ contexts:
- match: '"'
scope: punctuation.definition.function.end.syntax
pop: true
- include: regex_unquoted
- include: regex_common
- match: '(\()(?=\?)'
captures:
1: punctuation.definition.block
Expand Down Expand Up @@ -453,9 +453,9 @@ contexts:
variable_call:
- match: '(\{\{)([a-zA-Z_0-9]*)(\}\})'
captures:
1: punctuation.definition.parameters.begin.syntax
1: punctuation.definition.arguments.begin.syntax
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

for my use, I added the line: 0: variable.parameter so that variables would be highlighted by the color scheme and thus be easier to spot :)

2: variable.other.variables
3: punctuation.definition.parameters.end.syntax
3: punctuation.definition.arguments.end.syntax

character_class:
- include: character
Expand All @@ -471,7 +471,7 @@ contexts:
scope: constant.character.escape.yaml
- match: '\\b'
scope: constant.character.syntax
- match: '([^\[])(-)([^\]])'
- match: '([^\[\]])(-)([^\]])'
captures:
1: constant.character
2: keyword.operator.range.syntax
Expand Down