Commit Graph

27 Commits

Author SHA1 Message Date
Tim Pope
3126b9a8b5 Sync with official runtime files 2022-08-22 15:07:28 -04:00
Nathaniel Watts
98645ebe88 Add colon classes to HAML syntax
This adds syntax detection for HAML files.

An example would be if using classes provided by [Tailwind CSS][1]

IE:

```html
<div class="flex sm:inline-flex md:block lg:hidden xl:flex ...">
  <!-- ... -->
</div>
```

```haml
.flex.sm:inline-flex.md:block.lg:hidden.xl:flex
  # ...
```

[1]: https://tailwindcss.com/docs/flexbox-display#responsive
2018-08-21 17:26:03 -04:00
Tim Pope
8f7982e06e Sync with upstream 2017-05-08 16:34:21 -04:00
Tim Pope
c5b09ad120 Tighten check for inline JavaScript
Closes #60.
2014-04-04 17:36:37 -04:00
Tim Pope
47c4dff622 Bump timestamps as submitted upstream 2010-08-09 16:23:28 -04:00
Tim Pope
fb83d43917 Allow Haml interpolation inside JavaScript strings 2010-08-02 16:44:54 -04:00
Tim Pope
c8de253905 Synchronize dates for delivering upstream 2010-07-26 18:40:36 -04:00
Bernerd Schaefer
dfb1f770d5 Highlight XML namespaced elements such as '%xsl:stylesheet' 2010-05-28 10:56:01 -04:00
Tim Pope
567c6d8f47 Support comma line continuations 2010-05-10 22:46:53 -04:00
Tim Pope
d29da9581f Support :css filter [Brian Gernhardt] 2010-05-10 22:26:15 -04:00
Tim Pope
b80f2c5359 Update email address 2010-05-10 22:22:49 -04:00
Jon Distad
bd62a5eda0 unlet main_syntax at the end of syntax/haml.vim 2009-11-24 13:52:59 -05:00
Tim Pope
5ffacbf2f9 Allow nesting inside curly braces 2009-10-11 16:49:50 -04:00
Tim Pope
cabed106e2 At beginning of line, #{ is interpolation, not id 2009-07-23 15:17:35 -04:00
Tim Pope
4b23eccc45 Fix highlighting of &= and != 2009-07-08 20:15:34 -04:00
Tim Pope
2a8ce3b36e Support Haml 2.2 %a(href="") attribute syntax
The highlighting of event handlers (onclick, etc.) could use some work.
2009-07-08 00:13:26 -04:00
Tim Pope
c745f722af Update helpers to Haml 2.2 2009-07-07 22:59:18 -04:00
Tim Pope
ea667efff7 Support :cdata and :maruku filters 2009-07-07 22:49:18 -04:00
Tim Pope
9dba20dc31 New interpolation rules
- Allow #{} outside of == regions, as in Haml 2.2.
- Allow escaping of #{} with \ along with any \ immediately before #{}.
- Support standalone & and ! at beginning of line.
2009-07-07 22:17:56 -04:00
Tim Pope
9f2c7ed4af Skip blank lines in filter regions 2008-11-25 15:55:38 -05:00
Tim Pope
d547b07025 Interpolation in :javascript blocks 2008-10-03 18:04:25 -04:00
Tim Pope
6f3dc2e792 Highlight :javascript filter 2008-09-30 23:46:07 -04:00
Tim Pope
dd7157447b Support &=, !=, &==, and !== notations 2008-09-03 12:00:26 -04:00
Tim Pope
6ad8a7f6d8 Filters update
- Support #{} interpolation in appropriate filters
- Support for escaped filter
- Better highlighting for erb filter
2008-08-01 15:11:01 -04:00
Tim Pope
e1bda6ccfb Normalize modelines 2008-07-03 16:08:28 -04:00
Tim Pope
e252bdf2bc Highlight ruby inside == #{} 2008-06-20 11:19:48 -04:00
Tim Pope
fa8b334f75 Initial commit 2008-06-20 10:39:43 -04:00