Re: Sublime Text 3 - SourcePawn Syntax Highlighting
String highlighting edit:
Code:
<dict> |
Re: Sublime Text 3 - SourcePawn Syntax Highlighting
Thanks a lot, looking great here :>
|
Re: Sublime Text 3 - SourcePawn Syntax Highlighting
Sublime text 3 vs VS Code, which is better? :)
|
Re: Sublime Text 3 - SourcePawn Syntax Highlighting
Now that the semester is over, I went and released an update to this (finally). Everything is current and up-to-date with the include files in the latest 1.10 build (6364). All the new cstrike.inc stuff for the Battle Royale mode too.
Here's a link to it on Github. The main post of this thread has been updated too so that the link actually works. Apologies to anyone I disappointed for not delivering this sooner; that wasn't intentional. I'm a perfectionist. |
Re: Sublime Text 3 - SourcePawn Syntax Highlighting (18w51a)
Update 18w51a pushed:
- General cleanup including the removal of a few commented-out lines of old regexes. - Added a fix for a minor highlighting bug involving the newly-added enum struct to SourcePawnNew.sublime-syntax. Update 18w51b pushed: - Added CSWeapon_SNOWBALL ahead of this pull request being accepted. - Re-added original enum highlighting code for not highlighting 1.6 variable declarations within enums as invalid. Enums still can use old syntax declarations, so until the day comes that old syntax is no longer supported at all, I have to keep supporting the usage. Also, I gather by the lack of reports thus far that no highlighting edge cases that I missed have been found. So far so good! |
Re: Sublime Text 3 - SourcePawn Syntax Highlighting (18w51b - Dec 19th)
Looking nice, though personally, it bothers me that non-native functions get no highlighting at all.
C
SourcePawn
|
Re: Sublime Text 3 - SourcePawn Syntax Highlighting (18w51b - Dec 19th)
Quote:
For the time being (since work on the aforementioned version is going to take a while), one could always add in custom highlighting for their own favorite includes. I should put together a quick guide on adding in entries for custom include files (i.e. DHooks, TF2Items, etc). Or I could just toss in highlighting for some of the more popular custom includes. I did go and make this (still incomplete) list of custom includes created by the community, so I've got a nice list I can reference. Edited: Working on a new update to the highlighting that adds in highlighting for some custom includes. Here's your example in the new version of the highlighting MsDysphie: https://i.imgur.com/vUTX533.png New version will be out....err....soon-ish. Keep tabs on the Github. Edited (again, Jan 21st): I've already added in highlighting for the following (and I'm not done yet!):
|
Re: Sublime Text 3 - SourcePawn Syntax Highlighting (18w51b - Dec 19th)
Im love it
|
Re: Sublime Text 3 - SourcePawn Syntax Highlighting (18w51b - Dec 19th)
Thank you a lot for this. It has made my life so much more simple.
Just a question though. In both 1.6 and 1.7+ coloring the function FloatDiv is highlighted in red. Is there any reason for that or is it a bug? |
Re: Sublime Text 3 - SourcePawn Syntax Highlighting (18w51b - Dec 19th)
Quote:
Same with FloatMul, FloatAdd and FloatSub. They're considered deprecated by float.inc, as they are for internal implementation. See https://github.com/alliedmodders/sou...at.inc#L48-L94 Code:
#pragma deprecated This native is internal implementation. For multiplication use the '*' operator. |
| All times are GMT -4. The time now is 22:16. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.