-
Notifications
You must be signed in to change notification settings - Fork 5.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: update JSX mode to reflect React JSX (#5451)
- Loading branch information
1 parent
4c6cf13
commit 66789a7
Showing
6 changed files
with
56 additions
and
198 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
/*EXPECTED | ||
hello world! | ||
*/ | ||
class Test { | ||
static function run() : void { | ||
// console.log("hello world!"); | ||
log "hello world!"; | ||
} | ||
import * as React from "react"; | ||
|
||
export default () => { | ||
return ( | ||
<div variant="p"> | ||
Keywords here are not highlighted, for example class or instance. | ||
</div> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,51 +1,62 @@ | ||
[[ | ||
"comment", | ||
["comment","/*EXPECTED"] | ||
],[ | ||
"comment", | ||
["comment","hello world!"] | ||
],[ | ||
"start", | ||
["comment","*/"] | ||
],[ | ||
"start", | ||
["keyword","class"], | ||
["keyword","import"], | ||
["text"," "], | ||
["language.support.class","Test"], | ||
["keyword.operator","*"], | ||
["text"," "], | ||
["paren.lparen","{"] | ||
["identifier","as"], | ||
["text"," "], | ||
["identifier","React"], | ||
["text"," "], | ||
["keyword","from"], | ||
["text"," "], | ||
["string","\"react\""], | ||
["punctuation.operator",";"] | ||
],[ | ||
"start" | ||
],[ | ||
"start", | ||
["text"," "], | ||
["keyword","static"], | ||
["keyword","export"], | ||
["text"," "], | ||
["storage.type","function"], | ||
["keyword","default"], | ||
["text"," "], | ||
["entity.name.function","run"], | ||
["paren.lparen","("], | ||
["paren.rparen",")"], | ||
["text"," "], | ||
["punctuation.operator",":"], | ||
["text"," "], | ||
["keyword","void"], | ||
["storage.type","=>"], | ||
["text"," "], | ||
["paren.lparen","{"] | ||
],[ | ||
"start", | ||
["text"," "], | ||
["comment","// console.log(\"hello world!\");"] | ||
],[ | ||
"start", | ||
["text"," "], | ||
["keyword","log"], | ||
["text"," "], | ||
["keyword","return"], | ||
["text"," "], | ||
["string","\"hello world!\""], | ||
["punctuation.operator",";"] | ||
["paren.lparen","("] | ||
],[ | ||
"start", | ||
["jsx",1], | ||
["text"," "], | ||
["paren.rparen","}"] | ||
["meta.tag.punctuation.tag-open.xml","<"], | ||
["meta.tag.tag-name.xml","div"], | ||
["text.tag-whitespace.xml"," "], | ||
["entity.other.attribute-name.xml","variant"], | ||
["keyword.operator.attribute-equals.xml","="], | ||
["string.attribute-value.xml","\"p\""], | ||
["meta.tag.punctuation.tag-close.xml",">"] | ||
],[ | ||
["jsx",1], | ||
["string"," Keywords here are not highlighted, for example class or instance."] | ||
],[ | ||
"start", | ||
["string"," "], | ||
["meta.tag.punctuation.end-tag-open.xml","</"], | ||
["meta.tag.tag-name.xml","div"], | ||
["meta.tag.punctuation.tag-close.xml",">"] | ||
],[ | ||
"start", | ||
["text"," "], | ||
["paren.rparen",")"], | ||
["punctuation.operator",";"] | ||
],[ | ||
"no_regex", | ||
["paren.rparen","}"] | ||
]] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.