Skip to content
Snippets Groups Projects
  1. Oct 31, 2016
  2. Jan 04, 2016
  3. Sep 21, 2015
  4. Jul 13, 2015
  5. Nov 12, 2014
  6. Oct 20, 2014
  7. Oct 16, 2014
  8. Sep 23, 2014
  9. Jul 25, 2014
  10. Jul 14, 2014
  11. Jul 07, 2014
  12. May 19, 2014
  13. May 09, 2014
  14. Feb 13, 2014
  15. Jan 28, 2014
  16. Jan 23, 2014
  17. Jan 16, 2014
  18. Aug 13, 2013
  19. Jul 30, 2013
  20. Jul 25, 2013
  21. Jun 14, 2013
    • Jean Boussier's avatar
      [ruby mode] Various improvements · 2de0b1c0
      Jean Boussier authored
      * Handle default string % literal for Ruby
      
        %{Hello World} == %q{Hello World}
      
        One gotcha though:
      
        5%(2) == 5 % 2
      
        Will be seen as a string, but it will be interpreted
        as the modulo operator by ruby.
      
      * Variables names can't include a ? nor a !
      
      * Improve symbols parsing rules
      
        - can be operators (e.g :+, :/, :-, :>>)
        - start with @ or $
        - end with !, ? or =
        - can't start by a digit
      
        Though when defined in reverse as hash keys (e.g {foo: 'bar'})
      
        - can only start with [a-zA-Z\_]
        - can't end with =
      
      * Instance and class variables can't start by a digit but globals can be only digits
      
      * Add some missing keywords
      
        Actually only __END__ is really a keyword.
        But __FILE__, __LINE__ and __dir__ are special variables so most editors highlight them as keywords.
      
      * Several regexp improvements
      
        - Use the string-2 class for regexps like JS mode
        - Xonsider %r as a regexp
        - Handle interpolation inside regexps
      
        It allow to colorize properly stuffs like:
      
        ```ruby
      /foo #{1 + 2}/
      %r{foo #{@bar} baz}
      ```
      
      * Fix parsing of brace enclosed string literals with interpolation
      
        As an example:
      
        ```ruby
      %Q{foo #{42} baz #{26} fizz}
      ```
        The coloration was broken after the first interpolation.
      2de0b1c0
  22. Jun 12, 2013
  23. May 13, 2013
  24. Jan 08, 2013
  25. Nov 07, 2012
  26. Aug 28, 2012
  27. Aug 03, 2012
  28. Jun 06, 2012
  29. Feb 06, 2012
  30. Jan 10, 2012
  31. Jan 09, 2012
  32. Dec 15, 2011
  33. Nov 28, 2011
  34. Aug 29, 2011
  35. Aug 18, 2011
Loading