Comments (5)
You need to double-quote these strings; this is a wontfix for now (though feel free to submit a PR).
(I should probably document somewhere that this is a known problem...)
from vim-jsx.
So to be clear the solution is <p>"I'm an ugly tag!</p>
?
from vim-jsx.
<p>"I'm an ugly tag!"</p>
(Need to close the quote.)
I believe that this works—you might have to do <p>{"I'm an ugly tag!"}</p>
, but IIRC, that has slightly different behavior w.r.t. whitespace. (I'm not a React/JSX expert, but somebody's gotta write the Vimscript :P)
from vim-jsx.
(Woops, typo.)
Gotcha. Thanks!
On Thu, Jun 18, 2015 at 5:49 PM, Max Wang [email protected] wrote:
"I'm an ugly tag!"
(Need to close the quote.)
I believe that this works—you might have to do
{"I'm an ugly tag!"}
,
but IIRC, that has slightly different behavior w.r.t. whitespace. (I'm not
a React/JSX expert, but somebody's gotta write the Vimscript :P)—
Reply to this email directly or view it on GitHub
#51 (comment).
from vim-jsx.
This for me was a killer. Found the replacement that can cope https://github.com/jsx/jsx.vim
from vim-jsx.
Related Issues (20)
- Incorrect highlight in *.js files HOT 1
- Comments inside XML tags are not colored properly HOT 2
- jsx indenting breaks when changing colorscheme HOT 1
- Support ES6 template literals HOT 2
- Wrong indentation when omitting semicolon
- jsx omni completion HOT 3
- the plugin isn't working for me HOT 2
- Highlighting with Template literals in JSX is broken with junegunn/rainbow_parentheses.vim HOT 3
- Vim - adding new syntax hl rule does not work inside method definitions in component class HOT 1
- Backticks with curly braces in JSX break highlighting HOT 8
- Recent update breaks YouCompleteMe file path completion HOT 2
- Indenting when pasting text HOT 1
- Plugin confuses non-React .js filetype with .jsx
- Break Tags Not Right HOT 3
- Syntax (or filetype) not working properly HOT 2
- Turn off indentation portion of the plugin. HOT 2
- Setting filetype to 'javascript.jsx' is not good idea HOT 4
- My jsx isn't highlighted HOT 2
- Broken auto indentation HOT 7
- JSX syntax highlighting breaks after running `:Vex` HOT 1
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 vim-jsx.