-
Notifications
You must be signed in to change notification settings - Fork 17
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
Rewrite JavaScript syntax highlighting #13
Conversation
iarna
commented
Aug 30, 2014
- Fixes bug that made division get marked up as regexp
- Highlights assignment to differentiate it from equality checks
- Adds a bunch of new highlighting categories (no color changes by default however)
- More syntax errors will be marked as bad (multi-line strings, multiple identifiers in a row, etc)
- Single and double quotes correctly treated the same
- Ident's can include $
9c01ba1
to
d48aa45
Compare
a7f4ea8
to
685e7e8
Compare
685e7e8
to
f763aca
Compare
Incidentally, the colors I personally use for JS are included below. They're rather less colorful than the defaults, so YMMV. They're also using 256-color xterm support.
|
Thank you, esp. for this massive contribution! Should I merge this already since you're doing some adjustments from time to time? One thing worrying me is the changed indentation/number of tabs between the "columns" which clutters the diff... do they align better in your editor? I'm using tabs with 4 spaces which works ok except on long (but rare) labels. |
So, there were some sections that used spaces instead of tabs previously, some places where it was mixed. I changed it to be consistent and only use tabs. The ftyperc in this repo configures jsf files to use 8 space tabs, so that's what I used. |
As far as my ongoing changes are concerned, please feel free to merge any time. It's at least as complete as the previous version, with some obvious deficiencies corrected. I'm happy to make anything new beyond this a new pull request. |
Regarding the tabs I described the problem I saw in the wrong way: see for example this line (iarna@f763aca#diff-f9866eba4b16d6cd9795eaefa29024adR494), you didn't changed the semantics but there is one tab more in it now that makes it into the (whitespace) diff and I wondered why. Sure there are some longer character lists esp. in the keyword list but often the lists are really short... |
Oh, I see what you mean… I've added a commit that undoes that and otherwise makes the columns more consistent. |
Rewrite JavaScript syntax highlighting
And the same question regarding GPL v2 goes for your big contribution here :) |
Absolutely. In fact, dual licensed, GPL v2 and ISC:
|
Might you extend your statement to "GPL v2 or any later version"? The original JOE project evaluated their licensing situation and would like to have the any-later-version option to be better prepared for future developments... I already updated this for myself in the README. |
Christian, It's not clear to me exactly whom you are asking, but certainly from my On 03/10/2015 07:27 AM, Christian Nicolai wrote:
+--------------------------------------------------------------+ |
Ok then, ANY GPL, plus the GPL compatible ISC. |
Big thanks! Hopefully that's the last request for this matter... |