JGCSCS 4 Ruby *.rb JGsoft support@editpadpro.com http://www.editpadpro.com http://www.ruby.org TRUE # 0 4 # Ruby string = "Hello World" number = (1 + 2) * 3 regex = /regex/ 0 FALSE 15 Comment #.*+ FALSE FALSE 5 0 0 TRUE Documentation Comment ^=begin FALSE FALSE 6 0 7 FALSE Regex A / at the start of the line starts a regular expression. The next unescaped / terminates the regex. ^\s*/[^/\\\r\n]*+(?:\\.[^/\\\r\n]*+)*+/? FALSE FALSE 19 0 0 FALSE Number Integer, floating point, hexadecimal and binary \b(?:[0-9]++(\.[0-9]++)?(e[+-]?+[0-9]++)?|0x[0-9a-fA-F]++|0b[01]++)\b FALSE FALSE 10 0 0 FALSE Reserved Words \b(?:__FILE__|__LINE__|BEGIN|END|alias|and|begin|break|case|class|def(?:ined)?|do|else|elsif|end|ensure|false|for|if|in|load|module|next|nil|not|or|redo|require|rescue|retry|return|self|super|then|true|undef|unless|until|when|while|yield)\b FALSE FALSE 7 0 10 FALSE Operator [=<>~!/*+-]++ FALSE FALSE 13 0 10 FALSE Brackets { } ( ) [ ] [][{}()|]++ FALSE FALSE 17 0 10 FALSE Scoping [$@]++ FALSE FALSE 12 0 0 FALSE Single-quoted string ' FALSE FALSE 9 0 8 FALSE Double-quoted string " FALSE FALSE 9 0 9 FALSE Generalized delimited input Nested ( and ) delimiters %[qQwrx]?+\( FALSE FALSE 9 0 3 FALSE Generalized delimited input Nested [ and ] delimiters %[qQwrx]?+\[ FALSE FALSE 9 0 0 FALSE Generalized delimited input Nested { and } delimiters %[qQwrx]?+{ FALSE FALSE 9 0 0 FALSE Generalized delimited input Nested < and > delimiters %[qQwrx]?+< FALSE FALSE 9 0 0 FALSE Generalized delimited input %[qQwrx]?+([^\r\n[(<{])(?:.*?(? 1 9 FALSE 3 Opening < < FALSE FALSE 9 0 6 FALSE Closing > > FALSE FALSE 9 0 1 FALSE Escaped character \\. FALSE TRUE 9 0 0 FALSE Documentation Comment 1 5 TRUE 2 Closing delimiter ^=end FALSE FALSE 6 0 -1 FALSE Heading ^=.++ FALSE FALSE 6 0 0 TRUE Single-quoted string 1 9 TRUE 2 Closing ' ' FALSE FALSE 9 0 2 FALSE Escaped character \\. FALSE TRUE 9 0 0 FALSE Double-quoted string 1 9 TRUE 2 Closing " " FALSE FALSE 9 0 2 FALSE Escaped character \\. FALSE TRUE 9 0 0 FALSE Regex 1 0 FALSE 2 Regex A / after a reserved word, bracket or operator starts a regular expression. The next unescaped / terminates the regex. [ \t]*/[^/\\\r\n]*+(?:\\.[^/\\\r\n]*+)*+/? FALSE FALSE 19 0 0 FALSE No regex \G FALSE FALSE 0 0 2 FALSE