Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

haml - support more colors when highlighting #13

Open
onebree opened this issue Jan 20, 2016 · 0 comments
Open

haml - support more colors when highlighting #13

onebree opened this issue Jan 20, 2016 · 0 comments

Comments

@onebree
Copy link

onebree commented Jan 20, 2016

Originally posted in: github-linguist/linguist#2814

Related issue: #3


There are issues when rendering multi-line comments with -# and Ruby string interpolation. But in Vim, none of these issues appear. I don't know if this is because Vim uses a different highlighting template (which is probably does). But either way, I think more colors (not necessarily the same as my theme) will help.

I have no issue writing in HAML in Vim with railscast theme.

screenshot from 2016-01-19 08-23-27

However, the highlighting provided by linguist is not nearly as expressive. (See screenshot if this issue has been closed.)

-#
  multi-line comment
  must be indented further than: -#

= bootstrap_form_for @address, as: :address, url: url do |f|
  %h2 General Information
  .panel.panel-default
    .panel-body
       %ul
         %li= "Company name: #{f.object.company.name}"
         %li= "Address type: #{f.object.type}"

  %h2 Address Details
  .panel.panel-default
    .panel-body
      .row
        .col-xs-12
          = f.text_field :address1
          = f.text_field :address2
      .row
        .col-xs-5
          = f.text_field :city
        .col-xs-4
          = f.collection_select :state_id, State.all.to_a, :id, :name
        .col-xs-3
          = f.text_field :zip

  .text-center= f.submit 'Submit', class: 'btn btn-success'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant