emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/jade-mode 57ab4d6555 085/128: [#39] add JS examples to hig


From: ELPA Syncer
Subject: [nongnu] elpa/jade-mode 57ab4d6555 085/128: [#39] add JS examples to highlight
Date: Sat, 29 Jan 2022 08:24:49 -0500 (EST)

branch: elpa/jade-mode
commit 57ab4d6555f5ef56cb03fad8ed501f37049d04bf
Author: Travis Jefferson <tjefferson@signpost.com>
Commit: Travis Jefferson <tjefferson@signpost.com>

    [#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
 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]