brackets-archive / bracketsIssues

Archive of issues in brackets.
0 stars 0 forks source link

[CLOSED] JS syntax highlighting inconsistent on functions #10284

Open core-ai-bot opened 3 years ago

core-ai-bot commented 3 years ago

Issue by jbmonroe Friday Nov 13, 2015 at 18:49 GMT Originally opened as https://github.com/adobe/brackets/issues/11915


js-syntax-highlight

Syntax highlighting for user function names appears inconsistent in 1.5 build 1.5.0-16538 (release cf9cf4698). (In the example, the function names should be purple, not white; only the last one is correctly highlighted.) I haven't been able to find a pattern yet. Removing and replacing the space between the function keyword and the function name corrects the highlighting for that function and those below only. The reversion to unpredictably non-highlighted function names returns afterward, though.

core-ai-bot commented 3 years ago

Comment by abose Saturday Nov 14, 2015 at 05:54 GMT


tagging@swmitra@MarcelGerber

core-ai-bot commented 3 years ago

Comment by petetnt Saturday Nov 14, 2015 at 20:38 GMT


Couldn't replicate myself after typing in the given code visible on the screenshot. Could you most the whole file?

core-ai-bot commented 3 years ago

Comment by jbmonroe Saturday Nov 14, 2015 at 22:18 GMT


Possible NDA issue. How to handle? On Nov 14, 2015 3:39 PM, "Pete Nykänen" notifications@github.com wrote:

Couldn't replicate myself after typing in the given code visible on the screenshot. Could you most the whole file?

— Reply to this email directly or view it on GitHub https://github.com/adobe/brackets/issues/11915#issuecomment-156744510.

core-ai-bot commented 3 years ago

Comment by petetnt Saturday Nov 14, 2015 at 22:21 GMT


@jbmonroe can you create a minimal, comple and verifiable sample instead? My bet is on that there's something above those lines that contain some malformed syntax which breaks the parser. Also have you tried to run without extensions (Debug -> Launch Without Extensions) to rule out extension issues?

core-ai-bot commented 3 years ago

Comment by jbmonroe Sunday Nov 15, 2015 at 00:57 GMT


I'll do that on Monday when I get back to that computer. I don't think the syntax is malformed because JSHint and JSLint don't have a problem with it (although they could be wrong, too). I'll try running without extensions as well.

I'll see if I can fake up an example on this computer, too, since that would save some time.

core-ai-bot commented 3 years ago

Comment by jbmonroe Monday Nov 16, 2015 at 12:55 GMT


I copied the file and did some editing to obscure the intent of the code a bit, and on first load, neither file has issues with syntax coloring. My surmise is that enough editing would cause it to happen, and I'll pursue that tack during the day as I finish off the flow. If I can't reproduce the problem by EOB today, I'll back the issue out.

core-ai-bot commented 3 years ago

Comment by jbmonroe Tuesday Nov 17, 2015 at 14:33 GMT


I can't duplicate it. Even if it occurs after six hours of editing, this would be the next-to-last thing that you'd want to address. Closing.