Regarding certain statements and such.
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> 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 :P) - Notepad++'s stock C++ highlighting, for comparison |
Re: Regarding certain statements and such.
Maybe << and >>?
|
Re: Regarding certain statements and such.
Quote:
< and > are operators. |
Re: Regarding certain statements and such.
Quote:
Edit: For that matter, ++ and -- are also operators |
Re: Regarding certain statements and such.
You might as well add in such things as += and -= as well.
|
Re: Regarding certain statements and such.
Quote:
|
Re: Regarding certain statements and such.
And /=, *= ^=, &=, |=, <<=, >>=, %=
|
Re: Regarding certain statements and such.
SourcePawn should have (AMXX Pawn does) >>> and >>>= operators too. Can't test right now, I'm on phone.
EDIT: Just tested it, works. |
Re: Regarding certain statements and such.
There is no left arithmetic shift. :)
|
Re: Regarding certain statements and such.
Quote:
i.e. it makes the number keep the same sign in a Two's Complement number system, which is what Pawn, C, C++, Java, etc... use. However, that doesn't work in the other direction. |
All times are GMT -4. The time now is 17:57. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.