Skip to content
This repository
Browse code

Disable unary notation if abbreviation node contains text

  • Loading branch information...
commit c973f3df42d9ec381e24654eae10c62cc7554c90 1 parent 5afc7be
Sergey Chikuyonok authored March 06, 2013
4  javascript/abbreviationUtils.js
@@ -21,11 +21,11 @@ emmet.define('abbreviationUtils', function(require, _) {
21 21
 		 * @return {Boolean}
22 22
 		 */
23 23
 		isUnary: function(node) {
24  
-			var r = node.matchedResource();
25  
-			if (node.children.length || this.isSnippet(node)) {
  24
+			if (node.children.length || node._text || this.isSnippet(node)) {
26 25
 				return false;
27 26
 			}
28 27
 			
  28
+			var r = node.matchedResource();
29 29
 			return r && r.is_empty;
30 30
 		},
31 31
 		
2  snippets.json
@@ -55,7 +55,7 @@
55 55
 			"animtf:l": "animation-timing-function:linear;",
56 56
 			"animtf:cb": "animation-timing-function:cubic-bezier(${1:0.1}, ${2:0.7}, ${3:1.0}, ${3:0.1});",
57 57
 			
58  
-			"ap": "appearance:${none}",
  58
+			"ap": "appearance:${none};",
59 59
 
60 60
 			"!": "!important",
61 61
 			"pos": "position:${1:relative};",

0 notes on commit c973f3d

Please sign in to comment.
Something went wrong with that request. Please try again.