Skip to content

Commit 8b479e4

Browse files
committed
order props by alphabetical order
1 parent 6dbe42e commit 8b479e4

File tree

1 file changed

+10
-11
lines changed

1 file changed

+10
-11
lines changed

src/parser.js

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -34,28 +34,21 @@ var parser = function(lexer, ast) {
3434
this.suppressErrors = false;
3535
this.entries = {
3636
'IDENTIFIER': [
37-
this.tok.T_CLASS_C,
38-
this.tok.T_DIR,
39-
this.tok.T_FILE,
40-
this.tok.T_FUNC_C,
41-
this.tok.T_LINE,
42-
this.tok.T_METHOD_C,
43-
this.tok.T_NS_C,
44-
this.tok.T_TRAIT,
4537
this.tok.T_ABSTRACT,
46-
this.tok.T_LOGICAL_AND,
4738
this.tok.T_ARRAY,
4839
this.tok.T_AS,
4940
this.tok.T_BREAK,
5041
this.tok.T_CALLABLE,
5142
this.tok.T_CASE,
5243
this.tok.T_CATCH,
5344
this.tok.T_CLASS,
45+
this.tok.T_CLASS_C,
5446
this.tok.T_CLONE,
5547
this.tok.T_CONST,
5648
this.tok.T_CONTINUE,
5749
this.tok.T_DECLARE,
5850
this.tok.T_DEFAULT,
51+
this.tok.T_DIR,
5952
this.tok.T_DO,
6053
this.tok.T_ECHO,
6154
this.tok.T_ELSE,
@@ -70,8 +63,10 @@ var parser = function(lexer, ast) {
7063
this.tok.T_EVAL,
7164
this.tok.T_EXIT,
7265
this.tok.T_EXTENDS,
66+
this.tok.T_FILE,
7367
this.tok.T_FINAL,
7468
this.tok.T_FINALLY,
69+
this.tok.T_FUNC_C,
7570
this.tok.T_FOR,
7671
this.tok.T_FOREACH,
7772
this.tok.T_FUNCTION,
@@ -85,10 +80,15 @@ var parser = function(lexer, ast) {
8580
this.tok.T_INSTEADOF,
8681
this.tok.T_INTERFACE,
8782
this.tok.T_ISSET,
83+
this.tok.T_LINE,
8884
this.tok.T_LIST,
85+
this.tok.T_LOGICAL_AND,
86+
this.tok.T_LOGICAL_OR,
87+
this.tok.T_LOGICAL_XOR,
88+
this.tok.T_METHOD_C,
8989
this.tok.T_NAMESPACE,
9090
this.tok.T_NEW,
91-
this.tok.T_LOGICAL_OR,
91+
this.tok.T_NS_C,
9292
this.tok.T_PRINT,
9393
this.tok.T_PRIVATE,
9494
this.tok.T_PROTECTED,
@@ -105,7 +105,6 @@ var parser = function(lexer, ast) {
105105
this.tok.T_USE,
106106
this.tok.T_VAR,
107107
this.tok.T_WHILE,
108-
this.tok.T_LOGICAL_XOR,
109108
this.tok.T_YIELD
110109
],
111110
'VARIABLE': [

0 commit comments

Comments
 (0)