Comments (4)
Hi,
I've a similar issue with the mac version. Hers's an example:
Open a new tab, set the syntax to javascript and past the code below.
var colors = ['#ffffff', '#000000', '#eeece1', '#1f497d', '#4f81bd', '#c0504d', '#9bbb59', '#8064a2', '#4bacc6', '#f79646', '#ffff00', '#f2f2f2', '#7f7f7f', '#ddd9c3', '#c6d9f0', '#dbe5f1', '#f2dcdb', '#ebf1dd', '#e5e0ec', '#dbeef3', '#fdeada', '#fff2ca', '#d8d8d8', '#595959', '#c4bd97', '#8db3e2', '#b8cce4', '#e5b9b7', '#d7e3bc', '#ccc1d9', '#b7dde8', '#fbd5b5', '#ffe694', '#bfbfbf', '#3f3f3f', '#938953', '#548dd4', '#95b3d7', '#d99694', '#c3d69b', '#b2a2c7', '#b7dde8', '#fac08f', '#f2c314', '#a5a5a5', '#262626', '#494429', '#17365d', '#366092', '#953734', '#76923c', '#5f497a', '#92cddc', '#e36c09', '#c09100', '#7f7f7f', '#0c0c0c', '#1d1b10', '#0f243e', '#244061', '#632423', '#4f6128', '#3f3151', '#31859b', '#974806', '#7f6000'];
var buttons = ['fontcolor', 'backcolor'];
Now add/remove a space after the first square bracket and you'll notice the syntax highlight gets messed up! Hope this helps tracking the bug.
:)
from language-javascript.
@andrebras That problem is being tracked here: atom/atom#1667 (it's an issue with long lines).
from language-javascript.
I added initial support for these so they at least colorize as strings with interpolation:
@anthonny Thanks so much for opening this up, it will be nice to have support for these going forward, this will be included in the next Atom release, 0.130
from language-javascript.
@kevinsawicki you're welcome, always a pleasure to give a hand ! 😄
from language-javascript.
Related Issues (20)
- Shorthand jsx fragments break syntax highlighting HOT 3
- Syntax highlighting for language-todo scopes dooesn't work with tree-parser grammar HOT 1
- Add JavaScript snippets to vue files
- Numeric Separators
- Failed to load a language-javascript package grammar
- Edit snippet file in package
- Option to add trailing commas (and possibility of tieing behavior in to linters) HOT 4
- Auto Indent not working with JSX elements
- JavaScript syntax highlighting breaks then spreads when using innerHTML = `` HOT 2
- Links not in syntax HOT 1
- Coloring for parameters with default values HOT 3
- Failed to load a language-javascript package grammar HOT 1
- Nullish Coalescing Operator (??) HOT 2
- Array with optional chanining HOT 4
- Code comments preceding a string to trigger language-appropriate syntax highlighting
- Support `this.html` highlighting
- Windows github actions not working
- Support for AggregateError syntax highlighting.
- Add support for .cjs files HOT 2
- Oddity with optional chaining
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 language-javascript.