Sublime Forum

Accents in syntax definition (tmLanguage)

#1

I’m working in a syntax definition and I want to include a word with an accent (´), how can enable unicode characters in the regex?

The expression is easy:

<dict>
    <key>match</key>
    <string>[A-Z]+\s</string>
    <key>name</key>
    <string>storage.type</string>
</dict>
0 Likes

#2

[[:alpha:]]

http://www.regular-expressions.info/posixbrackets.html

1 Like

#3

are you aware that the old tmLanguage format has been superseded by sublime-syntax? http://www.sublimetext.com/docs/3/syntax.html

1 Like

#4

Thanks @kingkeith I’ll change it to sublime-syntax

I thought both formats were accepted, as it say in the beginning of the page.

0 Likes

#5

Yes, but sublime-syntax is now the only* type used in the Default packages, as it is much easier to work with and supports many more useful constructs, so I think it is safe to assume that tmLanguage has been depreciated.
* except for Plain Text, which is kept as a tmLanguage for legacy purposes

0 Likes