Hello all,
I started using SynWrite as my alternative source code editor and so far have found it useful.
I tried to create a new lexer, but could not make the rules working for my language to highlight a list of keywords.
I have the styles & parser to work, but rules seems to be more complex to make it work.
Can someone provide me any hints or documentation on how to make the rules work and highlight the list of keywords.
Thx & Regards.
Creating New Lexer for a relatively lesser used language
Hi Alexey,
Thx for the very quick reply.
I was actually importing the styles/parsers from C as I am creating a lexer which is somewhat similar to C.
The import of keywords alone did not work and hence I am trying to create the rules alone manually.
I actually imported the Keywords rule from C and then changed the keywords list under the conditions tab.
As it did not work, I am trying other manual means and looking for documents.
Thx & Regards.
Thx for the very quick reply.
I was actually importing the styles/parsers from C as I am creating a lexer which is somewhat similar to C.
The import of keywords alone did not work and hence I am trying to create the rules alone manually.
I actually imported the Keywords rule from C and then changed the keywords list under the conditions tab.
As it did not work, I am trying other manual means and looking for documents.
Thx & Regards.
Hi Alexey,
Attached both the files. Remove the ".txt" extension in both of them.
Thx & Regards.
Attached both the files. Remove the ".txt" extension in both of them.
Thx & Regards.
- Attachments
-
- sample.bc.txt
- (3.87 KiB) Downloaded 292 times
-
- MyOwn.lcf.txt
- (10.44 KiB) Downloaded 298 times
Thx Alexey for your suggetion.
I tried what you mentioned... but could not figure out what should be regex values for the parser.
I tried /w+ as mentioned in yet another thread. But it started highlighting all the words (Which I believe is right for this regex).
In short, I could not still complete this task. Anyway, thx for your time.
Thx & Regards.
I tried what you mentioned... but could not figure out what should be regex values for the parser.
I tried /w+ as mentioned in yet another thread. But it started highlighting all the words (Which I believe is right for this regex).
In short, I could not still complete this task. Anyway, thx for your time.
Thx & Regards.