Comments (8)
I don't write C++ so haven't been able to validate, but I have checked several other languages and can't seem to repro the bug. Are you still seeing this issue?
from seti-syntax.
Yes, I have updated the theme to the latest version and am using Atom v0.119. The issue is still there, and it happens even on a clean Atom installation with the theme. It also happens only with this theme.
from seti-syntax.
@Shammah - maybe you post a gist of your wrong-highlighted code?
from seti-syntax.
Well, the image really shows what goes wrong already.
The gist was made anyway, and can be found at https://gist.github.com/Shammah/4ba82a272069b84366c8
from seti-syntax.
Same problem here, I noticed it happens only with built-in functions or statements, like "if", "for", "printf", "free", etc... and only if you leave a space before the parenthesis. Maybe this could be of some help.
from seti-syntax.
Any progress on this? The issue is still present.
I am not familiar with this modern websy stuff but it might be helpful to point out that according to the dev tools, when the bracket is white (therefore right after the keyword – if
in this case), it's a plain character inside class="meta block c"
while if it's blue (there is a space before it), the space and the bracket are additionally inside class="meta initialization c"
and the bracket itself additionally inside class="punctuation definition parameters c"
.
I don't know which one is responsible for the colour but it shouldn't be that hard to make an exception, right?
EDIT: It's .punctuation.definition.parameters
. Now let's figure out how to fix it.
Lines 296–302 in index.less:
// QUOTES
&.string,
&.variable,
&.parameters,
&.array {
color: @string;
}
It's just a logical assumption, but a dirty fix could be something like &.parameters.c {color: @code-font-color;}
, right? However, is this not an issue with the parser given that the classes of the same character differ depending on the space?
from seti-syntax.
I managed to track down the exact problem. I've submitted a pull request to the language-c repo here:
atom/language-c#62
tl;dr it's a stray question mark causing the pattern (
to be matched (whitespace and parenthesis).
from seti-syntax.
@jzhu98 Well done, I've glanced over some files and it doesn't appear to break anything. Also fixes the same issue in Sublime. Thanks!
from seti-syntax.
Related Issues (20)
- Code are not being colored in the editor HOT 2
- Improvements for Python syntax highlighting HOT 1
- [Python] Fix needed for highlighting numbers using underscores HOT 1
- Match case letters not visible when selected HOT 1
- React.js JSX : Distinguish between Built-in components and string literal; not Built-in components and Custom components
- Color Theme and Main body of text
- It doesn't work for html and css
- If line number is a multiple of 6, the tag will not show the match underline.
- bad cursor placement in google Apps Script / code shifted two rows down
- atom-ide-package failing to load due to theme
- Syntax highlighting PhP
- Colons get replaced with blank blocks (TypeScript Angular) HOT 1
- Syntax is only dichromatic with HTML in Atom
- More syntax colors! (and a real issue)
- No file icon for Lisp.
- syntac at Python not perfect (basic)
- seti-syntax color theme is not working.
- Seti-theme + seti-syntax soft wrap issue
- colors not working
- Failed to activate Seti-syntax package HOT 1
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 seti-syntax.