I am doing my own sublime-syntax file. Basically it’s an text based file, so scope is text.test
scope: text.test
I want to have a find with “goto definition”
“any text here and find findthis and so on”
[Name] findthis
it works without squared brackets like
Name findthis
- match: Name\s*(\w.*)
scope: meta.function.text.plain
captures:
1: entity.name.function.text.plain
but my goal is to make it with sqaured brackets
The definition of findthis should be that
[Name] findthis
I have googled and tried many differnt soltuions. None of them did work
- match: [Name]\s*(\w.*)
- match: \[Name\]\s*(\w.*)
- match: [Name]\s*(\w.*) // I was reading, closed bracket doesn’t need a \ if there is no open bracket
- match: ([)Name(])\s*(\w.*)
- match: (\[)Name(\])\s*(\w.*)
- match: ("\[")Name("\]")\s*(\w.*)
and maybe a few more … no success …