So I'm currently working on a Notepad++ syntax highlighting project to create a new syntax highlighting setup for SourcePawn. I'm basing most of it off of Notepad++'s stock C++ highlighting. Here's how I've organized things like statements thus far.
Keywords1:
new for if else do while switch case default return break continue sizeof true false typedef delete
Keywords2:
Plugin Action void int float char bool Float String any Handle decl stock forward funcenum functag native function methodmap property typeset view_as cast_as var let public const enum static union struct
And for operators, I've got the following:
Code:
<Keywords name="Operators1">! @ % ^ & * ( ) - | || = + ~ [ ] . , : ; / < > <= =< >= => ?</Keywords>
<Keywords name="Operators2"></Keywords> // Empty
Is there anything I'm missing from these? Also, is there anything that SourcePawn as a language doesn't use that I should remove? I want to make sure I'm not missing anything before I start adding in .inc file class/type highlighting.
Here's what I've got style-wise so far. I plan to release this once I finish it. Also, I'm open to suggestions about the highlighting color/bold/etc of specific things.
-
My highlighting (font is
Inconsolata, before you even ask
)
-
Notepad++'s stock C++ highlighting, for comparison