This commit is contained in:
root
2019-08-30 19:30:19 +02:00
commit 6f2b105ca0
595 changed files with 78405 additions and 0 deletions

13
langs/ruby/constant.txt Normal file
View File

@ -0,0 +1,13 @@
RUBY_RELEASE_DATE
RUBY_PLATFORM
RUBY_VERSION
STDOUT
STDERR
FALSE
STDIN
TRUE
ARGF
ARGV
DATA
NIL
ENV

28
langs/ruby/exception.txt Normal file
View File

@ -0,0 +1,28 @@
NotImplementedError
ZeroDivisionError
FloatDomainError
SystemStackError
SignalException
SystemCallError
LocalJumpError
NoMemoryError
StandardError
ArgumentError
NoMethodError
SecurityError
RuntimeError
ScriptError
SyntaxError
RegexpError
ThreadError
IndexError
RangeError
SystemExit
LoadError
Interrupt
NameError
TypeError
EOFError
IOError
Errno
fatal

28
langs/ruby/library.txt Normal file
View File

@ -0,0 +1,28 @@
benchmark.rb
fileutils.rb
singleton.rb
delegate.rb
observer.rb
open-uri.rb
parsearg.rb
tempfile.rb
cgi-lib.rb
English.rb
ostruct.rb
profile.rb
pstore.rb
test/unit
tracer.rb
debug.rb
jcode.rb
net/*.rb
open3.rb
rexml.rb
stringio
date.rb
find.rb
time.rb
webrick
cgi.rb
yaml
pp

3
langs/ruby/modifier.txt Normal file
View File

@ -0,0 +1,3 @@
protected
private
public

11
langs/ruby/module.txt Normal file
View File

@ -0,0 +1,11 @@
ObjectSpace
Comparable
Enumerable
Precision
FileTest
Marshal
Process
Kernel
Errno
Math
GC

3
langs/ruby/operator.txt Normal file
View File

@ -0,0 +1,3 @@
<=>
...
..

63
langs/ruby/reserved.txt Normal file
View File

@ -0,0 +1,63 @@
DLN_LIBRARY_PATH
RUBYLIB_PREFIX
$LOAD_PATH
$FILENAME
RUBYSHELL
$VERBOSE
__FILE__
__LINE__
RUBYPATH
$stderr
$stdout
RUBYLIB
RUBYOPT
defined
$DEBUG
$stdin
module
FALSE
alias
class
FALSE
super
undef
while
yield
self
TRUE
self
TRUE
$-a
$-d
$-F
$-i
$-I
$-l
$-p
$-v
$-w
nil
def
$!
$@
$&
$`
$'
$+
$~
$=
$/
$\
$,
$;
$.
$<
$>
$_
$*
$$
$?
$:
$"
$1
$0

27
langs/ruby/ruby.txt Normal file
View File

@ -0,0 +1,27 @@
### RUBY LANGUAGE ###
# ELEMENT_NAME [optional-css-class] REGULAR_EXPRESSION
NAME Ruby
VERSION 1.7.24
COMMENT (\#.*?$)|(=begin.*?=end)
STRING (?default)|(%\w?\([^\)]*\))|(\`[^\`]*`)|(\<\<["'-]?\w+["']?)
REGEX:STRING /([^/]|(?<=\\)/)+/\[a-z]+
TAG <%=?|%>|^%
LIBRARY:KEYWORD \b(?alt:library.txt)\b
MODULE:KEYWORD \b(?alt:module.txt)\b
EXCEPTION:KEYWORD \b(?alt:exception.txt)\b
STATEMENT \b(?alt:statement.txt)\b
RESERVED \b(?alt:reserved.txt)\b
TYPE \b(?alt:type.txt)\b
MODIFIER \b(?alt:modifier.txt)\b
ENTITY (\b[a-z_]\w*\b(?=\s*\([^\)]*\)))|(\b[a-z_]\w*\b(?=\s*\{[^{)]*\}))
VARIABLE (?default)|((\$|@+)\w+)|\&\w+
CONSTANT (?default)|\b(?alt:constant.txt)\b
OPERATOR (?default)|\b(?alt:operator.txt)\b
IDENTIFIER (?default)
BRACES:KEYWORD [\{\}]
SYMBOL (?default)

28
langs/ruby/statement.txt Normal file
View File

@ -0,0 +1,28 @@
unless
rescue
ensure
return
elsif
while
begin
break
retry
raise
catch
throw
else
case
loop
redo
next
exit
then
when
end
for
and
not
if
do
in
or

34
langs/ruby/type.txt Normal file
View File

@ -0,0 +1,34 @@
Object
Hash
Symbol
IO
File
Continuation
File::Stat
Data
NilClass
Exception
Array
Proc
String
Numeric
Float
Integer
Bignum
Fixnum
Regexp
Thread
Module
Class
ThreadGroup
Method
UnboundMethod
Struct
Struct::Tms
TrueClass
Time
Dir
Binding
Range
MatchData
FalseClass