Skip to content
This repository has been archived by the owner on Dec 15, 2022. It is now read-only.

Array with 32 strings causes syntax highlight continuation #20

Closed
mdaniel opened this issue May 14, 2014 · 1 comment
Closed

Array with 32 strings causes syntax highlight continuation #20

mdaniel opened this issue May 14, 2014 · 1 comment

Comments

@mdaniel
Copy link

mdaniel commented May 14, 2014

This is with 0.15.0 which is the current version in atom.

I had to leave out a few details to make the summary short, but a double keyworded variable with 32 strings on one line causes the syntax highlighting to continue whatever color ended the array for the rest of the file.

It is important that the variable have two highlight regions before it; you can use a separate keyword, modifier or even a comment, so long as it has to switch highlighting contexts.

I managed to boil down a reproducible test case from the original mess into this:

cat >foo.c<<C1
int main() {
unsigned char *sigs[]={""$(for i in `seq 1 31`; do echo -n ',""'; done)};
int i;
};
C1
atom foo.c
@izuzak
Copy link
Contributor

izuzak commented Jun 28, 2014

I believe this is a duplicate of atom/atom#1667 where the issue is that the line is too long and colorization stops/breaks at a certain token limit (currently, 100). Please subscribe to atom/atom#1667 for updates about this.

@izuzak izuzak closed this as completed Jun 28, 2014
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants