Skip to content

Commit f489441

Browse files
committedNov 12, 2013
Cleanup keyword table in parser
1 parent db43cfc commit f489441

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed
 

‎lib/opal/parser/keywords.rb

+8-8
Original file line numberDiff line numberDiff line change
@@ -12,36 +12,36 @@ def initialize(name, id, state)
1212
end
1313

1414
KEYWORDS = [
15-
["__LINE__", [:k__LINE__, :k__LINE__], :expr_end],
16-
["__FILE__", [:k__FILE__, :k__FILE__], :expr_end],
15+
["__LINE__", [:k__LINE__, :k__LINE__], :expr_end],
16+
["__FILE__", [:k__FILE__, :k__FILE__], :expr_end],
1717
["alias", [:kALIAS, :kALIAS], :expr_fname],
1818
["and", [:kAND, :kAND], :expr_beg],
1919
["begin", [:kBEGIN, :kBEGIN], :expr_beg],
2020
["break", [:kBREAK, :kBREAK], :expr_mid],
2121
["case", [:kCASE, :kCASE], :expr_beg],
22-
["class", [:kCLASS, :kCLASS], :expr_class],
23-
["def", [:kDEF, :kDEF], :expr_fname],
24-
["defined?", [:kDEFINED, :kDEFINED], :expr_arg],
22+
["class", [:kCLASS, :kCLASS], :expr_class],
23+
["def", [:kDEF, :kDEF], :expr_fname],
24+
["defined?", [:kDEFINED, :kDEFINED], :expr_arg],
2525
["do", [:kDO, :kDO], :expr_beg],
2626
["else", [:kELSE, :kELSE], :expr_beg],
2727
["elsif", [:kELSIF, :kELSIF], :expr_beg],
2828
["end", [:kEND, :kEND], :expr_end],
2929
["ensure", [:kENSURE, :kENSURE], :expr_beg],
3030
["false", [:kFALSE, :kFALSE], :expr_end],
3131
["if", [:kIF, :kIF_MOD], :expr_beg],
32-
["module", [:kMODULE, :kMODULE], :expr_beg],
32+
["module", [:kMODULE, :kMODULE], :expr_beg],
3333
["nil", [:kNIL, :kNIL], :expr_end],
3434
["next", [:kNEXT, :kNEXT], :expr_mid],
3535
["not", [:kNOT, :kNOT], :expr_beg],
3636
["or", [:kOR, :kOR], :expr_beg],
3737
["redo", [:kREDO, :kREDO], :expr_end],
38-
["rescue", [:kRESCUE, :kRESCUE_MOD], :expr_mid],
38+
["rescue", [:kRESCUE, :kRESCUE_MOD], :expr_mid],
3939
["return", [:kRETURN, :kRETURN], :expr_mid],
4040
["self", [:kSELF, :kSELF], :expr_end],
4141
["super", [:kSUPER, :kSUPER], :expr_arg],
4242
["then", [:kTHEN, :kTHEN], :expr_beg],
4343
["true", [:kTRUE, :kTRUE], :expr_end],
44-
["undef", [:kUNDEF, :kUNDEF], :expr_fname],
44+
["undef", [:kUNDEF, :kUNDEF], :expr_fname],
4545
["unless", [:kUNLESS, :kUNLESS_MOD], :expr_beg],
4646
["until", [:kUNTIL, :kUNTIL_MOD], :expr_beg],
4747
["when", [:kWHEN, :kWHEN], :expr_beg],

0 commit comments

Comments
 (0)
Please sign in to comment.