Hi,
I’ve been working on my language-unix-shell
package and I want strings that appear after =
in variable definitions to be syntax-highlighted in the ways defined earlier in the unix-shell.cson
file. Unfortunately, no syntax-highlighting is being applied after the equal sign (=
), with my current code, which is:
{
'begin': '([a-zA-Z0-9_-]+)=(.*)'
'beginCaptures':
'1':
'name': 'variable.definition.name'
'2':
'name': 'variable.definition.equal'
'end': ';|&|$'
'endCaptures':
'0':
'name': 'punctuation.definition.function.shell'
'patterns': [
{
'include': '#string'
}
]
}
Any ideas as to how to fix this problem? If you want to see an example of this lack of syntax-highlighting after the equal sign see this screenshot:
Thanks for your time,
Brenton