I’m writing a custom sublime syntax file, and I’m trying to get python style function highlighting (function name one color, parentheses normal-color) that looks like this, but I can’t get the parentheses to be normal-colored. This is the closest I could get.
Anybody think they could help?
Code:
%YAML 1.2
---
name: TAS
file_extensions: [tas]
scope: source.tas
contexts:
main:
- match: \b(test)\b
scope: keyword.control.tas
- match: '"'
push: double-quote
- match: "'"
push: single-quote
- match: ':'
push: comment
- match: .*[(]
push: function
double-quote:
- meta_scope: string.quoted.double.tas
- match: \\.
scope: constant.character.escape.tas
- match: '"'
scope: punctuation.definition.string.end
pop: true
single-quote:
- meta_scope: string.quoted.single.tas
- match : \\.
scope: constant.character.escape.tas
- match: "'"
scope: punctuation.definition.string.end
pop: true
comment:
- meta_scope: comment.tas
- match: '\n'
pop: true
function:
- meta_scope: support.function.builtin.tas
- match: \(
scope: punctuation.section.arguments.begin.tas
- match: \)
pop: true
arguments:
- meta_scope: punctuation.section.arguments.begin.tas
- match: .*[)]
pop: true0