Sublime Forum

Comment problem in custom language package

#1

Hello!

I’m new to Sublime Text and new to this forum. So, hello everyone!
I want to create a own language package / syntax highlighting from scratch. I did the basic tutorial and started an own tmLanguage file.
I wanted to include comments, so i copied from an existing comments preferences file. Basically i only need // to comment out a line of code.
But what i did seems to be ignored by Sublime Text.

My Comments file looks like this right now:

{   "name": "Comments", 
    "scope": "source.test", 
    "settings": {
        "shellVariables": 
            {
                "name": "TM_COMMENT_START", 
                "value": "// "
            }
        ]
    }, 
    "uuid": "a56d5207-c6b0-4560-b1ed-fad04d101000"
}

Do i have to include the Comments file somewhere else in a preference file? My .tmLanguage file already works and i can select my own syntax highlighting from the menu.

Any help is appreciated!

Cheers

Cheese Nuclues

0 Likes