In Sublime Text 3 I am trying to create a new syntax definition for my company’s programming language which proprietary. I’m having issues getting off the ground here. So here’s what I’ve done:
- I went to Tools --> Developer --> New Syntax
- I read up on how to create a syntax definition on the official documentation page and I entered a few basic rules to try to get started
- I saved the file under the default location here: C:\Users<username>\AppData\Roaming\Sublime Text 3\Packages\User<file name>.sublime-syntax EDIT: There is a \ after User folder in the path here, I thought I mistyped it but it’s there, I don’t know why it’s not showing.
- My syntax file was not loading for the the file extensions it was defined to, and I cannot find it in the list of syntax files when I go to View --> Syntax.
- I checked online and found threads like this one with a similar issue. It looks like my syntax file is either supposed to be found in the main list of syntax files or it’s found under the View --> Syntax --> User submenu, neither of which exist.
- I suspect my syntax files has errors, as it’s the first thing I’ve ever written in YAML, as well as my first time really diving into Regex, but I wouldn’t think issues in my syntax file would prevent it from showing up in the menus.
Any idea of what I’m missing here and how I can get my new syntax file to show up in the View --> Syntax list?