Git Product home page Git Product logo

Comments (13)

deiga avatar deiga commented on July 17, 2024

This happens whenever there are to forward slashes on the same line. Notice the rest of the methods turning green (String colored)
application_helper_rb_-__users_timosand_dropbox_development_epassi

from language-ruby.

rpechayr avatar rpechayr commented on July 17, 2024

👍 I am having the same issue and just posted it to atom/atom: issues
atom/atom#3490
They pointed me to the project

from language-ruby.

kevinsawicki avatar kevinsawicki commented on July 17, 2024

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.

kevinsawicki avatar kevinsawicki commented on July 17, 2024

@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.

deiga avatar deiga commented on July 17, 2024

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.

kevinsawicki avatar kevinsawicki commented on July 17, 2024

@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.

angelman avatar angelman commented on July 17, 2024

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.

screen shot 2014-09-11 at 4 26 15 pm

from language-ruby.

kevinsawicki avatar kevinsawicki commented on July 17, 2024

@angelman I think you are seeing atom/atom#1667

from language-ruby.

angelman avatar angelman commented on July 17, 2024

@kevinsawicki You are right. Never mind. :)

from language-ruby.

deiga avatar deiga commented on July 17, 2024

@kevinsawicki It's still the same as in #47 (comment)

from language-ruby.

kevinsawicki avatar kevinsawicki commented on July 17, 2024

@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.

deiga avatar deiga commented on July 17, 2024

@kevinsawicki

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.

kevinsawicki avatar kevinsawicki commented on July 17, 2024

@deiga Great, thanks for the snippet, just pushed a fixed for it

from language-ruby.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.