-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
FR: syntax highlighting for Modula-2 and Modula-3 #251
Comments
I'm unable to make the lexers myself. Waiting for the developer. |
You're confusing me. You deleted your comments (try not to because it's hard to follow), but I have the notifications so let me answer: if it's not possible with Lua Patterns it will be probably possible with with a regex. I don't see anything particularly impossible with Lua Patterns there though, only that some will require more than one pattern to be solvable. |
I'm confused, too. I don't know what I'm doing. I open/close this issue and post/delete comments like crazy. |
Modula-2 weirdness:
(source: paaguti/textadept-modula-lexers#2) Modula-3 weirdness: http://modula3.github.io/cm3/reference/complete/html/2_6_4Numeric_literals.html |
Something ending optionally with B or C in Lua Patterns is as simple as |
If all |
I still think Modula-3's syntax for numerical literals is weird until I know the syntax for numerical literals in Ada! |
Sometimes you don't need to be 100% perfect but have a close enough implementation that doesn't have false-positives. Anyway, I have no idea about Modula-2 and 3 besides what I've seen because you mentioned, I think copying the scintillua implementation should be good enough for a niche language, if any Modula user feels the need to improve that implementation it can send a PR with improvements, that should be the spirit of open-source project. |
List of text editors support Modula-3:
modula3/cm3#1130
Scintillua lexers for Modula-2 and Modula-3:
https://github.com/paaguti/textadept-modula-lexers
The text was updated successfully, but these errors were encountered: