Comments (4)
The follow code has the same issue.
class App extends Component {
render() {
// NOTCE: no `;` after.
const arr = <div></div>
// Codes highlight incorrectly
var foo = 'foo';
if (foo === 'foo') {
console.log('hello');
}
}
}
from vim-jsx-pretty.
This issue is difficult for me. So, please last a moment.
I may possibly, I can't fix this problem.
To rewrite as below, This issue is fixed.
diff --git a/after/syntax/javascript.vim b/after/syntax/javascript.vim
index 7ec31e3..b4aee53 100644
--- a/after/syntax/javascript.vim
+++ b/after/syntax/javascript.vim
@@ -30,6 +30,7 @@ syntax region jsxRegion
\ end=+>\n\?\s*)\@=+
\ end=+>\n\?\s*}\@=+
\ end=+>;\@=+
+ \ end=+>\n\@=+
\ end=+\n\?\s\*,+
\ end=+\s*>,\@=+
\ end=+\s\+:\@=+
But, syntax-highlight break in different place.
Could you send me PR if you possible?
from vim-jsx-pretty.
@MaxMEllon I will try.
from vim-jsx-pretty.
I appreciate your kindness. 😄
I will try too.
from vim-jsx-pretty.
Related Issues (20)
- [Question] Using Emmet with vim-jsx-pretty HOT 2
- typescript: misaligned indentation when using function shorthand with generic HOT 4
- typescript: misaligned indentation for `=` in template literal HOT 4
- Not matching JSX with dot separator HOT 1
- Great documentation HOT 1
- Dealing with tags interspersed in blocks of text
- Typescript indent failing for multiline properties
- jsxTagName should be same as htmlTagName
- Different formatting than expected HOT 1
- Function declaration's closing bracket highlighted as error HOT 3
- Highlight type arguments after jsxComponentName
- Highlighting issue with colorscheme HOT 2
- Closing tag doesn't get colored - Gruvbox HOT 2
- [Feature] Highlight when call function HOT 2
- highlighting fails on closing parens HOT 3
- Matchit support has problems with unclosed tags
- Weird highlight using vim-polygot HOT 1
- Broken .tsx highlighting for arrow functions using generics
- Problem syntax HOT 2
- Is there a reason why Line Comments are being redefined?
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-pretty.