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
1
vote
1 answer

How do I color the stippled underline in Sublime Text 3?

I have a plugin using the add_regions command to draw underlines for certain regions. I also have a custom tmLanguage and tmTheme, so I can control font style/foreground color etc. for scopes I have set. Now, I'm trying to get my underlines to be a…
Jimmy Huch
  • 4,400
  • 7
  • 29
  • 34
1
vote
0 answers

how to write syntax rule for string embed evaluate code

i am try to write a vscode syntax file for custome language i am use photoshop draw the sample syntax for the custom language. how to write the syntax of tmLanguage ? evaluate code rule { "begin": "\\{\\{", "beginCaptures": { "0":…
1
vote
1 answer

Sublime Text 3 Multiple Language code highlight

I just upgraded to Sublime Text 3. I'm using my existing Color scheme from Sublime Text 2. But now multi language code highlighting no longer works. Sublime Text 3 Sublime Text 2 Can someone help me comeup with the custom scope for my tmTheme.
3s2ng
  • 923
  • 1
  • 11
  • 19
1
vote
1 answer

Sublime text regular expressions tmLanguage

I am trying to modify a the xml file for a tmLanguage and i want to add a keyword to match word=. I can use obviously use regex to find word but when i add the = sign it can't find word=. I tried to escape the character but no luck. Any other ideas?…
twothreebrent
  • 221
  • 3
  • 14
0
votes
0 answers

How to highlight syntax of block and inline comments in VSCode extensions?

This is my goal to achieve: This is what I get: My little syntax highlighting vscode extension looks like this: package.json (significant excerpt) "contributes": { "languages": [{ "id": "foo", "extensions": [".foo"], …
0
votes
0 answers

How can I convert a .sublime-syntax definition to a .tmGrammar.json file to use in VSCode(Monaco)?

I need to convert a .sublime-syntax definition to a .tmGrammar.json definition to use in VSCode. If this is possible then I would like to use it in an embedded Monaco Editor. The definition I'm trying to convert is for the Charcoal ASCII sketching…
0
votes
0 answers

how to fix javascript tmlanguage highlighting bug

I'm making a VS Code extension for xml, but the if statements occurs highlighting bug. The code is below however, if (){ works normally even function statements…
0
votes
0 answers

How to make a new syntax highlight in vscode

I am tring to make a new programming language called 'ZE' so i made some basics and i am tring to make the syntax hightlight so i learned the basics from heretext and made the syntaxes using yo code that is my tmlanguage file: { "$schema":…
0
votes
0 answers

VS-code personal grammar extension : add cross-theme custom styling

I am in the process of writing a VS-Code syntax extension for a small language of mine. So far, so good, but I wonder whether it is possible to style certain elements in a cross-theme fashion. This is a general question, but my specific need may…
Aristide
  • 3,606
  • 2
  • 30
  • 50
0
votes
0 answers

How do we tell a tmlanguage that a symbol (\\) means the next line should be read as a continuation of the current one?

The grammar allows for \ continuation line marker, and i'm unable to carry the current scope of my grammar onto the next line: The 'set' command allows for multiple option, 'args' being one. 'set args' have arguments which are anything blank…
PTRK
  • 899
  • 1
  • 5
  • 18
0
votes
0 answers

Object Property Highlighting for VS Code Extension with tmLanguage

I'm playing a game that allows you to write Lua in-game to make things happen, and I'm working on a VS Code extension that supports the game's custom functions. I got stuck when I wanted to highlight the fact that the PixelData:GetPixel method…
JShoe
  • 3,186
  • 9
  • 38
  • 61
0
votes
0 answers

Developing VS Code custom language support. How to override sematic highlighting?

I'm developing a custom VS Code language support to support some proprietary equipment programming language. The language itself is very similar to C++ (it actually compiles into C++ and then into the executable files). So I thought of some kind of…
0
votes
0 answers

tmLanguage: how to match custom patterns in match

I'm developing a VS Code extension for a small language that I made. In my lang.tmLanguage.json, let's say that in the repository I have defined patterns #A and #B. I want to create the following pattern { "X": { "match": "start <#A> <#B>" …
Superior
  • 787
  • 3
  • 17
0
votes
0 answers

include tmLanguage does not work correctly in Visual Studio

As you can see in Visual Studio Ansible Extension Project we have tmLanguage for Ansible grammar that include other tmLanguages as you can see below include
0
votes
0 answers

Why nested file extension does not work in tmLnaguage file types match in Visual Studio?

As you can see in Visual Studio Ansible Extension Project we have tmLanguage for Ansible grammar that file type match with below fileTypes ansible.yaml