diff options
author | Simen Heggestøyl <simenheg@gmail.com> | 2020-05-10 14:44:26 +0200 |
---|---|---|
committer | Simen Heggestøyl <simenheg@gmail.com> | 2020-05-10 14:57:22 +0200 |
commit | 1efaa1d66b9bc51284c7cac4477f45c9bde4fcfb (patch) | |
tree | ba11ecbc24d94c76f0bd5171ef87237dc880352b /test/manual/indent/less-css-mode.less | |
parent | 2df2f787116a9b0f3907ffbf1027c2eab0804e7d (diff) | |
download | emacs-1efaa1d66b9bc51284c7cac4477f45c9bde4fcfb.tar.gz emacs-1efaa1d66b9bc51284c7cac4477f45c9bde4fcfb.tar.bz2 emacs-1efaa1d66b9bc51284c7cac4477f45c9bde4fcfb.zip |
Allow underscores in CSS variable names
* lisp/textmodes/css-mode.el (css-nmchar-re): Allow underscores in
variable names (and in identifiers in general).
* test/manual/indent/css-mode.css: Add some examples of variable names
with underscores in them.
* test/manual/indent/less-css-mode.less: Add some examples of variable
names with underscores in them.
* test/manual/indent/scss-mode.scss: Add some examples of variable
names with underscores in them.
Diffstat (limited to 'test/manual/indent/less-css-mode.less')
-rw-r--r-- | test/manual/indent/less-css-mode.less | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/test/manual/indent/less-css-mode.less b/test/manual/indent/less-css-mode.less index 36c037450cc..b40a2362e28 100644 --- a/test/manual/indent/less-css-mode.less +++ b/test/manual/indent/less-css-mode.less @@ -1,3 +1,13 @@ +@var-with-dashes: #428bca; +@var_with_underscores: 10px; +@_var-starting-with-underscore: none; + +body { + background: @var-with-dashes; + padding: @var_with_underscores; + display: @_var-starting-with-underscore; +} + .desktop-and-old-ie(@rules) { @media screen and (min-width: 1200) { @rules(); } html.lt-ie9 & { @rules(); } |