Questions tagged [tmlanguage]

The .tmLanguage TextMate language format describes language grammars, enabling text editors like TextMate, Sublime Text, and VS Code to provide syntax highlighting.

The -based .tmLanguage format contains expressions to capture particular features of a programming language, such as keywords, variables, strings, etc. and names them with one or more scopes.

107 questions
0
votes
1 answer

Regex inside Sublime .tmLanguage

I need to write some regex to improve C++.tmLanguage file. For example I want to highlight assertions from Google Test framework. Example: ASSERT_EQ(expected, actual); so I wrote this: ASSERT_[A-Z_]+ but when I'm adding open parenthesis highlight…
msw
  • 95
  • 1
  • 6
0
votes
1 answer

.tmLanguage -- how to include / exclude a variable

I am looking for examples to include / exclude a couple of variables as defined within a .tmLanguage file. Example 1 -- highlight the whole enchilada, including both variables: {\code_one*[variable_one]{variable_two}} Example 2 -- highlight the…
lawlist
  • 13,099
  • 3
  • 49
  • 158
1 2 3 4 5 6 7
8