Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
yo, i dunno if this is the place to try to find an answer to this, but I couldn't seem to find any info about it.
VIM seems to stop correctly syntax hilighting in some javascript files i'm working with...
I haven't checked other languages, or if anything else breaks it, but it stops working after a function declaration has parentheses after it...
for example:
"
function thefirstfunction
{
...
}
" seems to hilight everything correctly and doesn't break it, however
"
function I_break_hilighting(...)
{
...
}
" Breaks hilighting for anything after the parentheses
some things will still hilight, but it's kinda random
comments wont hilight, several keywords won't be highlighted, and several other weird hilighting issues
if anybody else has run into this, it'd be great to fix, just kinda a annoyance that makes working with Javascript a bit harder :-P
I've seen that behavior in vim. It happens when you have an unmatched comment mark (as in c comment /*...*/) or an unmatched parenthesis. The highlighting fails after the unmatched comment or parenthesis. Read over the code carefully, looking for unmatched symbols: quotes, parentheses, comments, etc.
exactly, i know that is how it acts when it mismatches something, but something is up with the hilighting that makes it think the parentheses after a function definition aren't matched
there is ABSOLUTELY NOTHING in the file before something like this:
function blah(arg1,arg2)
and it thinks something is mismatched for the rest of the file
any help?
(thanks for the reply, but it's not a typo or a real mismatch)
i think the syntax hilighting rules for javascript are just a little screwy and dont even account for there being parentheses after the function keyword? i don't know, that's what i'd guess is happening
anybody know otherwise or that can give me a little help fixing it?
did some messing around testing it and indeed, parentheses ARE busting up the syntax hilighting and the highlighting only works when the parentheses are MISMATCHED ....
a bit odd
can anybody else confirm a problem with javascript highlighting like this?
or do i have something screwed up for some reason...
just want to say that it's only the parens that are messing it up, try just popping some parentheses at the beginning, and the syntax will screw up (unless its just a problem with me)
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.