Raised This Month: $37 Target: $400
 9% 

Sublime Text 3 - SourcePawn Syntax Highlighting (18w51b - Dec 19th)


Post New Thread Reply   
 
Thread Tools Display Modes
JoinedSenses
Member
Join Date: Sep 2013
Old 07-29-2018 , 12:39   Re: Sublime Text 3 - SourcePawn Syntax Highlighting
Reply With Quote #11

String highlighting edit:

Code:
		<dict>
			<key>begin</key>
			<string>"</string>
			<key>patterns</key>
			<array>
				<dict>
				<key>name</key>
				<string>constant.other.placeholder.SourcePawn</string>
				<key>match</key>
				<string>%(d|\d*\.*\d*f|i|s|L|N|t|T|u|x|X)</string>
				</dict>
				<dict>
				<key>name</key>
				<string>constant.character.escape.SourcePawn</string>
				<key>match</key>
				<string>(\\x0\d|\\n)</string>
				</dict>
			</array>
			<key>end</key>
			<string>"</string>
			<key>name</key>
			<string>string.SourcePawn</string>
		</dict>
JoinedSenses is offline
Donatello4620
New Member
Join Date: Jul 2018
Old 08-09-2018 , 15:41   Re: Sublime Text 3 - SourcePawn Syntax Highlighting
Reply With Quote #12

Thanks a lot, looking great here :>
Donatello4620 is offline
goalevo
New Member
Join Date: Aug 2018
Old 09-05-2018 , 04:02   Re: Sublime Text 3 - SourcePawn Syntax Highlighting
Reply With Quote #13

Sublime text 3 vs VS Code, which is better?
__________________
goalevo is offline
404UNF
( ͡ ͜ʖ ͡)
Join Date: Dec 2011
Location: 🍁
Old 12-12-2018 , 23:09   Re: Sublime Text 3 - SourcePawn Syntax Highlighting
Reply With Quote #14

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.
__________________
I'm not a SourcePawn expert, I just play one on TV.
Want to join the SourceMod Discord server? Click here!
<- Links fixed!

Last edited by 404UNF; 12-12-2018 at 23:15.
404UNF is offline
404UNF
( ͡ ͜ʖ ͡)
Join Date: Dec 2011
Location: 🍁
Old 12-16-2018 , 20:46   Re: Sublime Text 3 - SourcePawn Syntax Highlighting (18w51a)
Reply With Quote #15

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!
__________________
I'm not a SourcePawn expert, I just play one on TV.
Want to join the SourceMod Discord server? Click here!
<- Links fixed!

Last edited by 404UNF; 12-19-2018 at 11:55.
404UNF is offline
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 05:54.


Powered by vBulletin®
Copyright ©2000 - 2019, vBulletin Solutions, Inc.
Theme made by Freecode