Closed zerocool4u2 closed 8 years ago
not the best solution, but works for me, not really sure if there are other cases to avoid look for a general solution and the most important, class: should be a valid scenario for definition of a class? really don't know if there are some cases with this particular expression
#(module|class[^:]|def)
ruby.add_matcher(:standard,
/((#{start_statement_boundary}(module|class[^:]|def))|#{pre_keyword_boundary}do)\b/,
/(((^|;|\s)end)|#{continue_statement_boundary}(rescue|ensure))\b/,
:nest_except => [:double_quote, :regex, :backtick])
I'm puzzled. What is this ruby.add_matcher
syntax from? It's not part of this library!
really sorry!!! i'm working on this and other library at the same time, wrong tab, regards!
It's not a mayor issue, but the class: "something" notation it's not supported, it is perceived as a class definition instead of a symbol definition so mess the indentation
like i say, it's not a mayor issue, the :class => "" notation works fine and is rare to have this kind of definitions in .rb files anyway(active_admin), regards!