I am making a syntax definition for a custom-made language in sublime text 2 using PackageDevelopment's .YAML-tmLanguage. For now I want my syntax to identify strings to non strings.
sample line of code:
string name = "Chuck Norris";
string message = "I am " + name + ", don't mess with a \"ROCKSTAR\"!";
my pattern for double quoted string:
- comment: strings in double quotes
match: (".+")
captures:
'1': {name: string.quoted.double.me}
what the pattern captures:
string name = "Chuck Norris"
;
string message = "I am " + name + ", don't mess with a "ROCKSTAR"!"
;
line 1 above is correct but line 2 seems to capture all.
what I want is:
string name = "Chuck Norris"
;
string message = "I am "
+ name + ", don't mess with a "ROCKSTAR"!"
;