Syntax files for Slope and Snobol4 languages#3966
Syntax files for Slope and Snobol4 languages#3966tkslide wants to merge 4 commits intomicro-editor:masterfrom
Conversation
Andriamanitra
left a comment
There was a problem hiding this comment.
Slope may not be worth adding a built-in syntax for as it seems to be someone's hobby project with no users (I couldn't find a single project using it on Github), and most of the .slo files I could find were something different.
I don't know SNOBOL (although I've seen it before), but the syntax seems to be missing a lot of keywords compared to the manual, a language reference and a SNOBOL4.sublime-syntax that I found on Github. I guess you're relying on the - special: "(^|;)[A-Za-z]\\S*\\b" rule to highlight a lot of things?
| - constant.string: | ||
| start: "'" | ||
| end: "('|$)" | ||
| skip: "\"" |
There was a problem hiding this comment.
Skipping " in a single-quoted string is not necessary. Maybe you meant to skip an escaped single quote instead?
| - constant.string: | ||
| start: "\"" | ||
| end: "(\"|$)" | ||
| skip: "'" |
There was a problem hiding this comment.
Skipping ' in a double-quoted string is not necessary. Maybe you meant to skip an escaped double quote instead?
I agree, slope has a really small community of users, we can manage it "internally". |
I'll compare the file with the sublime syntax HL; Spitbol is a little "different beast" -- it is/was a commercial Snobol4 on steroids -- I'm not sure if I want to go down that particular rabbit hole. Let me fix it for the "mainstrea" interpreter first.
|
Hello,
2 syntax files:
SNOBOL4 - a pattern-based text processing language from 1960's. This version supports some SPITBOL and CSNOBOL4 (Snobol4 in C http://regressive.org/snobol4) extensions as well.
Slope - "A [Scheme-like] hackable hobby programming language and toolset for having fun and making cool things" (https://slope.colorfield.space/)
Both files are "initial attempts" based on already existing Vim Syntax files -- reasonably tested and usable, but still under development.