Sublime Forum

Tutorial on creating complex syntax's

#1

Hi,
I’ve spent days trying to write a syntax file for some propitiatory 4gl language and I am getting stuck.
Is there a way to debug the syntax or an online tutorial?

Here is some sample code to parse, I have rules for the general code but the nohide is a part of the procedure head block and i am getting stuck on the push’s and pop’s

0 Likes

#2

I’m not sure about tutorials, but generally syntax definitions are debugged by analyzing the context stack and scope stack at points in the file where the highlighting goes wrong. View menu -> Developer -> Show Scope Name.

0 Likes