Comments (5)
I forgot a picture to demonstrate this.
On the left is 'jsx' and on the right is 'js' file:
I'm just using leafgarland/typescript-vim plugin for typescript. The rest is all vim built-in syntax.
On the right is still syntax, but it's all vim built-in syntax with customize of my theme
from vim-jsx-pretty.
I think it's a problem with your plugin. The syntax groups defined in your color.vim broke the syntax highlighting.
Try to comment out this line.
from vim-jsx-pretty.
Yeah, i'v tested. it's definitely the error of that syntax:
syn match javascriptOpSymbols "=\{1,3}\|!==\|!=\|<\|>\|>=\|<=\|++\|+=\|--\|-="
But i'v tried this regex, it's working normally. I really don't know what cause conflict error there. Do you have any idea. Sorry i'm not really good at regex.
from vim-jsx-pretty.
The definition order of the syntax in Vim matters. So in my humble opinion, if you want to overwrite the syntax of some file type, you would better do it in the syntax/<filetype>.vim
.
So for this issue, you can try to move the overwrite rules to the syntax/javascript.vim
file of your plugin.
from vim-jsx-pretty.
Hi @yuezk , that's really a good idea. I'v updated my plugin to separate custom defined syntax in syntax/
folder and it now work perfectly.
So, i'll close this issue cause this's not vim-jsx-pretty issue. Thank you a lot for your plugin and helping ❤️
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.