Comments (13)
This happens whenever there are to forward slashes on the same line. Notice the rest of the methods turning green (String colored)
from language-ruby.
atom/atom#3490
They pointed me to the project
from language-ruby.
Just going to include the snippet that was causing issues in atom/atom#3490 here:
value1 = value2 / (1.0 - (percentage / 100.0))
from language-ruby.
@rpechayr after looking into this more, your issue isn't the same as this one so I'm going to open up a new one for it, #55
from language-ruby.
Are you sure that this commit fixes this issue? I tried making the changes on my local installation and it didn't seem to fix the issue.
from language-ruby.
@deiga The commit should fix the issue @thedaniel was seeing, can you include a code snippet of what you are still seeing failing?
from language-ruby.
The enormous regular expression found in the following URL causes all subsequent code to be colored as part of the regex.
https://github.com/jzaefferer/jquery-validation/blob/master/src/core.js#L1119
I know this is a line of Javascript, but the regex works just fine in Ruby. Here's a screenshot of what this looks like in Atom.
from language-ruby.
@angelman I think you are seeing atom/atom#1667
from language-ruby.
@kevinsawicki You are right. Never mind. :)
from language-ruby.
@kevinsawicki It's still the same as in #47 (comment)
from language-ruby.
@deiga that could be a different issue, mind including the code snippet? It makes it much quicker to reproduce than retyping it from a screenshot.
from language-ruby.
def format_amount_get_cents(price)
sprintf("%.2f", Float(price)/100).split(/[.,]/)[1]
end
def format_short_month(date)
date.strftime("%b")
end
from language-ruby.
@deiga Great, thanks for the snippet, just pushed a fixed for it
from language-ruby.
Related Issues (20)
- Inconsistent highlighting of constants HOT 1
- Tree Sitter doesn't highlight public/private/protected HOT 1
- Symbol literals have incorrect class HOT 4
- Final `end` does not get highlighted after a block with a rescue inside a method HOT 2
- Inconsistency in Ruby symbol with TreeSitter HOT 2
- where is the path language-ruby get installed to on Windows HOT 1
- Hello HOT 1
- Failed to load a language-ruby package grammar - RHEL 7.7 HOT 20
- Failed to load a language-ruby package grammar HOT 1
- Syntax highlighting stops after <<base in for-each statement
- VS code support HOT 1
- Regex causes Gray (discolored) for large portion of Beginning HOT 13
- Abandoned? HOT 7
- Inconsistent highlighting of heredocs HOT 1
- Syntax highlighting broken in Markdown with inline comment at method definition line
- No release since Nov 2019 HOT 5
- Escaped characters in Ruby regex throws off color syntax highlighter HOT 3
- self.public shouldn't be colored as keyword
- Heredoc wrong colors
- Inconsistent color of local variable
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-ruby.