How do I add my own word lists for syntax highlighting in java(or any language) files?
Custom syntax highlighting
I can show you how to create a new syntax: docs.sublimetext.info/en/latest/ … xdefs.html
It should explain to you how syntax definitions work. Furthermore, I can show you how to override default package files: docs.sublimetext.info/en/latest/ … g-packages (I suggest using the “PackageResourceViewer” package for this) If you want to create a new syntax instead, just save the file you opened under a different Package (folder) and name. The User package comes to mind.
Finally, if you are using a dev build of ST3, I can refer you to sublimetext.com/docs/3/syntax.html (especially the “Including Other Files” section), where you can read about the new syntax format and potentially how to create a new syntax file that includes another syntax but can inject its own patterns into it, most notably for keywords. This would be the easiest and most flexible approach for a custom Java-based syntax.