branch: elpa/jade-mode
commit 57ab4d6555f5ef56cb03fad8ed501f37049d04bf
Author: Travis Jefferson <[email protected]>
Commit: Travis Jefferson <[email protected]>
[#39] add JS examples to highlight
---
example.jade | 10 ++++++++--
1 file changed, 8 insertions(+), 2 deletions(-)
diff --git a/example.jade b/example.jade
index ca47edd415..69f9376ecc 100644
--- a/example.jade
+++ b/example.jade
@@ -1,5 +1,5 @@
!!!
-html(lang="en")
+html(lang="en", class = ['classOne', 'classTwo'].join(','))
-// consult http://jade-lang.com for a full language reference
head
title My page
@@ -26,7 +26,13 @@ html(lang="en")
span= 'another' + "quote example"
span this one shouldn't higlight strings or... .other #things if else
| this one shouldn't highlight strings, and the same goes for
.keywords #ok ?
- div#paren.content.example(style = 'float-left') Content .here #should
be plain if for
+ div#paren.content.example(style = 'float: left;') Content .here
#should be plain if for
+ div.examples#javascript
+ - var a = 1;
+ - var helperFunction = function (a) { return (a === 1 ? 'singular' :
'plural'); };
+ span= locals.someArray.join(', ')
+ span= a.toString() + helperFunction(a)
+ span#id.class(style = 'margin-bottom: 0;')=
"some_js_expression".split('_').join(' ')
#footer
#copywrite-text= locals