Skip to content

HarlemSquirrel/language-haml

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 

language-haml

Haml language grammar for GitHub's Atom IDE.

screenshot

Supported Filetypes

  • .haml
  • .hamlc (CoffeeScript Haml)

Supported filters

You can switch to another language right in the middle of your Haml file by using a "filter":

screenshot

This Haml bundle currently supports the following filters:

  • :css
  • :coffee
  • :javascript
  • :markdown
  • :php
  • :ruby
  • :ruby2js
  • :sass
  • :scss

The Haml documentation lists the following additional filters:

  • :cdata
  • :erb
  • :escaped
  • :less
  • :plain
  • :preserve
  • :textile

To add more you can simply copy and paste one of the captures in the ruby haml.cson file and make the changes necessary to support your filter of choice:

{
  'begin': '^(\\s*)(:css)'
  'beginCaptures':
    '2':
      'name': 'entity.name.tag.haml'
  'end': '^(?! *$|\\1 )'
  'name': 'source.css.embedded.html'
  'patterns': [
    {
      'include': 'source.css'
    }
  ]
}

About

Haml language grammar for GitHub's Atom IDE

Resources

License

Stars

Watchers

Forks

Packages

No packages published