VinnyTheFish - 2008-08-25

I'm trying to create a new user defined language and have almost completed all the tasks - folder, keyword lists, syntax highlighting, delimiters and etc. I have also created the API file and it works great. I love this NotePad++ program. The version I'm using is 5.0.3.

However, there is major obstacle that I cannot overcome - I have a conflict between the keywords/token used for comments and for operators. The particular language I'm working on is a script language for an image processing program, "DigitalMicrograph". This script language is very similar to C, so the comment block starts and ends with /* and */, respectively, and the comment line starts with //.  The conflicts arises when I include / or * in the operators list, the comment block and comment line will not be recognized. So my current solution is to leave every necessary operators (such as +, -, >, =, <, ., &, |, !) in the list except / and *. Apparently, this is not problem if the C or C++ language is used.

Is there a work around? Is it possible to "patch" the user defined language part (LexUser.cxx) of the program so that comment keyword/token always supersedes operators?

Cheers,

Vincent