Class: Rouge::Lexers::Actionscript
Constant Summary
Constants inherited
from RegexLexer
RegexLexer::MAX_NULL_SCANS
Token::Tokens::Num, Token::Tokens::Str
Instance Attribute Summary
Attributes inherited from Rouge::Lexer
#options
Class Method Summary
collapse
Methods inherited from RegexLexer
append, #delegate, #goto, #group, #groups, #in_state?, #pop!, prepend, #push, #recurse, replace_state, #reset!, #reset_stack, #stack, start, start_procs, state, #state, #state?, state_definitions, states, #step, #stream_tokens, #token
aliases, all, #as_bool, #as_lexer, #as_list, #as_string, #as_token, #bool_option, continue_lex, #continue_lex, debug_enabled?, demo, demo_file, desc, detect?, detectable?, disable_debug!, enable_debug!, filenames, find, find_fancy, guess, guess_by_filename, guess_by_mimetype, guess_by_source, guesses, #hash_option, #initialize, lex, #lex, #lexer_option, #list_option, lookup_fancy, mimetypes, option, option_docs, #reset!, #stream_tokens, #string_option, tag, #tag, title, #token_option, #with
token
Constructor Details
This class inherits a constructor from Rouge::Lexer
Class Method Details
.builtins ⇒ Object
[View source]
100
101
102
103
104
105
106
107
|
# File 'lib/rouge/lexers/actionscript.rb', line 100
def self.builtins
@builtins ||= %w(
void Function Math Class
Object RegExp decodeURI
decodeURIComponent encodeURI encodeURIComponent
eval isFinite isNaN parseFloat parseInt this
)
end
|
.constants ⇒ Object
[View source]
96
97
98
|
# File 'lib/rouge/lexers/actionscript.rb', line 96
def self.constants
@constants ||= Set.new %w(true false null NaN Infinity undefined)
end
|
.declarations ⇒ Object
[View source]
84
85
86
|
# File 'lib/rouge/lexers/actionscript.rb', line 84
def self.declarations
@declarations ||= Set.new %w(var with function)
end
|
.keywords ⇒ Object
[View source]
76
77
78
79
80
81
82
|
# File 'lib/rouge/lexers/actionscript.rb', line 76
def self.keywords
@keywords ||= Set.new %w(
for in while do break return continue switch case default
if else throw try catch finally new delete typeof is
this with
)
end
|
.reserved ⇒ Object
[View source]
88
89
90
91
92
93
94
|
# File 'lib/rouge/lexers/actionscript.rb', line 88
def self.reserved
@reserved ||= Set.new %w(
dynamic final internal native public protected private class const
override static package interface extends implements namespace
set get import include super flash_proxy object_proxy trace
)
end
|