Comments (13)
Thanks for the bug report!
I'll look into this when I can
from language-javascript-jsx.
Confirmed. This happens for me too
from language-javascript-jsx.
Oh crap! This may be my fault in a MUCH deeper way than I could have guessed!
Looks like this may be a problem in atom/slick, which is a fork of kamicane/slick, which is a project created by @kamicane, @subtleGradient (that's me), and @fabiomcosta!
Awesome!
from language-javascript-jsx.
Wait, Atom uses Slick? That's new to me, cool!
from language-javascript-jsx.
@kevinsawicki, do you think this could be a Slick issue?
I haven't touched that code in a LONG time. I'll need to set aside some time to look into it properly.
One thing I know is that the Slick parser was never built to handle TextMate 2 selectors. In this language grammar, I'm using a bunch of replacement strings. e.g. foo.bar.baz.${2/something/}
. Slick certainly can't handle that stuff, but I wouldn't have thought it would β loop because of it. Clearly I didn't do enough testing :P
from language-javascript-jsx.
from language-javascript-jsx.
Actually, it looks like Slick is properly parsing meta.block.inner.${2/[:.]/-/g}.jsx
as a meta
element with the classList ['meta', 'block', 'inner', '${2/[:', ']/-/g}', 'jsx']
.
Lulz
from language-javascript-jsx.
@Inviz, do you have an improved version of the Slick parser hanging out anywhere?
from language-javascript-jsx.
Yeah, I've seen slick lock up in the past which is why Atom ships with fork of it, may need some tweaking to prevent other lockup scenarios
from language-javascript-jsx.
Yeap, this happens to me too. I'm writing the closing tag element first, and then I add the /
so Atom doesn't crash. )
from language-javascript-jsx.
Just published v0.3.3 with a fix for this.
Slick may have been a red herring.
Pro Tipβ’ TextMate handles way more edge cases than Atom. Scopes that select zero characters seem to be a problem.
from language-javascript-jsx.
Just tested it, works fine. thanks :)
from language-javascript-jsx.
My fix in v0.3.3 broke JSX close tags without newlines before them. I just released v0.3.4 that fixes that new bug without unfixing this issue also. But I also added some extra scope to hi light improper close tags as invalid. Everything should be working great, but if not, as always, please do let me know.
Thanks much!
from language-javascript-jsx.
Related Issues (20)
- Problem when use static attributes HOT 9
- Breaks language-todo Highlighting Support HOT 1
- How to exclude .js file from the plugin? HOT 3
- hidden attribute disappears. HOT 1
- Highlighting issues
- // in url is read as comment in backquoted string. HOT 1
- Most elements have the same class names
- Code coloring problem with a RegExp ending with a / after an ||
- Wrong coloring after ' in backquoted string (`these`) HOT 2
- How do I turn off certain keywords (`get` causes bad formatting) HOT 2
- Some function names are colored specially but should not.
- Problem handling "function" keyword as object attribute
- Multi-line element opening tags not working
- This package will disable autocomplete-modules HOT 1
- Breaks syntax highlighting HOT 1
- "let" keyword color scheme HOT 3
- Curly brackets within string tags formatted as non-strings
- Support React v16.2 return multiple elements via empty tag
- JSX package doesn't work
- Suggest more explicit how to use guide
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from language-javascript-jsx.