Title: [201291] trunk/Websites/webkit.org
Revision
201291
Author
[email protected]
Date
2016-05-23 13:14:45 -0700 (Mon, 23 May 2016)

Log Message

Add syntax highglighting for ES6 "let", "const" and "of" keywords.
https://bugs.webkit.org/show_bug.cgi?id=157994

Reviewed by Geoffrey Garen.

* wp-content/plugins/hyperlight/hyperlight/languages/_javascript_.php:

Modified Paths

Diff

Modified: trunk/Websites/webkit.org/ChangeLog (201290 => 201291)


--- trunk/Websites/webkit.org/ChangeLog	2016-05-23 17:40:36 UTC (rev 201290)
+++ trunk/Websites/webkit.org/ChangeLog	2016-05-23 20:14:45 UTC (rev 201291)
@@ -1,3 +1,12 @@
+2016-05-23  Jon Davis  <[email protected]>
+
+        Add syntax highglighting for ES6 "let", "const" and "of" keywords.
+        https://bugs.webkit.org/show_bug.cgi?id=157994
+
+        Reviewed by Geoffrey Garen.
+
+        * wp-content/plugins/hyperlight/hyperlight/languages/_javascript_.php:
+
 2016-05-13  Brady Eidson  <[email protected]>
 
         Extend protector naming code style guideline to cover operator= assignment.

Modified: trunk/Websites/webkit.org/wp-content/plugins/hyperlight/hyperlight/languages/_javascript_.php (201290 => 201291)


--- trunk/Websites/webkit.org/wp-content/plugins/hyperlight/hyperlight/languages/_javascript_.php	2016-05-23 17:40:36 UTC (rev 201290)
+++ trunk/Websites/webkit.org/wp-content/plugins/hyperlight/hyperlight/languages/_javascript_.php	2016-05-23 20:14:45 UTC (rev 201291)
@@ -16,11 +16,11 @@
 
         $this->addStates(array(
             'init' => array(
-	            'string', 'char', 'number', 'comment',
-	            'keyword' => array('', 'type', 'modifier','control','literal', 'operator'),
-	            'identifier',
-	            'operator'
-	        )
+                'string', 'char', 'number', 'comment',
+                'keyword' => array('', 'type', 'modifier','control','literal', 'operator'),
+                'identifier',
+                'operator'
+            )
         ));
 
         $this->addRules(array(
@@ -32,22 +32,22 @@
             'comment' => Rule::C_COMMENT,
             'keyword' => array(
                 array(
-					'super','this','arguments','prototype','constructor'
+                    'super','this','arguments','prototype','constructor'
                 ),
                 'type' => array(
-                    'boolean', 'byte', 'char', 'class', 'double', 'enum', 'float', 'function', 'int', 'interface', 'long', 'short', 'var', 'void'
+                    'boolean', 'byte', 'char', 'class', 'const', 'double', 'enum', 'float', 'function', 'int', 'interface', 'let', 'long', 'short', 'var', 'void'
                 ),
-				'modifier' => array(
-					'const','export','extends','final','implements','native','private','protected','public','static','synchronized','throws','transient','volatile'
-				),
-				'control' => array(
-					'break','case','catch','continue','default','do','else','finally','for','goto','if','import','package','return','switch','throw','try','while'
-				),
+                'modifier' => array(
+                    'const','export','extends','final','implements','native','private','protected','public','static','synchronized','throws','transient','volatile'
+                ),
+                'control' => array(
+                    'break','case','catch','continue','default','do','else','finally','for','goto','if','import','package','return','switch','throw','try','while'
+                ),
                 'literal' => array(
                     'false', 'this', 'true', 'null', 'undefined', 'NaN'
                 ),
                 'operator' => array(
-					'delete','in','instanceof','new','typeof','void','with'
+                    'delete', 'in', 'instanceof', 'new', 'of', 'typeof', 'void', 'with'
                 ),
             ),
             'identifier' => Rule::C_IDENTIFIER,
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to