You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When #{ } is used after second line inside an attributes wrapper, the string followed after # is considered as a comment
I noticed this error on github, and I recognized that github syntax lib was getting the syntax from this repo. Let me know if this should be issued else where.
The text was updated successfully, but these errors were encountered:
The highlighter handles any line that starts with = or - as Ruby code
github/linguist handles the syntax highlighting across projects. I did some digging and found this line, which considers everything a comment after # on a Ruby line.
Sublime (where I'm testing the highlighting) handles this ably. However, Github's syntax highlighting seems to cherrypick a lot of the definitions. How they choose which definitions to use and ignore I'm still not sure.
I don't know of a way around this on Github without interfering with the Ruby definition. Do you have any ideas?
Attributes wrapper ref: http://www.rubydoc.info/gems/slim/frames#Attributes
When #{ } is used after second line inside an attributes wrapper, the string followed after # is considered as a comment
I noticed this error on github, and I recognized that github syntax lib was getting the syntax from this repo. Let me know if this should be issued else where.
The text was updated successfully, but these errors were encountered: