GithubHelp home page GithubHelp logo

jsx's People

Contributors

allanhortle avatar eleram avatar hmil avatar lujanfernaud avatar nooravz avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

jsx's Issues

Support for ECMAScript 6

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?

JSX syntax highlighting sometimes goes wrong.

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) });
}

bad-syntax-highlight_jsx_ chart-master_and_new_issue _allanhortle_jsx

PropTypes hints missing in v3

Seems that the updated package no longer hints PropTypes, something that I used quite extensively. Was this an intended change?

New syntax bugs.

  • Nested object in array in embedded js breaks on first }.
<FilterToggleSetNumber
    options={[{label: 'S', value: '0'},'1','2','3','4','5']}
    onChange={this.onChange('bedrooms')}
    value={bedrooms}
>
  • Comments in embedded js should not have {}
fillPaint={{
    "fill-opacity": .5,
    "fill-color": {
        {/*property: column,*/}
        type: 'exponential',
        stops: data.getUniqueValues(column).sort().map((rr, ii) => [rr, scale(rr)]).toArray()
    }
}}

Arrow Function problem.


	var x = (a) => {
		var y = x;
	}
	var x = (a)=> {
		var y = x;
	}

there will be a highlighting problem if you remove space before => .

JSX is missing from Package Control registry

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.

JSX in ternaries breaks

this.state.showAll
    ? <Text><IconMinus className="marginRight05" /> Collapse all</Text>
    : <Text><IconPlus className="marginRight05" /> Expand all</Text>

Breaking autocomplete?

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.

Normal ST3 autocompletion broken

Hello )
I've stumbled upon a problem with autocompletion in ST3 and it is like this:

  • first I see autocompletion from the JSX plugin
  • only when there are no options from JSX plugin autocompletion - I do start seeing normal ST autocompletion

For example in my test.js file I am typing descr when I want to type describe and this is what I see
image

and only when I type descri I do start seeing a suggestion to enter describe
image

Expected behavior would be to see a mix of 2 autocompletions.
Or to be able to disable autocompletion for JSX plugin.

Stop relying on semicolons to end syntax regexes

(class should be colored in both)
image

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 :)

Unmatched quotes

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!

Not working in ST2.0.2

In the list of packages is there. But is not in View->Syntax. And not highlight *.jsx files.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.