-
Notifications
You must be signed in to change notification settings - Fork 4
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
call function, first argument is a matrix #23
Comments
If you change the line to |
PS: Lightshow is very nice for testing grammars, you can even copy and paste the full grammar file content and/or the full file content. That way one can edit and test grammars quite fast. |
my suspicion is that the keyword regex is the culprit. for example, the double p.s. I'd be happy to PR, but I have to go now. btw, automated tests for these grammars/highlighting would be nice, so that the test cases don'T get lost in issue comments, and we can ensure we don't create bugs elsewhere. p.p.s: didn't realize that you could paste in lightshow, too - that's probably the best way to iterate this! thanks! |
The issue is also present in the Sublime Text grammar: |
So, it turns out this is called "possessive repeat": "++ Matches the previous atom one or more times, while giving nothing back." (i.e. without backtracking) |
yeah, sorry, I tinkered a bit, no idea how to correct this. I think the key is that the keyword regex falsely matches the string |
I'm not sure to understand what you want to highlight: Here is a regex for (1): |
I think the highlighting of the first occurrence should match the other two occurrences of Modelica.Math.[cos|sin] here (i.e. only the built-in functions should be highlighted, in blue). |
I think |
@bilderbuchi |
I have this on my todo list, but I'm pretty busy currently. |
no ideas about automated testing, though. people seem to use "specs" to do testing of grammars, at least that's what it looks like to me (I have no idea how to do this). |
Don't know how to describe this. The highlighting is somehow broken here:
http://bit.ly/1ZXaFdK
This is how it looks with the
v0.2.1
grammar:http://bit.ly/1ZXaLlu
Also not sure if that is the intended behavior.
The text was updated successfully, but these errors were encountered: