Comments (11)
@toroman—User error? Works fine for me; you most likely haven't installed vim-javascript, or have another plugin that's introducing a disruptive conflict.
from vim-jsx.
Huhn... I've never seen this lambda syntax. Is it an ES6 thing?
from vim-jsx.
I have vim-javascript, not sure if something else is messing it up.
On Mon, Feb 1, 2016 at 11:12 AM, Max Wang [email protected] wrote:
@toroman https://github.com/toroman—User error? Works fine for me; you
most likely haven't installed vim-javascript, or have another plugin that's
introducing a disruptive conflict.—
Reply to this email directly or view it on GitHub
#66 (comment).
~toroman
from vim-jsx.
Fact is, disabling vim-jsx solves the problem.
On Mon, Feb 1, 2016 at 11:38 AM, Srecko Toroman [email protected]
wrote:
I have vim-javascript, not sure if something else is messing it up.
On Mon, Feb 1, 2016 at 11:12 AM, Max Wang [email protected]
wrote:@toroman https://github.com/toroman—User error? Works fine for me; you
most likely haven't installed vim-javascript, or have another plugin that's
introducing a disruptive conflict.—
Reply to this email directly or view it on GitHub
#66 (comment).~toroman
~toroman
from vim-jsx.
I'd expect that disabling vim-jsx also makes inline XML highlighting break...
Anyway, I've tested some more lambda-syntax cases, and they all seem to work. This is probably due to an outdated vim-javascript package, or some other package that interferes. (There are some auxiliary JS packages that don't do filetype detection correctly for compound filetypes, e.g.) In any case, it's not a vim-jsx issue.
(And I would—but I work out of Boston now :D)
from vim-jsx.
This is a little bit of a separate comment, but while the fat-arrow syntax has been added to es6 (see babel's docs), but it in't a good idea to use bind(this) or arrow functions in the props the way this request is asking to do things. See the description of the eslint-plugin-react rule "jsx-no-bind: Prevent usage of .bind() and arrow functions in JSX props" for details (https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/jsx-no-bind.md).
from vim-jsx.
@toroman—Can you screenshot the example? Is the problem that the =>
is closing the tag, perhaps?
from vim-jsx.
I actually can't repro this anymore (I don't remember if I tried before...). Is it still an issue for you, @toroman?
from vim-jsx.
No I don't think so. I actually disabled the extension because it messes up
the indentation. Like, new lines always start at column 0. Very annoying.
Not sure what's causing it.
On Mon, Feb 1, 2016 at 9:37 AM, Max Wang [email protected] wrote:
I actually can't repro this anymore (I don't remember if I tried
before...). Is it still an issue for you, @toroman
https://github.com/toroman?—
Reply to this email directly or view it on GitHub
#66 (comment).
~toroman
from vim-jsx.
So let me know if you want to stop by my desk and investigate :)
On Mon, Feb 1, 2016 at 11:38 AM, Srecko Toroman [email protected]
wrote:
Fact is, disabling vim-jsx solves the problem.
On Mon, Feb 1, 2016 at 11:38 AM, Srecko Toroman [email protected]
wrote:I have vim-javascript, not sure if something else is messing it up.
On Mon, Feb 1, 2016 at 11:12 AM, Max Wang [email protected]
wrote:@toroman https://github.com/toroman—User error? Works fine for me;
you most likely haven't installed vim-javascript, or have another plugin
that's introducing a disruptive conflict.—
Reply to this email directly or view it on GitHub
#66 (comment).~toroman
~toroman
~toroman
from vim-jsx.
Ah, kk. Will update my plugins and check for conflicts.
Best,
Srecko
On Mon, Feb 1, 2016 at 11:51 AM, Max Wang [email protected] wrote:
I'd expect that disabling vim-jsx also makes inline XML highlighting
break...Anyway, I've tested some more lambda-syntax cases, and they all seem to
work. This is probably due to an outdated vim-javascript package, or some
other package that interferes. (There are some auxiliary JS packages that
don't do filetype detection correctly for compound filetypes, e.g.) In any
case, it's not a vim-jsx issue.(And I would—but I work out of Boston now :D)
—
Reply to this email directly or view it on GitHub
#66 (comment).
~toroman
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.