Commit Graph

96 Commits

Author SHA1 Message Date
Antonio Ospite d580aa3a3f Fix highlighting comments in scss files
The sccs syntax file imports the definitions of the sass indented syntax
where comments follow some indentation rules[1].

These indentation rules are not valid in the scss syntax[2], and their
visual rendering is confusing.

So delete the syntax items referring to sass comments files before using
the newly defined ones.

Also derive the visual style directly from Comment instead of
sassComment, just to stress that the comment definitions are distinct
from the sass ones.

[1] http://sass-lang.com/documentation/file.INDENTED_SYNTAX.html#comments
[2] http://sass-lang.com/documentation/file.SASS_REFERENCE.html#comments

Closes #78.
2017-07-19 14:23:01 -04:00
Tim Pope 4e130d6c60 Drop support for old style bang variables 2017-05-08 16:45:26 -04:00
Tim Pope 09eee9bb21 Highlight !global and !optional 2017-05-08 16:45:03 -04:00
Tim Pope 8f7982e06e Sync with upstream 2017-05-08 16:34:21 -04:00
Tim Pope 1f2e47c78c Use shiftwidth() when available
Closes https://github.com/tpope/vim-haml/issues/76
2016-02-11 12:47:57 -05:00
Tim Pope 7d86692010 Remove commented code 2016-02-11 12:43:03 -05:00
Tim Pope 5c1189022d Minimal README 2015-10-05 15:41:52 -04:00
Tim Pope 204e327211 Fix comments option
Closes #68.
2014-08-08 12:24:30 -04:00
Tim Pope 9b7c3341c2 Set comments option 2014-08-07 19:55:50 -04:00
Tim Pope 18ff62828c Fix @media 2014-06-10 19:03:07 -04:00
Tim Pope 4d0834f05e Merge pull request #62 from mil/sass-mediaquery-fix
add syntax highlighting for mediaqueries in sass
2014-05-12 22:17:27 -04:00
mil 8cfc8eff59 add syntax highlighting for mediaqueries in sass 2014-05-12 17:24:04 -04:00
Tim Pope c5b09ad120 Tighten check for inline JavaScript
Closes #60.
2014-04-04 17:36:37 -04:00
Tim Pope b58f1cffa8 Treat hamlc as haml
Closes #57.
2014-04-03 18:09:48 -04:00
Tim Pope 90c0d3a4e0 Drop -c from compilers
Closes #52.
2014-04-03 08:45:48 -04:00
Tim Pope 6dbd89ff4e Merge pull request #55 from jigfox/add_charset_highlighting
add charset highlighting
2014-03-22 16:08:57 -04:00
Jens Fahnenbruck 6d664463c3 use PreProc as advised by @tpope 2014-03-22 19:53:03 +01:00
Jens Fahnenbruck 3e54f9f58a add charset highlighting
it uses the same highighting as @import
2014-03-22 17:38:01 +01:00
Tim Pope 33279476a6 Add headers to compilers 2013-06-02 13:34:22 -04:00
Gregory McIntyre 410a6a0517 Highlight comments on the end of lines in SASS 2013-05-27 21:49:45 -04:00
Tim Pope 81af73f76e Remove <:> from 'matchpairs'
Closes #46.
2013-05-27 21:25:18 -04:00
Tim Pope ce0cfeddbd Merge pull request #44 from jacknagel/compiler
Compiler plugins for sass and haml
2012-12-04 18:23:25 -08:00
Jack Nagel c637b6ea4c Add compiler plugin for haml 2012-12-04 15:54:23 -06:00
Jack Nagel b61cfdbe0d Add a compiler plugin for sass 2012-12-04 15:54:20 -06:00
Tim Pope b5736000da Merge pull request #43 from mattsacks/add-placeholders
Add SASS 3.2 placeholders
2012-11-23 21:24:36 -08:00
Matt Sacks 5a11a44b34 Add SASS 3.2 placeholders
Example: %placeholder { color: blue; }
Will match "%placeholder" as a PreProc
2012-11-20 11:09:32 -08:00
Tim Pope 9a891ed78a Fix highlight of @import "foo/*.png"
Closes #27.
2012-07-12 08:45:20 -04:00
Aaron Jensen 6284c188c2 Highlighting for @function and @return 2012-05-15 22:09:44 -04:00
Jo Liss b92ad53b89 Support *.hamlbars
Hamlbars is plain Haml with an "hb" helper Ruby function.

https://github.com/jamesotron/hamlbars
2012-05-01 22:03:41 -04:00
Hugues Lismonde 3490c63d68 Allow whitespace between property name and colon 2012-03-15 11:28:14 -04:00
Matt Sacks d48e9f1da3 Add interpolation in pseudo elements 2012-03-08 12:52:25 -05:00
Tim Pope a995d4aabb Fix indent after base and input tags
Closes #25.
2011-10-16 16:23:35 -04:00
Tim Pope de3e72a384 Merge pull request #16 from graywh/patch-1
Add SASS "@each ... in" syntax
2011-05-11 20:49:46 -07:00
Will Gray 6e6ecb3f04 Add SASS "@each ... in" syntax. 2011-04-29 07:59:04 -07:00
Tim Pope cc56253395 Allow whitespace before mixin name 2011-04-28 17:45:04 -04:00
Tim Pope a0345d5c22 Account for @include before properties 2010-11-08 23:28:36 -05:00
Austin Taylor 79041b05a7 Don't try to indent properties that follow mixins 2010-11-08 22:21:03 -05: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 55f14fd4fc Fix interpolation in Sass attribute 2010-07-28 10:05:12 -04:00
Tim Pope 9e25996111 Loosen @mixin for SCSS 2010-07-28 09:41:54 -04:00
Tim Pope ca196e671b Loosen @extend and @include for SCSS 2010-07-28 09:37:05 -04:00
Tim Pope 627e3950f1 Show interpolation in properties and attributes 2010-07-28 09:14:43 -04:00
Tim Pope c8de253905 Synchronize dates for delivering upstream 2010-07-26 18:40:36 -04:00
Tim Pope dd0a6233d5 Allow interpolation in strings in Sass 2010-07-26 18:05:38 -04:00
Tim Pope caf7f9cf29 Highlight @warn in Sass 2010-07-25 19:34:37 -04:00
Tim Pope e448efdb86 Provide a 'define' that matches Sass mixins 2010-07-25 15:59:21 -04:00
Tim Pope bd43cd97f0 Lower precedence of .css in 'suffixesadd' 2010-07-25 15:45:55 -04:00
Tim Pope e87143f99e Don't choke on missing semicolon in "a {b:c}" 2010-07-25 15:34:29 -04:00
Tim Pope 54139ceb5b Properly highlight SCSS comments 2010-07-25 14:36:53 -04:00