Skip to content

Introduce a new regex for a special comment: howto? #863

Closed
@wimalopaan

Description

@wimalopaan

I tried to introduce a special comment for CPP-directives like

#include "bla.lua"

in lua.tmLanguage.json

.vscode-oss/extensions/sumneko.lua-2.5.3/syntaxes

But now luck with

				{
						"begin": "^\\s*#[a-z]+",
						"beginCaptures": {
							"0": {
								"name": "punctuation.definition.comment.lua"
							}
						},
						"end": "\\n",
						"name": "comment.line.double-dash.lua"
					},

Maybe ralated too: https://github.com/sumneko/vscode-lua/issues/51
 

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions