allanhortle / jsx Goto Github PK
View Code? Open in Web Editor NEWLanguage Definitions for JSX files.
Language Definitions for JSX files.
I use harmony when working with JSX files, which doesn't fit well with this language definition. I was trying then to use JavaScriptNext but, as pointed out here, without the support of JSX I can't use jsxhint. Ideas?
Here's a sanitized code snippet that still exhibits the problem. Notice that in Sublime Text, the final '}' is yellow. The rest of the file this was taken from stays like that. I'm using ST 3.0, build 3143.
if (row.foo === BAR) {
xyzzy.push({ key: 'fnord', label: 'glorp', isDisabled: isDisabled || isCompleted, onClick: e => this.doTheTHing(row, e) });
}
There was a problem with syntax highlighting!!!!
Hi Allan. Your entry for the key bindings for Emmet support does not seem to work for me, and does not work for at least one other person? Check this thread: http://stackoverflow.com/questions/26089802/in-sublime-text-3-how-do-you-enable-emmet-for-jsx-files ... is there some small syntax issue in your key-binding snippet that I am not smart enough to edit?? :) Thanks in advance.
Seems that the updated package no longer hints PropTypes, something that I used quite extensively. Was this an intended change?
Multi-line comments are broken.
}
.<FilterToggleSetNumber
options={[{label: 'S', value: '0'},'1','2','3','4','5']}
onChange={this.onChange('bedrooms')}
value={bedrooms}
>
{}
fillPaint={{
"fill-opacity": .5,
"fill-color": {
{/*property: column,*/}
type: 'exponential',
stops: data.getUniqueValues(column).sort().map((rr, ii) => [rr, scale(rr)]).toArray()
}
}}
var x = (a) => {
var y = x;
}
var x = (a)=> {
var y = x;
}
there will be a highlighting problem if you remove space before =>
.
Every time i open a .jsx file i have to set the syntax manually, sublime thinks it's an ordinary javascript file.
:(
I'm setting up a new machine with ST3 and tried installing JSX
using Package Control and JSX
is not showing up as an installable package. https://packagecontrol.io/packages/JSX lists that the package is missing.
An interim solution is to add this repo to the repositories
list in your Package Control.sublime-settings
file.
{
"repositories":
[
"https://github.com/allanhortle/JSX"
]
}
Then run Package Control: Install Package
> JSX
.
It would be great if the snippets could be broken out into a separate package, that way users could install them, or not, at their preference.
this.state.showAll
? <Text><IconMinus className="marginRight05" /> Collapse all</Text>
: <Text><IconPlus className="marginRight05" /> Expand all</Text>
Whenever I type things that I'm used to being autocompleted (Sublime will autocomplete based on the words already found in the current document), all I get is all the React suggestions.
For example, I used to be able to type func and hit tab and it would autocomplete to function. Now it autocompletes to React.PropTypes.func.
What the heck? I don't WANT this. Any way to just turn it off? All I want is proper syntax highlighting.
.jumbotron
should expand to <div className="jumbotron"></div>
with emmet support.
Hello )
I've stumbled upon a problem with autocompletion in ST3 and it is like this:
For example in my test.js file I am typing descr
when I want to type describe
and this is what I see
and only when I type descri
I do start seeing a suggestion to enter describe
Expected behavior would be to see a mix of 2 autocompletions.
Or to be able to disable autocompletion for JSX plugin.
(class
should be colored in both)
flow worked pretty well before, but now seems pretty broken in many aspects. As a workaround, I've added to Package Control.sublime-settings
:
"auto_upgrade_ignore": [
"JSX",
],
...and then unzipping this in ~/Library/Application\ Support/Sublime\ Text\ 3/Installed\ Packages/JSX.sublime-package
JSX.sublime-package.zip
(it also seems to break sublimelinter... might be my specific setup...)
thanks for the plugin :)
Thank you for answering my question on Stack Overflow!
Here's the issue I had: I haven't recently tried, but last time I tried, I believe that unmatched quotes in a block (can't remember or single or double) would mess up the entire file for syntax highlighting.
You may have already fixed this, and if so, sorry!
Rolling back to https://github.com/allanhortle/JSX/tree/v2.0.2 works perfectly fine.
It worked then it didn't. Uninstalled and reinstalled and no dice. Any ideas?
In the list of packages is there. But is not in View->Syntax. And not highlight *.jsx files.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.