[SVN] Naming considerations for language elements/rules
Chris Thomas
chris at cjack.com
Wed Feb 23 18:48:59 UTC 2005
Changing the element naming is no problem, of course. But I don't
understand something:
text.html
embedded.ruby
source.ruby
strings.double-quoted.ruby -- matches “strings” (and would match
“strings.double-quoted”)
strings.interpolation.ruby -- matches “strings” and
“strings.interpolated”
The element “strings.interpolation.ruby” would match “strings” and
“strings.interpolation”, but largest element-name subset match
(“strings.interpolation”) doesn't take precedence because the
interpolation is already embedded in “strings”?
Put another way, if I have both “strings” and “strings.double-quoted”
specified in a style sheet, wouldn’t “strings” have the same
precedence as “string.double-quoted”? If that's true, then we probably
need to revisit a lot of the keyword naming.
Chris
More information about the textmate-dev
mailing list