Regex matching but no highlighting

83 Views Asked by At

I am currently creating a language extension. When adding comments (starts with $$), I ran into a hurdle.

"comments":{
    "patterns": [{
        "name": "comment.line.sahutorepol",
        "match": "\\$\\$.*$\\n?"
    }]
},

Despite the regex matching and being escaped properly, there is no highlighting and the inspect tool confirms that its not properly detected.

image

I have tried placing the match key outside the patterns array, to no change.

0

There are 0 best solutions below