rouge 0.3.8 → 0.3.9

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1 @@
1
+ Enum.map([1,2,3], fn(x) -> x * 2 end)
@@ -0,0 +1,24 @@
1
+ #lang racket
2
+
3
+ ;; draw a graph of cos and deriv^3(cos)
4
+ (require plot)
5
+ (define ((deriv f) x)
6
+ (/ (- (f x) (f (- x 0.001))) 0.001))
7
+ (define (thrice f) (lambda (x) (f (f (f x)))))
8
+ (plot (list (function ((thrice deriv) sin) -5 5)
9
+ (function cos -5 5 #:color 'blue)))
10
+
11
+ ;; Print the Greek alphabet
12
+ (for ([i (in-range 25)])
13
+ (displayln
14
+ (integer->char
15
+ (+ i (char->integer #\u3B1)))))
16
+
17
+ ;; An echo server
18
+ (define listener (tcp-listen 12345))
19
+ (let echo-server ()
20
+ (define-values (in out) (tcp-accept listener))
21
+ (thread (λ ()
22
+ (copy-port in out)
23
+ (close-output-port out)))
24
+ (echo-server))
@@ -0,0 +1,104 @@
1
+ module Rouge
2
+ module Lexers
3
+ # Direct port of pygments Lexer.
4
+ # See: https://bitbucket.org/birkenfeld/pygments-main/src/7304e4759ae65343d89a51359ca538912519cc31/pygments/lexers/functional.py?at=default#cl-2362
5
+ class Elixir < RegexLexer
6
+ desc "Elixir language (elixir-lang.org)"
7
+
8
+ tag 'elixir'
9
+
10
+ filenames '*.ex', '*.exs'
11
+
12
+ mimetypes 'text/x-elixir', 'application/x-elixir'
13
+
14
+ BRACES = [
15
+ ['\{', '\}', 'cb'],
16
+ ['\[', '\]', 'sb'],
17
+ ['\(', '\)', 'pa'],
18
+ ['\<', '\>', 'lt']
19
+ ]
20
+
21
+ state :root do
22
+ rule /\s+/m, 'Text'
23
+ rule /#.*$/, 'Comment.Single'
24
+ rule %r{\b(case|cond|end|bc|lc|if|unless|try|loop|receive|fn|defmodule|
25
+ defp?|defprotocol|defimpl|defrecord|defmacrop?|defdelegate|
26
+ defexception|exit|raise|throw|unless|after|rescue|catch|else)\b(?![?!])|
27
+ (?<!\.)\b(do|\-\>)\b\s*}x, 'Keyword'
28
+ rule /\b(import|require|use|recur|quote|unquote|super|refer)\b(?![?!])/, 'Keyword.Namespace'
29
+ rule /(?<!\.)\b(and|not|or|when|xor|in)\b/, 'Operator.Word'
30
+ rule %r{%=|\*=|\*\*=|\+=|\-=|\^=|\|\|=|
31
+ <=>|<(?!<|=)|>(?!<|=|>)|<=|>=|===|==|=~|!=|!~|(?=[\s\t])\?|
32
+ (?<=[\s\t])!+|&&|\|\||\^|\*|\+|\-|/|
33
+ \||\+\+|\-\-|\*\*|\/\/|\<\-|\<\>|<<|>>|=|\.}x, 'Operator'
34
+ rule %r{(?<!:)(:)([a-zA-Z_]\w*([?!]|=(?![>=]))?|\<\>|===?|>=?|<=?|
35
+ <=>|&&?|%\(\)|%\[\]|%\{\}|\+\+?|\-\-?|\|\|?|\!|//|[%&`/\|]|
36
+ \*\*?|=?~|<\-)|([a-zA-Z_]\w*([?!])?)(:)(?!:)}, 'Literal.String.Symbol'
37
+ rule /:"/, 'Literal.String.Symbol', :interpoling_symbol
38
+ rule /\b(nil|true|false)\b(?![?!])|\b[A-Z]\w*\b/, 'Name.Constant'
39
+ rule /\b(__(FILE|LINE|MODULE|MAIN|FUNCTION)__)\b(?![?!])/, 'Name.Builtin.Pseudo'
40
+ rule /[a-zA-Z_!][\w_]*[!\?]?/, 'Name'
41
+ rule %r{::|[(){};,/\|:\\\[\]]}, 'Punctuation'
42
+ rule /@[a-zA-Z_]\w*|&\d/, 'Name.Variable'
43
+ rule %r{\b(0[xX][0-9A-Fa-f]+|\d(_?\d)*(\.(?![^\d\s])
44
+ (_?\d)*)?([eE][-+]?\d(_?\d)*)?|0[bB][01]+)\b}x, 'Literal.Number'
45
+ rule %r{%r\/.*\/}, 'Literal.String.Regex'
46
+
47
+ mixin :strings
48
+ end
49
+
50
+ state :strings do
51
+ rule /(%[A-Ba-z])?"""(?:.|\n)*?"""/, 'Literal.String.Doc'
52
+ rule /'''(?:.|\n)*?'''/, 'Literal.String.Doc'
53
+ rule /"/, 'Literal.String.Doc', :dqs
54
+ rule /'.*?'/, 'Literal.String.Single'
55
+ rule %r{(?<!\w)\?(\\(x\d{1,2}|\h{1,2}(?!\h)\b|0[0-7]{0,2}(?![0-7])\b[^x0MC])|(\\[MC]-)+\w|[^\s\\])}, 'Literal.String.Other'
56
+
57
+ BRACES.each do |_, _, name|
58
+ mixin :"braces_#{name}"
59
+ end
60
+ end
61
+
62
+ BRACES.each do |lbrace, rbrace, name|
63
+ state :"braces_#{name}" do
64
+ rule /%[a-z]#{lbrace}/, 'Literal.String.Double', :"braces_#{name}_intp"
65
+ rule /%[A-Z]#{lbrace}/, 'Literal.String.Double', :"braces_#{name}_no_intp"
66
+ end
67
+
68
+ state :"braces_#{name}_intp" do
69
+ rule /#{rbrace}[a-z]*/, 'Literal.String.Double', :pop!
70
+ mixin :enddoublestr
71
+ end
72
+
73
+ state :"braces_#{name}_no_intp" do
74
+ rule /.*#{rbrace}[a-z]*/, 'Literal.String.Double', :pop!
75
+ end
76
+ end
77
+
78
+ state :dqs do
79
+ rule /"/, 'Literal.String.Double', :pop!
80
+ mixin :enddoublestr
81
+ end
82
+
83
+ state :interpoling do
84
+ rule /#\{/, 'Literal.String.Interpol', :interpoling_string
85
+ end
86
+
87
+ state :interpoling_string do
88
+ rule /\}/, 'Literal.String.Interpol', :pop!
89
+ mixin :root
90
+ end
91
+
92
+ state :interpoling_symbol do
93
+ rule /"/, 'Literal.String.Symbol', :pop!
94
+ mixin :interpoling
95
+ rule /[^#"]+/, 'Literal.String.Symbol'
96
+ end
97
+
98
+ state :enddoublestr do
99
+ mixin :interpoling
100
+ rule /[^#"]+/, 'Literal.String.Double'
101
+ end
102
+ end
103
+ end
104
+ end
@@ -7,10 +7,11 @@ module Rouge
7
7
  b["Apache"] = Set.new %w(apache_child_terminate apache_child_terminate apache_get_modules apache_get_version apache_getenv apache_lookup_uri apache_note apache_request_headers apache_reset_timeout apache_response_headers apache_setenv getallheaders virtual apache_child_terminate)
8
8
  b["APC"] = Set.new %w(apc_add apc_add apc_bin_dump apc_bin_dumpfile apc_bin_load apc_bin_loadfile apc_cache_info apc_cas apc_clear_cache apc_compile_file apc_dec apc_define_constants apc_delete_file apc_delete apc_exists apc_fetch apc_inc apc_load_constants apc_sma_info apc_store apc_add)
9
9
  b["APD"] = Set.new %w(apd_breakpoint apd_breakpoint apd_callstack apd_clunk apd_continue apd_croak apd_dump_function_table apd_dump_persistent_resources apd_dump_regular_resources apd_echo apd_get_active_symbols apd_set_pprof_trace apd_set_session_trace_socket apd_set_session_trace apd_set_session override_function rename_function apd_breakpoint)
10
- b["Array"] = Set.new %w(array_change_key_case array_change_key_case array_chunk array_combine array_count_values array_diff_assoc array_diff_key array_diff_uassoc array_diff_ukey array_diff array_fill_keys array_fill array_filter array_flip array_intersect_assoc array_intersect_key array_intersect_uassoc array_intersect_ukey array_intersect array_key_exists array_keys array_map array_merge_recursive array_merge array_multisort array_pad array_pop array_product array_push array_rand array_reduce array_replace_recursive array_replace array_reverse array_search array_shift array_slice array_splice array_sum array_udiff_assoc array_udiff_uassoc array_udiff array_uintersect_assoc array_uintersect_uassoc array_uintersect array_unique array_unshift array_values array_walk_recursive array_walk array arsort asort compact count current each end extract in_array key krsort ksort list natcasesort natsort next pos prev range reset rsort shuffle sizeof sort uasort uksort usort array_change_key_case)
10
+ b["Array"] = Set.new %w(array_change_key_case array_change_key_case array_chunk array_column array_combine array_count_values array_diff_assoc array_diff_key array_diff_uassoc array_diff_ukey array_diff array_fill_keys array_fill array_filter array_flip array_intersect_assoc array_intersect_key array_intersect_uassoc array_intersect_ukey array_intersect array_key_exists array_keys array_map array_merge_recursive array_merge array_multisort array_pad array_pop array_product array_push array_rand array_reduce array_replace_recursive array_replace array_reverse array_search array_shift array_slice array_splice array_sum array_udiff_assoc array_udiff_uassoc array_udiff array_uintersect_assoc array_uintersect_uassoc array_uintersect array_unique array_unshift array_values array_walk_recursive array_walk array arsort asort compact count current each end extract in_array key_exists key krsort ksort list natcasesort natsort next pos prev range reset rsort shuffle sizeof sort uasort uksort usort array_change_key_case)
11
11
  b["BBCode"] = Set.new %w(bbcode_add_element bbcode_add_element bbcode_add_smiley bbcode_create bbcode_destroy bbcode_parse bbcode_set_arg_parser bbcode_set_flags bbcode_add_element)
12
12
  b["BC Math"] = Set.new %w(bcadd bcadd bccomp bcdiv bcmod bcmul bcpow bcpowmod bcscale bcsqrt bcsub bcadd)
13
13
  b["bcompiler"] = Set.new %w(bcompiler_load_exe bcompiler_load_exe bcompiler_load bcompiler_parse_class bcompiler_read bcompiler_write_class bcompiler_write_constant bcompiler_write_exe_footer bcompiler_write_file bcompiler_write_footer bcompiler_write_function bcompiler_write_functions_from_file bcompiler_write_header bcompiler_write_included_filename bcompiler_load_exe)
14
+ b["Blenc"] = Set.new %w(blenc_encrypt blenc_encrypt blenc_encrypt)
14
15
  b["Bzip2"] = Set.new %w(bzclose bzclose bzcompress bzdecompress bzerrno bzerror bzerrstr bzflush bzopen bzread bzwrite bzclose)
15
16
  b["Cairo"] = Set.new %w(cairo_create cairo_create cairo_font_face_get_type cairo_font_face_status cairo_font_options_create cairo_font_options_equal cairo_font_options_get_antialias cairo_font_options_get_hint_metrics cairo_font_options_get_hint_style cairo_font_options_get_subpixel_order cairo_font_options_hash cairo_font_options_merge cairo_font_options_set_antialias cairo_font_options_set_hint_metrics cairo_font_options_set_hint_style cairo_font_options_set_subpixel_order cairo_font_options_status cairo_format_stride_for_width cairo_image_surface_create_for_data cairo_image_surface_create_from_png cairo_image_surface_create cairo_image_surface_get_data cairo_image_surface_get_format cairo_image_surface_get_height cairo_image_surface_get_stride cairo_image_surface_get_width cairo_matrix_create_scale cairo_matrix_create_translate cairo_matrix_invert cairo_matrix_multiply cairo_matrix_rotate cairo_matrix_transform_distance cairo_matrix_transform_point cairo_matrix_translate cairo_pattern_add_color_stop_rgb cairo_pattern_add_color_stop_rgba cairo_pattern_create_for_surface cairo_pattern_create_linear cairo_pattern_create_radial cairo_pattern_create_rgb cairo_pattern_create_rgba cairo_pattern_get_color_stop_count cairo_pattern_get_color_stop_rgba cairo_pattern_get_extend cairo_pattern_get_filter cairo_pattern_get_linear_points cairo_pattern_get_matrix cairo_pattern_get_radial_circles cairo_pattern_get_rgba cairo_pattern_get_surface cairo_pattern_get_type cairo_pattern_set_extend cairo_pattern_set_filter cairo_pattern_set_matrix cairo_pattern_status cairo_pdf_surface_create cairo_pdf_surface_set_size cairo_ps_get_levels cairo_ps_level_to_string cairo_ps_surface_create cairo_ps_surface_dsc_begin_page_setup cairo_ps_surface_dsc_begin_setup cairo_ps_surface_dsc_comment cairo_ps_surface_get_eps cairo_ps_surface_restrict_to_level cairo_ps_surface_set_eps cairo_ps_surface_set_size cairo_scaled_font_create cairo_scaled_font_extents cairo_scaled_font_get_ctm cairo_scaled_font_get_font_face cairo_scaled_font_get_font_matrix cairo_scaled_font_get_font_options cairo_scaled_font_get_scale_matrix cairo_scaled_font_get_type cairo_scaled_font_glyph_extents cairo_scaled_font_status cairo_scaled_font_text_extents cairo_surface_copy_page cairo_surface_create_similar cairo_surface_finish cairo_surface_flush cairo_surface_get_content cairo_surface_get_device_offset cairo_surface_get_font_options cairo_surface_get_type cairo_surface_mark_dirty_rectangle cairo_surface_mark_dirty cairo_surface_set_device_offset cairo_surface_set_fallback_resolution cairo_surface_show_page cairo_surface_status cairo_surface_write_to_png cairo_svg_surface_create cairo_svg_surface_restrict_to_version cairo_svg_version_to_string cairo_create)
16
17
  b["Calendar"] = Set.new %w(cal_days_in_month cal_days_in_month cal_from_jd cal_info cal_to_jd easter_date easter_days FrenchToJD GregorianToJD JDDayOfWeek JDMonthName JDToFrench JDToGregorian jdtojewish JDToJulian jdtounix JewishToJD JulianToJD unixtojd cal_days_in_month)
@@ -21,9 +22,9 @@ module Rouge
21
22
  b["Crack"] = Set.new %w(crack_check crack_check crack_closedict crack_getlastmessage crack_opendict crack_check)
22
23
  b["Ctype"] = Set.new %w(ctype_alnum ctype_alnum ctype_alpha ctype_cntrl ctype_digit ctype_graph ctype_lower ctype_print ctype_punct ctype_space ctype_upper ctype_xdigit ctype_alnum)
23
24
  b["CUBRID"] = Set.new %w(cubrid_bind cubrid_bind cubrid_close_prepare cubrid_close_request cubrid_col_get cubrid_col_size cubrid_column_names cubrid_column_types cubrid_commit cubrid_connect_with_url cubrid_connect cubrid_current_oid cubrid_disconnect cubrid_drop cubrid_error_code_facility cubrid_error_code cubrid_error_msg cubrid_execute cubrid_fetch cubrid_free_result cubrid_get_autocommit cubrid_get_charset cubrid_get_class_name cubrid_get_client_info cubrid_get_db_parameter cubrid_get_query_timeout cubrid_get_server_info cubrid_get cubrid_insert_id cubrid_is_instance cubrid_lob_close cubrid_lob_export cubrid_lob_get cubrid_lob_send cubrid_lob_size cubrid_lob2_bind cubrid_lob2_close cubrid_lob2_export cubrid_lob2_import cubrid_lob2_new cubrid_lob2_read cubrid_lob2_seek64 cubrid_lob2_seek cubrid_lob2_size64 cubrid_lob2_size cubrid_lob2_tell64 cubrid_lob2_tell cubrid_lob2_write cubrid_lock_read cubrid_lock_write cubrid_move_cursor cubrid_next_result cubrid_num_cols cubrid_num_rows cubrid_pconnect_with_url cubrid_pconnect cubrid_prepare cubrid_put cubrid_rollback cubrid_schema cubrid_seq_drop cubrid_seq_insert cubrid_seq_put cubrid_set_add cubrid_set_autocommit cubrid_set_db_parameter cubrid_set_drop cubrid_set_query_timeout cubrid_version cubrid_bind)
24
- b["cURL"] = Set.new %w(curl_close curl_close curl_copy_handle curl_errno curl_error curl_exec curl_getinfo curl_init curl_multi_add_handle curl_multi_close curl_multi_exec curl_multi_getcontent curl_multi_info_read curl_multi_init curl_multi_remove_handle curl_multi_select curl_setopt_array curl_setopt curl_version curl_close)
25
+ b["cURL"] = Set.new %w(curl_close curl_close curl_copy_handle curl_errno curl_error curl_escape curl_exec curl_file_create curl_getinfo curl_init curl_multi_add_handle curl_multi_close curl_multi_exec curl_multi_getcontent curl_multi_info_read curl_multi_init curl_multi_remove_handle curl_multi_select curl_multi_setopt curl_multi_strerror curl_pause curl_reset curl_setopt_array curl_setopt curl_share_close curl_share_init curl_share_setopt curl_strerror curl_unescape curl_version curl_close)
25
26
  b["Cyrus"] = Set.new %w(cyrus_authenticate cyrus_authenticate cyrus_bind cyrus_close cyrus_connect cyrus_query cyrus_unbind cyrus_authenticate)
26
- b["Date/Time"] = Set.new %w(checkdate checkdate date_add date_create_from_format date_create date_date_set date_default_timezone_get date_default_timezone_set date_diff date_format date_get_last_errors date_interval_create_from_date_string date_interval_format date_isodate_set date_modify date_offset_get date_parse_from_format date_parse date_sub date_sun_info date_sunrise date_sunset date_time_set date_timestamp_get date_timestamp_set date_timezone_get date_timezone_set date getdate gettimeofday gmdate gmmktime gmstrftime idate localtime microtime mktime strftime strptime strtotime time timezone_abbreviations_list timezone_identifiers_list timezone_location_get timezone_name_from_abbr timezone_name_get timezone_offset_get timezone_open timezone_transitions_get timezone_version_get checkdate)
27
+ b["Date/Time"] = Set.new %w(checkdate checkdate date_add date_create_from_format date_create_immutable_from_format date_create_immutable date_create date_date_set date_default_timezone_get date_default_timezone_set date_diff date_format date_get_last_errors date_interval_create_from_date_string date_interval_format date_isodate_set date_modify date_offset_get date_parse_from_format date_parse date_sub date_sun_info date_sunrise date_sunset date_time_set date_timestamp_get date_timestamp_set date_timezone_get date_timezone_set date getdate gettimeofday gmdate gmmktime gmstrftime idate localtime microtime mktime strftime strptime strtotime time timezone_abbreviations_list timezone_identifiers_list timezone_location_get timezone_name_from_abbr timezone_name_get timezone_offset_get timezone_open timezone_transitions_get timezone_version_get checkdate)
27
28
  b["DBA"] = Set.new %w(dba_close dba_close dba_delete dba_exists dba_fetch dba_firstkey dba_handlers dba_insert dba_key_split dba_list dba_nextkey dba_open dba_optimize dba_popen dba_replace dba_sync dba_close)
28
29
  b["dBase"] = Set.new %w(dbase_add_record dbase_add_record dbase_close dbase_create dbase_delete_record dbase_get_header_info dbase_get_record_with_names dbase_get_record dbase_numfields dbase_numrecords dbase_open dbase_pack dbase_replace_record dbase_add_record)
29
30
  b["DB++"] = Set.new %w(dbplus_add dbplus_add dbplus_aql dbplus_chdir dbplus_close dbplus_curr dbplus_errcode dbplus_errno dbplus_find dbplus_first dbplus_flush dbplus_freealllocks dbplus_freelock dbplus_freerlocks dbplus_getlock dbplus_getunique dbplus_info dbplus_last dbplus_lockrel dbplus_next dbplus_open dbplus_prev dbplus_rchperm dbplus_rcreate dbplus_rcrtexact dbplus_rcrtlike dbplus_resolve dbplus_restorepos dbplus_rkeys dbplus_ropen dbplus_rquery dbplus_rrename dbplus_rsecindex dbplus_runlink dbplus_rzap dbplus_savepos dbplus_setindex dbplus_setindexbynumber dbplus_sql dbplus_tcl dbplus_tremove dbplus_undo dbplus_undoprepare dbplus_unlockrel dbplus_unselect dbplus_update dbplus_xlockrel dbplus_xunlockrel dbplus_add)
@@ -57,23 +58,23 @@ module Rouge
57
58
  b["HTTP"] = Set.new %w(http_cache_etag http_cache_etag http_cache_last_modified http_chunked_decode http_deflate http_inflate http_build_cookie http_date http_get_request_body_stream http_get_request_body http_get_request_headers http_match_etag http_match_modified http_match_request_header http_support http_negotiate_charset http_negotiate_content_type http_negotiate_language ob_deflatehandler ob_etaghandler ob_inflatehandler http_parse_cookie http_parse_headers http_parse_message http_parse_params http_persistent_handles_clean http_persistent_handles_count http_persistent_handles_ident http_get http_head http_post_data http_post_fields http_put_data http_put_file http_put_stream http_request_body_encode http_request_method_exists http_request_method_name http_request_method_register http_request_method_unregister http_request http_redirect http_send_content_disposition http_send_content_type http_send_data http_send_file http_send_last_modified http_send_status http_send_stream http_throttle http_build_str http_build_url http_cache_etag)
58
59
  b["Hyperwave"] = Set.new %w(hw_Array2Objrec hw_Array2Objrec hw_changeobject hw_Children hw_ChildrenObj hw_Close hw_Connect hw_connection_info hw_cp hw_Deleteobject hw_DocByAnchor hw_DocByAnchorObj hw_Document_Attributes hw_Document_BodyTag hw_Document_Content hw_Document_SetContent hw_Document_Size hw_dummy hw_EditText hw_Error hw_ErrorMsg hw_Free_Document hw_GetAnchors hw_GetAnchorsObj hw_GetAndLock hw_GetChildColl hw_GetChildCollObj hw_GetChildDocColl hw_GetChildDocCollObj hw_GetObject hw_GetObjectByQuery hw_GetObjectByQueryColl hw_GetObjectByQueryCollObj hw_GetObjectByQueryObj hw_GetParents hw_GetParentsObj hw_getrellink hw_GetRemote hw_getremotechildren hw_GetSrcByDestObj hw_GetText hw_getusername hw_Identify hw_InCollections hw_Info hw_InsColl hw_InsDoc hw_insertanchors hw_InsertDocument hw_InsertObject hw_mapid hw_Modifyobject hw_mv hw_New_Document hw_objrec2array hw_Output_Document hw_pConnect hw_PipeDocument hw_Root hw_setlinkroot hw_stat hw_Unlock hw_Who hw_Array2Objrec)
59
60
  b["Hyperwave API"] = Set.new %w(hwapi_attribute_new hwapi_content_new hwapi_hgcsp hwapi_object_new)
60
- b["Firebird/InterBase"] = Set.new %w(ibase_add_user ibase_add_user ibase_affected_rows ibase_backup ibase_blob_add ibase_blob_cancel ibase_blob_close ibase_blob_create ibase_blob_echo ibase_blob_get ibase_blob_import ibase_blob_info ibase_blob_open ibase_close ibase_commit_ret ibase_commit ibase_connect ibase_db_info ibase_delete_user ibase_drop_db ibase_errcode ibase_errmsg ibase_execute ibase_fetch_assoc ibase_fetch_object ibase_fetch_row ibase_field_info ibase_free_event_handler ibase_free_query ibase_free_result ibase_gen_id ibase_maintain_db ibase_modify_user ibase_name_result ibase_num_fields ibase_num_params ibase_param_info ibase_pconnect ibase_prepare ibase_query ibase_restore ibase_rollback_ret ibase_rollback ibase_server_info ibase_service_attach ibase_service_detach ibase_set_event_handler ibase_timefmt ibase_trans ibase_wait_event ibase_add_user)
61
+ b["Firebird/InterBase"] = Set.new %w(ibase_add_user ibase_add_user ibase_affected_rows ibase_backup ibase_blob_add ibase_blob_cancel ibase_blob_close ibase_blob_create ibase_blob_echo ibase_blob_get ibase_blob_import ibase_blob_info ibase_blob_open ibase_close ibase_commit_ret ibase_commit ibase_connect ibase_db_info ibase_delete_user ibase_drop_db ibase_errcode ibase_errmsg ibase_execute ibase_fetch_assoc ibase_fetch_object ibase_fetch_row ibase_field_info ibase_free_event_handler ibase_free_query ibase_free_result ibase_gen_id ibase_maintain_db ibase_modify_user ibase_name_result ibase_num_fields ibase_num_params ibase_param_info ibase_pconnect ibase_prepare ibase_query ibase_restore ibase_rollback_ret ibase_rollback ibase_server_info ibase_service_attach ibase_service_detach ibase_set_event_handler ibase_trans ibase_wait_event ibase_add_user)
61
62
  b["IBM DB2"] = Set.new %w(db2_autocommit db2_autocommit db2_bind_param db2_client_info db2_close db2_column_privileges db2_columns db2_commit db2_conn_error db2_conn_errormsg db2_connect db2_cursor_type db2_escape_string db2_exec db2_execute db2_fetch_array db2_fetch_assoc db2_fetch_both db2_fetch_object db2_fetch_row db2_field_display_size db2_field_name db2_field_num db2_field_precision db2_field_scale db2_field_type db2_field_width db2_foreign_keys db2_free_result db2_free_stmt db2_get_option db2_last_insert_id db2_lob_read db2_next_result db2_num_fields db2_num_rows db2_pclose db2_pconnect db2_prepare db2_primary_keys db2_procedure_columns db2_procedures db2_result db2_rollback db2_server_info db2_set_option db2_special_columns db2_statistics db2_stmt_error db2_stmt_errormsg db2_table_privileges db2_tables db2_autocommit)
62
63
  b["iconv"] = Set.new %w(iconv_get_encoding iconv_get_encoding iconv_mime_decode_headers iconv_mime_decode iconv_mime_encode iconv_set_encoding iconv_strlen iconv_strpos iconv_strrpos iconv_substr iconv ob_iconv_handler iconv_get_encoding)
63
64
  b["ID3"] = Set.new %w(id3_get_frame_long_name id3_get_frame_long_name id3_get_frame_short_name id3_get_genre_id id3_get_genre_list id3_get_genre_name id3_get_tag id3_get_version id3_remove_tag id3_set_tag id3_get_frame_long_name)
64
65
  b["Informix"] = Set.new %w(ifx_affected_rows ifx_affected_rows ifx_blobinfile_mode ifx_byteasvarchar ifx_close ifx_connect ifx_copy_blob ifx_create_blob ifx_create_char ifx_do ifx_error ifx_errormsg ifx_fetch_row ifx_fieldproperties ifx_fieldtypes ifx_free_blob ifx_free_char ifx_free_result ifx_get_blob ifx_get_char ifx_getsqlca ifx_htmltbl_result ifx_nullformat ifx_num_fields ifx_num_rows ifx_pconnect ifx_prepare ifx_query ifx_textasvarchar ifx_update_blob ifx_update_char ifxus_close_slob ifxus_create_slob ifxus_free_slob ifxus_open_slob ifxus_read_slob ifxus_seek_slob ifxus_tell_slob ifxus_write_slob ifx_affected_rows)
65
66
  b["IIS"] = Set.new %w(iis_add_server iis_add_server iis_get_dir_security iis_get_script_map iis_get_server_by_comment iis_get_server_by_path iis_get_server_rights iis_get_service_state iis_remove_server iis_set_app_settings iis_set_dir_security iis_set_script_map iis_set_server_rights iis_start_server iis_start_service iis_stop_server iis_stop_service iis_add_server)
66
- b["GD and Image"] = Set.new %w(gd_info gd_info getimagesize getimagesizefromstring image_type_to_extension image_type_to_mime_type image2wbmp imagealphablending imageantialias imagearc imagechar imagecharup imagecolorallocate imagecolorallocatealpha imagecolorat imagecolorclosest imagecolorclosestalpha imagecolorclosesthwb imagecolordeallocate imagecolorexact imagecolorexactalpha imagecolormatch imagecolorresolve imagecolorresolvealpha imagecolorset imagecolorsforindex imagecolorstotal imagecolortransparent imageconvolution imagecopy imagecopymerge imagecopymergegray imagecopyresampled imagecopyresized imagecreate imagecreatefromgd2 imagecreatefromgd2part imagecreatefromgd imagecreatefromgif imagecreatefromjpeg imagecreatefrompng imagecreatefromstring imagecreatefromwbmp imagecreatefromxbm imagecreatefromxpm imagecreatetruecolor imagedashedline imagedestroy imageellipse imagefill imagefilledarc imagefilledellipse imagefilledpolygon imagefilledrectangle imagefilltoborder imagefilter imagefontheight imagefontwidth imageftbbox imagefttext imagegammacorrect imagegd2 imagegd imagegif imagegrabscreen imagegrabwindow imageinterlace imageistruecolor imagejpeg imagelayereffect imageline imageloadfont imagepalettecopy imagepng imagepolygon imagepsbbox imagepsencodefont imagepsextendfont imagepsfreefont imagepsloadfont imagepsslantfont imagepstext imagerectangle imagerotate imagesavealpha imagesetbrush imagesetpixel imagesetstyle imagesetthickness imagesettile imagestring imagestringup imagesx imagesy imagetruecolortopalette imagettfbbox imagettftext imagetypes imagewbmp imagexbm iptcembed iptcparse jpeg2wbmp png2wbmp gd_info)
67
+ b["GD and Image"] = Set.new %w(gd_info gd_info getimagesize getimagesizefromstring image_type_to_extension image_type_to_mime_type image2wbmp imageaffine imageaffinematrixconcat imageaffinematrixget imagealphablending imageantialias imagearc imagechar imagecharup imagecolorallocate imagecolorallocatealpha imagecolorat imagecolorclosest imagecolorclosestalpha imagecolorclosesthwb imagecolordeallocate imagecolorexact imagecolorexactalpha imagecolormatch imagecolorresolve imagecolorresolvealpha imagecolorset imagecolorsforindex imagecolorstotal imagecolortransparent imageconvolution imagecopy imagecopymerge imagecopymergegray imagecopyresampled imagecopyresized imagecreate imagecreatefromgd2 imagecreatefromgd2part imagecreatefromgd imagecreatefromgif imagecreatefromjpeg imagecreatefrompng imagecreatefromstring imagecreatefromwbmp imagecreatefromwebp imagecreatefromxbm imagecreatefromxpm imagecreatetruecolor imagecrop imagecropauto imagedashedline imagedestroy imageellipse imagefill imagefilledarc imagefilledellipse imagefilledpolygon imagefilledrectangle imagefilltoborder imagefilter imageflip imagefontheight imagefontwidth imageftbbox imagefttext imagegammacorrect imagegd2 imagegd imagegif imagegrabscreen imagegrabwindow imageinterlace imageistruecolor imagejpeg imagelayereffect imageline imageloadfont imagepalettecopy imagepalettetotruecolor imagepng imagepolygon imagepsbbox imagepsencodefont imagepsextendfont imagepsfreefont imagepsloadfont imagepsslantfont imagepstext imagerectangle imagerotate imagesavealpha imagescale imagesetbrush imagesetinterpolation imagesetpixel imagesetstyle imagesetthickness imagesettile imagestring imagestringup imagesx imagesy imagetruecolortopalette imagettfbbox imagettftext imagetypes imagewbmp imagewebp imagexbm iptcembed iptcparse jpeg2wbmp png2wbmp gd_info)
67
68
  b["IMAP"] = Set.new %w(imap_8bit imap_8bit imap_alerts imap_append imap_base64 imap_binary imap_body imap_bodystruct imap_check imap_clearflag_full imap_close imap_create imap_createmailbox imap_delete imap_deletemailbox imap_errors imap_expunge imap_fetch_overview imap_fetchbody imap_fetchheader imap_fetchmime imap_fetchstructure imap_fetchtext imap_gc imap_get_quota imap_get_quotaroot imap_getacl imap_getmailboxes imap_getsubscribed imap_header imap_headerinfo imap_headers imap_last_error imap_list imap_listmailbox imap_listscan imap_listsubscribed imap_lsub imap_mail_compose imap_mail_copy imap_mail_move imap_mail imap_mailboxmsginfo imap_mime_header_decode imap_msgno imap_num_msg imap_num_recent imap_open imap_ping imap_qprint imap_rename imap_renamemailbox imap_reopen imap_rfc822_parse_adrlist imap_rfc822_parse_headers imap_rfc822_write_address imap_savebody imap_scan imap_scanmailbox imap_search imap_set_quota imap_setacl imap_setflag_full imap_sort imap_status imap_subscribe imap_thread imap_timeout imap_uid imap_undelete imap_unsubscribe imap_utf7_decode imap_utf7_encode imap_utf8 imap_8bit)
68
69
  b["inclued"] = Set.new %w(inclued_get_data inclued_get_data inclued_get_data)
69
- b["PHP Options/Info"] = Set.new %w(assert_options assert_options assert dl extension_loaded gc_collect_cycles gc_disable gc_enable gc_enabled get_cfg_var get_current_user get_defined_constants get_extension_funcs get_include_path get_included_files get_loaded_extensions get_magic_quotes_gpc get_magic_quotes_runtime get_required_files getenv getlastmod getmygid getmyinode getmypid getmyuid getopt getrusage ini_alter ini_get_all ini_get ini_restore ini_set magic_quotes_runtime main memory_get_peak_usage memory_get_usage php_ini_loaded_file php_ini_scanned_files php_logo_guid php_sapi_name php_uname phpcredits phpinfo phpversion putenv restore_include_path set_include_path set_magic_quotes_runtime set_time_limit sys_get_temp_dir version_compare zend_logo_guid zend_thread_id zend_version assert_options)
70
+ b["PHP Options/Info"] = Set.new %w(assert_options assert_options assert cli_get_process_title cli_set_process_title dl extension_loaded gc_collect_cycles gc_disable gc_enable gc_enabled get_cfg_var get_current_user get_defined_constants get_extension_funcs get_include_path get_included_files get_loaded_extensions get_magic_quotes_gpc get_magic_quotes_runtime get_required_files getenv getlastmod getmygid getmyinode getmypid getmyuid getopt getrusage ini_alter ini_get_all ini_get ini_restore ini_set magic_quotes_runtime main memory_get_peak_usage memory_get_usage php_ini_loaded_file php_ini_scanned_files php_logo_guid php_sapi_name php_uname phpcredits phpinfo phpversion putenv restore_include_path set_include_path set_magic_quotes_runtime set_time_limit sys_get_temp_dir version_compare zend_logo_guid zend_thread_id zend_version assert_options)
70
71
  b["Ingres"] = Set.new %w(ingres_autocommit_state ingres_autocommit_state ingres_autocommit ingres_charset ingres_close ingres_commit ingres_connect ingres_cursor ingres_errno ingres_error ingres_errsqlstate ingres_escape_string ingres_execute ingres_fetch_array ingres_fetch_assoc ingres_fetch_object ingres_fetch_proc_return ingres_fetch_row ingres_field_length ingres_field_name ingres_field_nullable ingres_field_precision ingres_field_scale ingres_field_type ingres_free_result ingres_next_error ingres_num_fields ingres_num_rows ingres_pconnect ingres_prepare ingres_query ingres_result_seek ingres_rollback ingres_set_environment ingres_unbuffered_query ingres_autocommit_state)
71
72
  b["Inotify"] = Set.new %w(inotify_add_watch inotify_add_watch inotify_init inotify_queue_len inotify_read inotify_rm_watch inotify_add_watch)
72
73
  b["Grapheme"] = Set.new %w(grapheme_extract grapheme_extract grapheme_stripos grapheme_stristr grapheme_strlen grapheme_strpos grapheme_strripos grapheme_strrpos grapheme_strstr grapheme_substr grapheme_extract)
73
- b["intl"] = Set.new %w(idn_to_utf8 intl_error_name intl_error_name intl_get_error_code intl_get_error_message intl_is_failure idn_to_utf8 intl_error_name)
74
+ b["intl"] = Set.new %w(intl_error_name intl_error_name intl_get_error_code intl_get_error_message intl_is_failure intl_error_name)
74
75
  b["IDN"] = Set.new %w(grapheme_substr idn_to_ascii idn_to_ascii idn_to_unicode idn_to_utf8 grapheme_substr idn_to_ascii)
75
76
  b["Java"] = Set.new %w(java_last_exception_clear java_last_exception_clear java_last_exception_get java_last_exception_clear)
76
- b["JSON"] = Set.new %w(json_decode json_decode json_encode json_last_error json_decode)
77
+ b["JSON"] = Set.new %w(json_decode json_decode json_encode json_last_error_msg json_last_error json_decode)
77
78
  b["Judy"] = Set.new %w(judy_type judy_type judy_version judy_type)
78
79
  b["KADM5"] = Set.new %w(kadm5_chpass_principal kadm5_chpass_principal kadm5_create_principal kadm5_delete_principal kadm5_destroy kadm5_flush kadm5_get_policies kadm5_get_principal kadm5_get_principals kadm5_init_with_password kadm5_modify_principal kadm5_chpass_principal)
79
80
  b["LDAP"] = Set.new %w(ldap_8859_to_t61 ldap_8859_to_t61 ldap_add ldap_bind ldap_close ldap_compare ldap_connect ldap_control_paged_result_response ldap_control_paged_result ldap_count_entries ldap_delete ldap_dn2ufn ldap_err2str ldap_errno ldap_error ldap_explode_dn ldap_first_attribute ldap_first_entry ldap_first_reference ldap_free_result ldap_get_attributes ldap_get_dn ldap_get_entries ldap_get_option ldap_get_values_len ldap_get_values ldap_list ldap_mod_add ldap_mod_del ldap_mod_replace ldap_modify ldap_next_attribute ldap_next_entry ldap_next_reference ldap_parse_reference ldap_parse_result ldap_read ldap_rename ldap_sasl_bind ldap_search ldap_set_option ldap_set_rebind_proc ldap_sort ldap_start_tls ldap_t61_to_8859 ldap_unbind ldap_8859_to_t61)
@@ -98,7 +99,7 @@ module Rouge
98
99
  b["mSQL"] = Set.new %w(msql_affected_rows msql_affected_rows msql_close msql_connect msql_create_db msql_createdb msql_data_seek msql_db_query msql_dbname msql_drop_db msql_error msql_fetch_array msql_fetch_field msql_fetch_object msql_fetch_row msql_field_flags msql_field_len msql_field_name msql_field_seek msql_field_table msql_field_type msql_fieldflags msql_fieldlen msql_fieldname msql_fieldtable msql_fieldtype msql_free_result msql_list_dbs msql_list_fields msql_list_tables msql_num_fields msql_num_rows msql_numfields msql_numrows msql_pconnect msql_query msql_regcase msql_result msql_select_db msql_tablename msql msql_affected_rows)
99
100
  b["Mssql"] = Set.new %w(mssql_bind mssql_bind mssql_close mssql_connect mssql_data_seek mssql_execute mssql_fetch_array mssql_fetch_assoc mssql_fetch_batch mssql_fetch_field mssql_fetch_object mssql_fetch_row mssql_field_length mssql_field_name mssql_field_seek mssql_field_type mssql_free_result mssql_free_statement mssql_get_last_message mssql_guid_string mssql_init mssql_min_error_severity mssql_min_message_severity mssql_next_result mssql_num_fields mssql_num_rows mssql_pconnect mssql_query mssql_result mssql_rows_affected mssql_select_db mssql_bind)
100
101
  b["MySQL"] = Set.new %w(mysql_affected_rows mysql_affected_rows mysql_client_encoding mysql_close mysql_connect mysql_create_db mysql_data_seek mysql_db_name mysql_db_query mysql_drop_db mysql_errno mysql_error mysql_escape_string mysql_fetch_array mysql_fetch_assoc mysql_fetch_field mysql_fetch_lengths mysql_fetch_object mysql_fetch_row mysql_field_flags mysql_field_len mysql_field_name mysql_field_seek mysql_field_table mysql_field_type mysql_free_result mysql_get_client_info mysql_get_host_info mysql_get_proto_info mysql_get_server_info mysql_info mysql_insert_id mysql_list_dbs mysql_list_fields mysql_list_processes mysql_list_tables mysql_num_fields mysql_num_rows mysql_pconnect mysql_ping mysql_query mysql_real_escape_string mysql_result mysql_select_db mysql_set_charset mysql_stat mysql_tablename mysql_thread_id mysql_unbuffered_query mysql_affected_rows)
101
- b["Aliases and deprecated Mysqli"] = Set.new %w(mysqli_bind_param mysqli_bind_param mysqli_bind_result mysqli_client_encoding mysqli_connect mysqli::disable_reads_from_master mysqli_disable_rpl_parse mysqli_enable_reads_from_master mysqli_enable_rpl_parse mysqli_escape_string mysqli_execute mysqli_fetch mysqli_get_cache_stats mysqli_get_metadata mysqli_master_query mysqli_param_count mysqli_report mysqli_rpl_parse_enabled mysqli_rpl_probe mysqli_send_long_data mysqli_set_opt mysqli_slave_query mysqli_bind_param)
102
+ b["Aliases and deprecated Mysqli"] = Set.new %w(mysqli_bind_param mysqli_bind_param mysqli_bind_result mysqli_client_encoding mysqli_connect mysqli::disable_reads_from_master mysqli_disable_rpl_parse mysqli_enable_reads_from_master mysqli_enable_rpl_parse mysqli_escape_string mysqli_execute mysqli_fetch mysqli_get_cache_stats mysqli_get_metadata mysqli_master_query mysqli_param_count mysqli_report mysqli_rpl_parse_enabled mysqli_rpl_probe mysqli_send_long_data mysqli::set_opt mysqli_slave_query mysqli_bind_param)
102
103
  b["Mysqlnd_memcache"] = Set.new %w(mysqlnd_memcache_get_config mysqlnd_memcache_get_config mysqlnd_memcache_set mysqlnd_memcache_get_config)
103
104
  b["Mysqlnd_ms"] = Set.new %w(mysqlnd_ms_get_last_gtid mysqlnd_ms_get_last_gtid mysqlnd_ms_get_last_used_connection mysqlnd_ms_get_stats mysqlnd_ms_match_wild mysqlnd_ms_query_is_select mysqlnd_ms_set_qos mysqlnd_ms_set_user_pick_server mysqlnd_ms_get_last_gtid)
104
105
  b["mysqlnd_qc"] = Set.new %w(mysqlnd_qc_clear_cache mysqlnd_qc_clear_cache mysqlnd_qc_get_available_handlers mysqlnd_qc_get_cache_info mysqlnd_qc_get_core_stats mysqlnd_qc_get_normalized_query_trace_log mysqlnd_qc_get_query_trace_log mysqlnd_qc_set_cache_condition mysqlnd_qc_set_is_select mysqlnd_qc_set_storage_handler mysqlnd_qc_set_user_handlers mysqlnd_qc_clear_cache)
@@ -112,15 +113,16 @@ module Rouge
112
113
  b["NSAPI"] = Set.new %w(nsapi_request_headers nsapi_request_headers nsapi_response_headers nsapi_virtual nsapi_request_headers)
113
114
  b["OAuth"] = Set.new %w(oauth_get_sbs oauth_get_sbs oauth_urlencode oauth_get_sbs)
114
115
  b["Object Aggregation"] = Set.new %w(aggregate_info aggregate_info aggregate_methods_by_list aggregate_methods_by_regexp aggregate_methods aggregate_properties_by_list aggregate_properties_by_regexp aggregate_properties aggregate aggregation_info deaggregate aggregate_info)
115
- b["OCI8"] = Set.new %w(oci_bind_array_by_name oci_bind_by_name oci_cancel oci_client_version oci_close oci_commit oci_connect oci_define_by_name oci_error oci_execute oci_fetch_all oci_fetch_array oci_fetch_assoc oci_fetch_object oci_fetch_row oci_fetch oci_field_is_null oci_field_name oci_field_precision oci_field_scale oci_field_size oci_field_type_raw oci_field_type oci_free_statement oci_internal_debug oci_lob_copy oci_lob_is_equal oci_new_collection oci_new_connect oci_new_cursor oci_new_descriptor oci_num_fields oci_num_rows oci_parse oci_password_change oci_pconnect oci_result oci_rollback oci_server_version oci_set_action oci_set_client_identifier oci_set_client_info oci_set_edition oci_set_module_name oci_set_prefetch oci_statement_type)
116
+ b["OCI8"] = Set.new %w(oci_bind_array_by_name oci_bind_by_name oci_cancel oci_client_version oci_close oci_commit oci_connect oci_define_by_name oci_error oci_execute oci_fetch_all oci_fetch_array oci_fetch_assoc oci_fetch_object oci_fetch_row oci_fetch oci_field_is_null oci_field_name oci_field_precision oci_field_scale oci_field_size oci_field_type_raw oci_field_type oci_free_descriptor oci_free_statement oci_internal_debug oci_lob_copy oci_lob_is_equal oci_new_collection oci_new_connect oci_new_cursor oci_new_descriptor oci_num_fields oci_num_rows oci_parse oci_password_change oci_pconnect oci_result oci_rollback oci_server_version oci_set_action oci_set_client_identifier oci_set_client_info oci_set_edition oci_set_module_name oci_set_prefetch oci_statement_type)
117
+ b["OPcache"] = Set.new %w(opcache_invalidate opcache_invalidate opcache_reset opcache_invalidate)
116
118
  b["OpenAL"] = Set.new %w(openal_buffer_create openal_buffer_create openal_buffer_data openal_buffer_destroy openal_buffer_get openal_buffer_loadwav openal_context_create openal_context_current openal_context_destroy openal_context_process openal_context_suspend openal_device_close openal_device_open openal_listener_get openal_listener_set openal_source_create openal_source_destroy openal_source_get openal_source_pause openal_source_play openal_source_rewind openal_source_set openal_source_stop openal_stream openal_buffer_create)
117
- b["OpenSSL"] = Set.new %w(openssl_cipher_iv_length openssl_cipher_iv_length openssl_csr_export_to_file openssl_csr_export openssl_csr_get_public_key openssl_csr_get_subject openssl_csr_new openssl_csr_sign openssl_decrypt openssl_dh_compute_key openssl_digest openssl_encrypt openssl_error_string openssl_free_key openssl_get_cipher_methods openssl_get_md_methods openssl_get_privatekey openssl_get_publickey openssl_open openssl_pkcs12_export_to_file openssl_pkcs12_export openssl_pkcs12_read openssl_pkcs7_decrypt openssl_pkcs7_encrypt openssl_pkcs7_sign openssl_pkcs7_verify openssl_pkey_export_to_file openssl_pkey_export openssl_pkey_free openssl_pkey_get_details openssl_pkey_get_private openssl_pkey_get_public openssl_pkey_new openssl_private_decrypt openssl_private_encrypt openssl_public_decrypt openssl_public_encrypt openssl_random_pseudo_bytes openssl_seal openssl_sign openssl_verify openssl_x509_check_private_key openssl_x509_checkpurpose openssl_x509_export_to_file openssl_x509_export openssl_x509_free openssl_x509_parse openssl_x509_read openssl_cipher_iv_length)
119
+ b["OpenSSL"] = Set.new %w(openssl_cipher_iv_length openssl_cipher_iv_length openssl_csr_export_to_file openssl_csr_export openssl_csr_get_public_key openssl_csr_get_subject openssl_csr_new openssl_csr_sign openssl_decrypt openssl_dh_compute_key openssl_digest openssl_encrypt openssl_error_string openssl_free_key openssl_get_cipher_methods openssl_get_md_methods openssl_get_privatekey openssl_get_publickey openssl_open openssl_pbkdf2 openssl_pkcs12_export_to_file openssl_pkcs12_export openssl_pkcs12_read openssl_pkcs7_decrypt openssl_pkcs7_encrypt openssl_pkcs7_sign openssl_pkcs7_verify openssl_pkey_export_to_file openssl_pkey_export openssl_pkey_free openssl_pkey_get_details openssl_pkey_get_private openssl_pkey_get_public openssl_pkey_new openssl_private_decrypt openssl_private_encrypt openssl_public_decrypt openssl_public_encrypt openssl_random_pseudo_bytes openssl_seal openssl_sign openssl_verify openssl_x509_check_private_key openssl_x509_checkpurpose openssl_x509_export_to_file openssl_x509_export openssl_x509_free openssl_x509_parse openssl_x509_read openssl_cipher_iv_length)
118
120
  b["Output Control"] = Set.new %w(flush flush ob_clean ob_end_clean ob_end_flush ob_flush ob_get_clean ob_get_contents ob_get_flush ob_get_length ob_get_level ob_get_status ob_gzhandler ob_implicit_flush ob_list_handlers ob_start output_add_rewrite_var output_reset_rewrite_vars flush)
119
121
  b["Ovrimos SQL"] = Set.new %w(ovrimos_close ovrimos_close ovrimos_commit ovrimos_connect ovrimos_cursor ovrimos_exec ovrimos_execute ovrimos_fetch_into ovrimos_fetch_row ovrimos_field_len ovrimos_field_name ovrimos_field_num ovrimos_field_type ovrimos_free_result ovrimos_longreadlen ovrimos_num_fields ovrimos_num_rows ovrimos_prepare ovrimos_result_all ovrimos_result ovrimos_rollback ovrimos_close)
120
122
  b["Paradox"] = Set.new %w(px_close px_close px_create_fp px_date2string px_delete_record px_delete px_get_field px_get_info px_get_parameter px_get_record px_get_schema px_get_value px_insert_record px_new px_numfields px_numrecords px_open_fp px_put_record px_retrieve_record px_set_blob_file px_set_parameter px_set_tablename px_set_targetencoding px_set_value px_timestamp2string px_update_record px_close)
121
123
  b["Parsekit"] = Set.new %w(parsekit_compile_file parsekit_compile_file parsekit_compile_string parsekit_func_arginfo parsekit_compile_file)
122
124
  b["Password Hashing"] = Set.new %w(password_get_info password_get_info password_hash password_needs_rehash password_verify password_get_info)
123
- b["PCNTL"] = Set.new %w(pcntl_alarm pcntl_alarm pcntl_exec pcntl_fork pcntl_getpriority pcntl_setpriority pcntl_signal_dispatch pcntl_signal pcntl_sigprocmask pcntl_sigtimedwait pcntl_sigwaitinfo pcntl_wait pcntl_waitpid pcntl_wexitstatus pcntl_wifexited pcntl_wifsignaled pcntl_wifstopped pcntl_wstopsig pcntl_wtermsig pcntl_alarm)
125
+ b["PCNTL"] = Set.new %w(pcntl_alarm pcntl_alarm pcntl_errno pcntl_exec pcntl_fork pcntl_get_last_error pcntl_getpriority pcntl_setpriority pcntl_signal_dispatch pcntl_signal pcntl_sigprocmask pcntl_sigtimedwait pcntl_sigwaitinfo pcntl_strerror pcntl_wait pcntl_waitpid pcntl_wexitstatus pcntl_wifexited pcntl_wifsignaled pcntl_wifstopped pcntl_wstopsig pcntl_wtermsig pcntl_alarm)
124
126
  b["PCRE"] = Set.new %w(preg_filter preg_filter preg_grep preg_last_error preg_match_all preg_match preg_quote preg_replace_callback preg_replace preg_split preg_filter)
125
127
  b["PDF"] = Set.new %w(PDF_activate_item PDF_activate_item PDF_add_annotation PDF_add_bookmark PDF_add_launchlink PDF_add_locallink PDF_add_nameddest PDF_add_note PDF_add_outline PDF_add_pdflink PDF_add_table_cell PDF_add_textflow PDF_add_thumbnail PDF_add_weblink PDF_arc PDF_arcn PDF_attach_file PDF_begin_document PDF_begin_font PDF_begin_glyph PDF_begin_item PDF_begin_layer PDF_begin_page_ext PDF_begin_page PDF_begin_pattern PDF_begin_template_ext PDF_begin_template PDF_circle PDF_clip PDF_close_image PDF_close_pdi_page PDF_close_pdi PDF_close PDF_closepath_fill_stroke PDF_closepath_stroke PDF_closepath PDF_concat PDF_continue_text PDF_create_3dview PDF_create_action PDF_create_annotation PDF_create_bookmark PDF_create_field PDF_create_fieldgroup PDF_create_gstate PDF_create_pvf PDF_create_textflow PDF_curveto PDF_define_layer PDF_delete_pvf PDF_delete_table PDF_delete_textflow PDF_delete PDF_encoding_set_char PDF_end_document PDF_end_font PDF_end_glyph PDF_end_item PDF_end_layer PDF_end_page_ext PDF_end_page PDF_end_pattern PDF_end_template PDF_endpath PDF_fill_imageblock PDF_fill_pdfblock PDF_fill_stroke PDF_fill_textblock PDF_fill PDF_findfont PDF_fit_image PDF_fit_pdi_page PDF_fit_table PDF_fit_textflow PDF_fit_textline PDF_get_apiname PDF_get_buffer PDF_get_errmsg PDF_get_errnum PDF_get_font PDF_get_fontname PDF_get_fontsize PDF_get_image_height PDF_get_image_width PDF_get_majorversion PDF_get_minorversion PDF_get_parameter PDF_get_pdi_parameter PDF_get_pdi_value PDF_get_value PDF_info_font PDF_info_matchbox PDF_info_table PDF_info_textflow PDF_info_textline PDF_initgraphics PDF_lineto PDF_load_3ddata PDF_load_font PDF_load_iccprofile PDF_load_image PDF_makespotcolor PDF_moveto PDF_new PDF_open_ccitt PDF_open_file PDF_open_gif PDF_open_image_file PDF_open_image PDF_open_jpeg PDF_open_memory_image PDF_open_pdi_document PDF_open_pdi_page PDF_open_pdi PDF_open_tiff PDF_pcos_get_number PDF_pcos_get_stream PDF_pcos_get_string PDF_place_image PDF_place_pdi_page PDF_process_pdi PDF_rect PDF_restore PDF_resume_page PDF_rotate PDF_save PDF_scale PDF_set_border_color PDF_set_border_dash PDF_set_border_style PDF_set_char_spacing PDF_set_duration PDF_set_gstate PDF_set_horiz_scaling PDF_set_info_author PDF_set_info_creator PDF_set_info_keywords PDF_set_info_subject PDF_set_info_title PDF_set_info PDF_set_layer_dependency PDF_set_leading PDF_set_parameter PDF_set_text_matrix PDF_set_text_pos PDF_set_text_rendering PDF_set_text_rise PDF_set_value PDF_set_word_spacing PDF_setcolor PDF_setdash PDF_setdashpattern PDF_setflat PDF_setfont PDF_setgray_fill PDF_setgray_stroke PDF_setgray PDF_setlinecap PDF_setlinejoin PDF_setlinewidth PDF_setmatrix PDF_setmiterlimit PDF_setpolydash PDF_setrgbcolor_fill PDF_setrgbcolor_stroke PDF_setrgbcolor PDF_shading_pattern PDF_shading PDF_shfill PDF_show_boxed PDF_show_xy PDF_show PDF_skew PDF_stringwidth PDF_stroke PDF_suspend_page PDF_translate PDF_utf16_to_utf8 PDF_utf32_to_utf16 PDF_utf8_to_utf16 PDF_activate_item)
126
128
  b["PostgreSQL"] = Set.new %w(pg_affected_rows pg_affected_rows pg_cancel_query pg_client_encoding pg_close pg_connect pg_connection_busy pg_connection_reset pg_connection_status pg_convert pg_copy_from pg_copy_to pg_dbname pg_delete pg_end_copy pg_escape_bytea pg_escape_identifier pg_escape_literal pg_escape_string pg_execute pg_fetch_all_columns pg_fetch_all pg_fetch_array pg_fetch_assoc pg_fetch_object pg_fetch_result pg_fetch_row pg_field_is_null pg_field_name pg_field_num pg_field_prtlen pg_field_size pg_field_table pg_field_type_oid pg_field_type pg_free_result pg_get_notify pg_get_pid pg_get_result pg_host pg_insert pg_last_error pg_last_notice pg_last_oid pg_lo_close pg_lo_create pg_lo_export pg_lo_import pg_lo_open pg_lo_read_all pg_lo_read pg_lo_seek pg_lo_tell pg_lo_unlink pg_lo_write pg_meta_data pg_num_fields pg_num_rows pg_options pg_parameter_status pg_pconnect pg_ping pg_port pg_prepare pg_put_line pg_query_params pg_query pg_result_error_field pg_result_error pg_result_seek pg_result_status pg_select pg_send_execute pg_send_prepare pg_send_query_params pg_send_query pg_set_client_encoding pg_set_error_verbosity pg_trace pg_transaction_status pg_tty pg_unescape_bytea pg_untrace pg_update pg_version pg_affected_rows)
@@ -130,7 +132,7 @@ module Rouge
130
132
  b["PS"] = Set.new %w(ps_add_bookmark ps_add_bookmark ps_add_launchlink ps_add_locallink ps_add_note ps_add_pdflink ps_add_weblink ps_arc ps_arcn ps_begin_page ps_begin_pattern ps_begin_template ps_circle ps_clip ps_close_image ps_close ps_closepath_stroke ps_closepath ps_continue_text ps_curveto ps_delete ps_end_page ps_end_pattern ps_end_template ps_fill_stroke ps_fill ps_findfont ps_get_buffer ps_get_parameter ps_get_value ps_hyphenate ps_include_file ps_lineto ps_makespotcolor ps_moveto ps_new ps_open_file ps_open_image_file ps_open_image ps_open_memory_image ps_place_image ps_rect ps_restore ps_rotate ps_save ps_scale ps_set_border_color ps_set_border_dash ps_set_border_style ps_set_info ps_set_parameter ps_set_text_pos ps_set_value ps_setcolor ps_setdash ps_setflat ps_setfont ps_setgray ps_setlinecap ps_setlinejoin ps_setlinewidth ps_setmiterlimit ps_setoverprintmode ps_setpolydash ps_shading_pattern ps_shading ps_shfill ps_show_boxed ps_show_xy2 ps_show_xy ps_show2 ps_show ps_string_geometry ps_stringwidth ps_stroke ps_symbol_name ps_symbol_width ps_symbol ps_translate ps_add_bookmark)
131
133
  b["Pspell"] = Set.new %w(pspell_add_to_personal pspell_add_to_personal pspell_add_to_session pspell_check pspell_clear_session pspell_config_create pspell_config_data_dir pspell_config_dict_dir pspell_config_ignore pspell_config_mode pspell_config_personal pspell_config_repl pspell_config_runtogether pspell_config_save_repl pspell_new_config pspell_new_personal pspell_new pspell_save_wordlist pspell_store_replacement pspell_suggest pspell_add_to_personal)
132
134
  b["qtdom"] = Set.new %w(qdom_error qdom_error qdom_tree qdom_error)
133
- b["Radius"] = Set.new %w(radius_acct_open radius_acct_open radius_add_server radius_auth_open radius_close radius_config radius_create_request radius_cvt_addr radius_cvt_int radius_cvt_string radius_demangle_mppe_key radius_demangle radius_get_attr radius_get_vendor_attr radius_put_addr radius_put_attr radius_put_int radius_put_string radius_put_vendor_addr radius_put_vendor_attr radius_put_vendor_int radius_put_vendor_string radius_request_authenticator radius_send_request radius_server_secret radius_strerror radius_acct_open)
135
+ b["Radius"] = Set.new %w(radius_acct_open radius_acct_open radius_add_server radius_auth_open radius_close radius_config radius_create_request radius_cvt_addr radius_cvt_int radius_cvt_string radius_demangle_mppe_key radius_demangle radius_get_attr radius_get_tagged_attr_data radius_get_tagged_attr_tag radius_get_vendor_attr radius_put_addr radius_put_attr radius_put_int radius_put_string radius_put_vendor_addr radius_put_vendor_attr radius_put_vendor_int radius_put_vendor_string radius_request_authenticator radius_salt_encrypt_attr radius_send_request radius_server_secret radius_strerror radius_acct_open)
134
136
  b["Rar"] = Set.new %w(rar_wrapper_cache_stats rar_wrapper_cache_stats rar_wrapper_cache_stats)
135
137
  b["Readline"] = Set.new %w(readline_add_history readline_add_history readline_callback_handler_install readline_callback_handler_remove readline_callback_read_char readline_clear_history readline_completion_function readline_info readline_list_history readline_on_new_line readline_read_history readline_redisplay readline_write_history readline readline_add_history)
136
138
  b["Recode"] = Set.new %w(recode_file recode_file recode_string recode recode_file)
@@ -150,7 +152,7 @@ module Rouge
150
152
  b["SimpleXML"] = Set.new %w(simplexml_import_dom simplexml_import_dom simplexml_load_file simplexml_load_string simplexml_import_dom)
151
153
  b["SNMP"] = Set.new %w(snmp_get_quick_print snmp_get_quick_print snmp_get_valueretrieval snmp_read_mib snmp_set_enum_print snmp_set_oid_numeric_print snmp_set_oid_output_format snmp_set_quick_print snmp_set_valueretrieval snmp2_get snmp2_getnext snmp2_real_walk snmp2_set snmp2_walk snmp3_get snmp3_getnext snmp3_real_walk snmp3_set snmp3_walk snmpget snmpgetnext snmprealwalk snmpset snmpwalk snmpwalkoid snmp_get_quick_print)
152
154
  b["SOAP"] = Set.new %w(is_soap_fault is_soap_fault use_soap_error_handler is_soap_fault)
153
- b["Socket"] = Set.new %w(socket_accept socket_accept socket_bind socket_clear_error socket_close socket_connect socket_create_listen socket_create_pair socket_create socket_get_option socket_getpeername socket_getsockname socket_import_stream socket_last_error socket_listen socket_read socket_recv socket_recvfrom socket_select socket_send socket_sendto socket_set_block socket_set_nonblock socket_set_option socket_shutdown socket_strerror socket_write socket_accept)
155
+ b["Socket"] = Set.new %w(socket_accept socket_accept socket_bind socket_clear_error socket_close socket_cmsg_space socket_connect socket_create_listen socket_create_pair socket_create socket_get_option socket_getpeername socket_getsockname socket_import_stream socket_last_error socket_listen socket_read socket_recv socket_recvfrom socket_recvmsg socket_select socket_send socket_sendmsg socket_sendto socket_set_block socket_set_nonblock socket_set_option socket_shutdown socket_strerror socket_write socket_accept)
154
156
  b["Solr"] = Set.new %w(solr_get_version solr_get_version solr_get_version)
155
157
  b["SPL"] = Set.new %w(class_implements class_implements class_parents class_uses iterator_apply iterator_count iterator_to_array spl_autoload_call spl_autoload_extensions spl_autoload_functions spl_autoload_register spl_autoload_unregister spl_autoload spl_classes spl_object_hash class_implements)
156
158
  b["SPPLUS"] = Set.new %w(calcul_hmac calcul_hmac calculhmac nthmac signeurlpaiement calcul_hmac)
@@ -0,0 +1,543 @@
1
+ # -*- coding: utf-8 -*-
2
+ module Rouge
3
+ module Lexers
4
+ class Racket < RegexLexer
5
+ desc "Racket is a Lisp descended from Scheme"
6
+
7
+ tag 'racket'
8
+ filenames '*.rkt', '*.rktd', '*.rktl'
9
+ mimetypes 'text/x-racket', 'application/x-racket'
10
+
11
+ def self.analyze_text(text)
12
+ text = text.strip
13
+ return 1 if text.start_with? '#lang racket'
14
+ return 0.6 if text =~ %r(\A#lang [a-z/-]+$)i
15
+ end
16
+
17
+ def self.keywords
18
+ @keywords ||= Set.new %w(
19
+ ... and begin begin-for-syntax begin0 case case-lambda cond
20
+ datum->syntax-object define define-for-syntax define-logger
21
+ define-struct define-syntax define-syntax-rule
22
+ define-syntaxes define-values define-values-for-syntax delay
23
+ do expand-path fluid-let force hash-table-copy
24
+ hash-table-count hash-table-for-each hash-table-get
25
+ hash-table-iterate-first hash-table-iterate-key
26
+ hash-table-iterate-next hash-table-iterate-value
27
+ hash-table-map hash-table-put! hash-table-remove!
28
+ hash-table? if lambda let let* let*-values let-struct
29
+ let-syntax let-syntaxes let-values let/cc let/ec letrec
30
+ letrec-syntax letrec-syntaxes letrec-syntaxes+values
31
+ letrec-values list-immutable make-hash-table
32
+ make-immutable-hash-table make-namespace module module*
33
+ module-identifier=? module-label-identifier=?
34
+ module-template-identifier=? module-transformer-identifier=?
35
+ namespace-transformer-require or parameterize parameterize*
36
+ parameterize-break promise? prop:method-arity-error provide
37
+ provide-for-label provide-for-syntax quasiquote quasisyntax
38
+ quasisyntax/loc quote quote-syntax quote-syntax/prune
39
+ require require-for-label require-for-syntax
40
+ require-for-template set! set!-values syntax syntax-case
41
+ syntax-case* syntax-id-rules syntax-object->datum
42
+ syntax-rules syntax/loc tcp-abandon-port tcp-accept
43
+ tcp-accept-evt tcp-accept-ready? tcp-accept/enable-break
44
+ tcp-addresses tcp-close tcp-connect tcp-connect/enable-break
45
+ tcp-listen tcp-listener? tcp-port? time transcript-off
46
+ transcript-on udp-addresses udp-bind! udp-bound? udp-close
47
+ udp-connect! udp-connected? udp-multicast-interface
48
+ udp-multicast-join-group! udp-multicast-leave-group!
49
+ udp-multicast-loopback? udp-multicast-set-interface!
50
+ udp-multicast-set-loopback! udp-multicast-set-ttl!
51
+ udp-multicast-ttl udp-open-socket udp-receive! udp-receive!*
52
+ udp-receive!-evt udp-receive!/enable-break
53
+ udp-receive-ready-evt udp-send udp-send* udp-send-evt
54
+ udp-send-ready-evt udp-send-to udp-send-to* udp-send-to-evt
55
+ udp-send-to/enable-break udp-send/enable-break udp? unless
56
+ unquote unquote-splicing unsyntax unsyntax-splicing when
57
+ with-continuation-mark with-handlers with-handlers*
58
+ with-syntax λ)
59
+ end
60
+
61
+ def self.builtins
62
+ @builtins ||= Set.new %w(
63
+ * + - / < <= = > >=
64
+ abort-current-continuation abs absolute-path? acos add1
65
+ alarm-evt always-evt andmap angle append apply
66
+ arithmetic-shift arity-at-least arity-at-least-value
67
+ arity-at-least? asin assoc assq assv atan banner bitwise-and
68
+ bitwise-bit-field bitwise-bit-set? bitwise-ior bitwise-not
69
+ bitwise-xor boolean? bound-identifier=? box box-cas!
70
+ box-immutable box? break-enabled break-thread build-path
71
+ build-path/convention-type byte-pregexp byte-pregexp?
72
+ byte-ready? byte-regexp byte-regexp? byte? bytes
73
+ bytes->immutable-bytes bytes->list bytes->path
74
+ bytes->path-element bytes->string/latin-1
75
+ bytes->string/locale bytes->string/utf-8 bytes-append
76
+ bytes-close-converter bytes-convert bytes-convert-end
77
+ bytes-converter? bytes-copy bytes-copy!
78
+ bytes-environment-variable-name? bytes-fill! bytes-length
79
+ bytes-open-converter bytes-ref bytes-set! bytes-utf-8-index
80
+ bytes-utf-8-length bytes-utf-8-ref bytes<? bytes=? bytes>?
81
+ bytes? caaaar caaadr caaar caadar caaddr caadr caar cadaar
82
+ cadadr cadar caddar cadddr caddr cadr call-in-nested-thread
83
+ call-with-break-parameterization
84
+ call-with-composable-continuation
85
+ call-with-continuation-barrier call-with-continuation-prompt
86
+ call-with-current-continuation
87
+ call-with-default-reading-parameterization
88
+ call-with-escape-continuation call-with-exception-handler
89
+ call-with-immediate-continuation-mark call-with-input-file
90
+ call-with-output-file call-with-parameterization
91
+ call-with-semaphore call-with-semaphore/enable-break
92
+ call-with-values call/cc call/ec car cdaaar cdaadr cdaar
93
+ cdadar cdaddr cdadr cdar cddaar cddadr cddar cdddar cddddr
94
+ cdddr cddr cdr ceiling channel-get channel-put
95
+ channel-put-evt channel-put-evt? channel-try-get channel?
96
+ chaperone-box chaperone-continuation-mark-key chaperone-evt
97
+ chaperone-hash chaperone-of? chaperone-procedure
98
+ chaperone-prompt-tag chaperone-struct chaperone-struct-type
99
+ chaperone-vector chaperone? char->integer char-alphabetic?
100
+ char-blank? char-ci<=? char-ci<? char-ci=? char-ci>=?
101
+ char-ci>? char-downcase char-foldcase char-general-category
102
+ char-graphic? char-iso-control? char-lower-case?
103
+ char-numeric? char-punctuation? char-ready? char-symbolic?
104
+ char-title-case? char-titlecase char-upcase char-upper-case?
105
+ char-utf-8-length char-whitespace? char<=? char<? char=?
106
+ char>=? char>? char? check-duplicate-identifier
107
+ checked-procedure-check-and-extract choice-evt cleanse-path
108
+ close-input-port close-output-port collect-garbage
109
+ collection-file-path collection-path compile
110
+ compile-allow-set!-undefined
111
+ compile-context-preservation-enabled
112
+ compile-enforce-module-constants compile-syntax
113
+ compiled-expression? compiled-module-expression?
114
+ complete-path? complex? cons continuation-mark-key?
115
+ continuation-mark-set->context continuation-mark-set->list
116
+ continuation-mark-set->list* continuation-mark-set-first
117
+ continuation-mark-set? continuation-marks
118
+ continuation-prompt-available? continuation-prompt-tag?
119
+ continuation? copy-file cos current-break-parameterization
120
+ current-code-inspector current-command-line-arguments
121
+ current-compile current-compiled-file-roots
122
+ current-continuation-marks current-custodian
123
+ current-directory current-directory-for-user current-drive
124
+ current-environment-variables current-error-port
125
+ current-eval current-evt-pseudo-random-generator
126
+ current-gc-milliseconds current-get-interaction-input-port
127
+ current-inexact-milliseconds current-input-port
128
+ current-inspector current-library-collection-paths
129
+ current-load current-load-extension
130
+ current-load-relative-directory current-load/use-compiled
131
+ current-locale current-memory-use current-milliseconds
132
+ current-module-declare-name current-module-declare-source
133
+ current-module-name-resolver current-module-path-for-load
134
+ current-namespace current-output-port
135
+ current-parameterization
136
+ current-preserved-thread-cell-values current-print
137
+ current-process-milliseconds current-prompt-read
138
+ current-pseudo-random-generator current-read-interaction
139
+ current-reader-guard current-readtable current-seconds
140
+ current-security-guard current-subprocess-custodian-mode
141
+ current-thread current-thread-group
142
+ current-thread-initial-stack-size
143
+ current-write-relative-directory custodian-box-value
144
+ custodian-box? custodian-limit-memory custodian-managed-list
145
+ custodian-memory-accounting-available?
146
+ custodian-require-memory custodian-shutdown-all custodian?
147
+ custom-print-quotable-accessor custom-print-quotable?
148
+ custom-write-accessor custom-write? date date*
149
+ date*-nanosecond date*-time-zone-name date*? date-day
150
+ date-dst? date-hour date-minute date-month date-second
151
+ date-time-zone-offset date-week-day date-year date-year-day
152
+ date? datum-intern-literal default-continuation-prompt-tag
153
+ delete-directory delete-file denominator directory-exists?
154
+ directory-list display displayln dump-memory-stats
155
+ dynamic-require dynamic-require-for-syntax dynamic-wind
156
+ environment-variables-copy environment-variables-names
157
+ environment-variables-ref environment-variables-set!
158
+ environment-variables? eof eof-object? ephemeron-value
159
+ ephemeron? eprintf eq-hash-code eq? equal-hash-code
160
+ equal-secondary-hash-code equal? equal?/recur eqv-hash-code
161
+ eqv? error error-display-handler error-escape-handler
162
+ error-print-context-length error-print-source-location
163
+ error-print-width error-value->string-handler eval
164
+ eval-jit-enabled eval-syntax even? evt? exact->inexact
165
+ exact-integer? exact-nonnegative-integer?
166
+ exact-positive-integer? exact? executable-yield-handler exit
167
+ exit-handler exn exn-continuation-marks exn-message
168
+ exn:break exn:break-continuation exn:break:hang-up
169
+ exn:break:hang-up? exn:break:terminate exn:break:terminate?
170
+ exn:break? exn:fail exn:fail:contract
171
+ exn:fail:contract:arity exn:fail:contract:arity?
172
+ exn:fail:contract:continuation
173
+ exn:fail:contract:continuation?
174
+ exn:fail:contract:divide-by-zero
175
+ exn:fail:contract:divide-by-zero?
176
+ exn:fail:contract:non-fixnum-result
177
+ exn:fail:contract:non-fixnum-result?
178
+ exn:fail:contract:variable exn:fail:contract:variable-id
179
+ exn:fail:contract:variable? exn:fail:contract?
180
+ exn:fail:filesystem exn:fail:filesystem:errno
181
+ exn:fail:filesystem:errno-errno exn:fail:filesystem:errno?
182
+ exn:fail:filesystem:exists exn:fail:filesystem:exists?
183
+ exn:fail:filesystem:missing-module
184
+ exn:fail:filesystem:missing-module-path
185
+ exn:fail:filesystem:missing-module?
186
+ exn:fail:filesystem:version exn:fail:filesystem:version?
187
+ exn:fail:filesystem? exn:fail:network exn:fail:network:errno
188
+ exn:fail:network:errno-errno exn:fail:network:errno?
189
+ exn:fail:network? exn:fail:out-of-memory
190
+ exn:fail:out-of-memory? exn:fail:read exn:fail:read-srclocs
191
+ exn:fail:read:eof exn:fail:read:eof? exn:fail:read:non-char
192
+ exn:fail:read:non-char? exn:fail:read? exn:fail:syntax
193
+ exn:fail:syntax-exprs exn:fail:syntax:missing-module
194
+ exn:fail:syntax:missing-module-path
195
+ exn:fail:syntax:missing-module? exn:fail:syntax:unbound
196
+ exn:fail:syntax:unbound? exn:fail:syntax?
197
+ exn:fail:unsupported exn:fail:unsupported? exn:fail:user
198
+ exn:fail:user? exn:fail? exn:missing-module-accessor
199
+ exn:missing-module? exn:srclocs-accessor exn:srclocs? exn?
200
+ exp expand expand-once expand-syntax expand-syntax-once
201
+ expand-syntax-to-top-form expand-to-top-form
202
+ expand-user-path explode-path expt file-exists?
203
+ file-or-directory-identity file-or-directory-modify-seconds
204
+ file-or-directory-permissions file-position file-position*
205
+ file-size file-stream-buffer-mode file-stream-port?
206
+ file-truncate filesystem-change-evt
207
+ filesystem-change-evt-cancel filesystem-change-evt?
208
+ filesystem-root-list find-executable-path
209
+ find-library-collection-paths find-system-path fixnum?
210
+ floating-point-bytes->real flonum? floor flush-output
211
+ for-each format fprintf free-identifier=? gcd
212
+ generate-temporaries gensym get-output-bytes
213
+ get-output-string getenv global-port-print-handler guard-evt
214
+ handle-evt handle-evt? hash hash-equal? hash-eqv?
215
+ hash-has-key? hash-placeholder? hash-ref! hasheq hasheqv
216
+ identifier-binding identifier-binding-symbol
217
+ identifier-label-binding identifier-prune-lexical-context
218
+ identifier-prune-to-source-module
219
+ identifier-remove-from-definition-context
220
+ identifier-template-binding identifier-transformer-binding
221
+ identifier? imag-part immutable? impersonate-box
222
+ impersonate-continuation-mark-key impersonate-hash
223
+ impersonate-procedure impersonate-prompt-tag
224
+ impersonate-struct impersonate-vector impersonator-ephemeron
225
+ impersonator-of? impersonator-prop:application-mark
226
+ impersonator-property-accessor-procedure?
227
+ impersonator-property? impersonator? inexact->exact
228
+ inexact-real? inexact? input-port? inspector? integer->char
229
+ integer->integer-bytes integer-bytes->integer integer-length
230
+ integer-sqrt integer-sqrt/remainder integer?
231
+ internal-definition-context-seal
232
+ internal-definition-context? keyword->string keyword<?
233
+ keyword? kill-thread lcm length liberal-define-context?
234
+ link-exists? list list* list->bytes list->string
235
+ list->vector list-ref list-tail list? load load-extension
236
+ load-on-demand-enabled load-relative load-relative-extension
237
+ load/cd load/use-compiled local-expand
238
+ local-expand/capture-lifts local-transformer-expand
239
+ local-transformer-expand/capture-lifts
240
+ locale-string-encoding log log-max-level magnitude
241
+ make-arity-at-least make-bytes make-channel
242
+ make-continuation-mark-key make-continuation-prompt-tag
243
+ make-custodian make-custodian-box make-date make-date*
244
+ make-derived-parameter make-directory
245
+ make-environment-variables make-ephemeron make-exn
246
+ make-exn:break make-exn:break:hang-up
247
+ make-exn:break:terminate make-exn:fail
248
+ make-exn:fail:contract make-exn:fail:contract:arity
249
+ make-exn:fail:contract:continuation
250
+ make-exn:fail:contract:divide-by-zero
251
+ make-exn:fail:contract:non-fixnum-result
252
+ make-exn:fail:contract:variable make-exn:fail:filesystem
253
+ make-exn:fail:filesystem:errno
254
+ make-exn:fail:filesystem:exists
255
+ make-exn:fail:filesystem:missing-module
256
+ make-exn:fail:filesystem:version make-exn:fail:network
257
+ make-exn:fail:network:errno make-exn:fail:out-of-memory
258
+ make-exn:fail:read make-exn:fail:read:eof
259
+ make-exn:fail:read:non-char make-exn:fail:syntax
260
+ make-exn:fail:syntax:missing-module
261
+ make-exn:fail:syntax:unbound make-exn:fail:unsupported
262
+ make-exn:fail:user make-file-or-directory-link
263
+ make-hash-placeholder make-hasheq-placeholder make-hasheqv
264
+ make-hasheqv-placeholder make-immutable-hasheqv
265
+ make-impersonator-property make-input-port make-inspector
266
+ make-known-char-range-list make-output-port make-parameter
267
+ make-phantom-bytes make-pipe make-placeholder make-polar
268
+ make-prefab-struct make-pseudo-random-generator
269
+ make-reader-graph make-readtable make-rectangular
270
+ make-rename-transformer make-resolved-module-path
271
+ make-security-guard make-semaphore make-set!-transformer
272
+ make-shared-bytes make-sibling-inspector
273
+ make-special-comment make-srcloc make-string
274
+ make-struct-field-accessor make-struct-field-mutator
275
+ make-struct-type make-struct-type-property
276
+ make-syntax-delta-introducer make-syntax-introducer
277
+ make-thread-cell make-thread-group make-vector make-weak-box
278
+ make-weak-hasheqv make-will-executor map max mcar mcdr mcons
279
+ member memq memv min module->exports module->imports
280
+ module->language-info module->namespace
281
+ module-compiled-cross-phase-persistent?
282
+ module-compiled-exports module-compiled-imports
283
+ module-compiled-language-info module-compiled-name
284
+ module-compiled-submodules module-declared?
285
+ module-path-index-join module-path-index-resolve
286
+ module-path-index-split module-path-index-submodule
287
+ module-path-index? module-path? module-predefined?
288
+ module-provide-protected? modulo mpair? nack-guard-evt
289
+ namespace-attach-module namespace-attach-module-declaration
290
+ namespace-base-phase namespace-mapped-symbols
291
+ namespace-module-identifier namespace-module-registry
292
+ namespace-require namespace-require/constant
293
+ namespace-require/copy namespace-require/expansion-time
294
+ namespace-set-variable-value! namespace-symbol->identifier
295
+ namespace-syntax-introduce namespace-undefine-variable!
296
+ namespace-unprotect-module namespace-variable-value
297
+ namespace? negative? never-evt newline normal-case-path not
298
+ null null? number->string number? numerator object-name odd?
299
+ open-input-bytes open-input-file open-input-output-file
300
+ open-input-string open-output-bytes open-output-file
301
+ open-output-string ormap output-port? pair?
302
+ parameter-procedure=? parameter? parameterization?
303
+ path->bytes path->complete-path path->directory-path
304
+ path->string path-add-suffix path-convention-type
305
+ path-element->bytes path-element->string
306
+ path-for-some-system? path-list-string->path-list
307
+ path-replace-suffix path-string? path? peek-byte
308
+ peek-byte-or-special peek-bytes peek-bytes!
309
+ peek-bytes-avail! peek-bytes-avail!*
310
+ peek-bytes-avail!/enable-break peek-char
311
+ peek-char-or-special peek-string peek-string! phantom-bytes?
312
+ pipe-content-length placeholder-get placeholder-set!
313
+ placeholder? poll-guard-evt port-closed-evt port-closed?
314
+ port-commit-peeked port-count-lines!
315
+ port-count-lines-enabled port-counts-lines?
316
+ port-display-handler port-file-identity port-file-unlock
317
+ port-next-location port-print-handler port-progress-evt
318
+ port-provides-progress-evts? port-read-handler
319
+ port-try-file-lock? port-write-handler port-writes-atomic?
320
+ port-writes-special? port? positive? prefab-key->struct-type
321
+ prefab-key? prefab-struct-key pregexp pregexp?
322
+ primitive-closure? primitive-result-arity primitive? print
323
+ print-as-expression print-boolean-long-form print-box
324
+ print-graph print-hash-table print-mpair-curly-braces
325
+ print-pair-curly-braces print-reader-abbreviations
326
+ print-struct print-syntax-width print-unreadable
327
+ print-vector-length printf procedure->method procedure-arity
328
+ procedure-arity-includes? procedure-arity?
329
+ procedure-closure-contents-eq? procedure-extract-target
330
+ procedure-reduce-arity procedure-rename
331
+ procedure-struct-type? procedure? progress-evt?
332
+ prop:arity-string prop:checked-procedure
333
+ prop:custom-print-quotable prop:custom-write prop:equal+hash
334
+ prop:evt prop:exn:missing-module prop:exn:srclocs
335
+ prop:impersonator-of prop:input-port
336
+ prop:liberal-define-context prop:output-port prop:procedure
337
+ prop:rename-transformer prop:set!-transformer
338
+ pseudo-random-generator->vector
339
+ pseudo-random-generator-vector? pseudo-random-generator?
340
+ putenv quotient quotient/remainder raise
341
+ raise-argument-error raise-arguments-error raise-arity-error
342
+ raise-mismatch-error raise-range-error raise-result-error
343
+ raise-syntax-error raise-type-error raise-user-error random
344
+ random-seed rational? rationalize read read-accept-bar-quote
345
+ read-accept-box read-accept-compiled read-accept-dot
346
+ read-accept-graph read-accept-infix-dot read-accept-lang
347
+ read-accept-quasiquote read-accept-reader read-byte
348
+ read-byte-or-special read-bytes read-bytes!
349
+ read-bytes-avail! read-bytes-avail!*
350
+ read-bytes-avail!/enable-break read-bytes-line
351
+ read-case-sensitive read-char read-char-or-special
352
+ read-curly-brace-as-paren read-decimal-as-inexact
353
+ read-eval-print-loop read-language read-line
354
+ read-on-demand-source read-square-bracket-as-paren
355
+ read-string read-string! read-syntax read-syntax/recursive
356
+ read/recursive readtable-mapping readtable?
357
+ real->double-flonum real->floating-point-bytes
358
+ real->single-flonum real-part real? regexp regexp-match
359
+ regexp-match-peek regexp-match-peek-immediate
360
+ regexp-match-peek-positions
361
+ regexp-match-peek-positions-immediate
362
+ regexp-match-peek-positions-immediate/end
363
+ regexp-match-peek-positions/end regexp-match-positions
364
+ regexp-match-positions/end regexp-match/end regexp-match?
365
+ regexp-max-lookbehind regexp-replace regexp-replace* regexp?
366
+ relative-path? remainder rename-file-or-directory
367
+ rename-transformer-target rename-transformer? reroot-path
368
+ resolve-path resolved-module-path-name resolved-module-path?
369
+ reverse round seconds->date security-guard?
370
+ semaphore-peek-evt semaphore-peek-evt? semaphore-post
371
+ semaphore-try-wait? semaphore-wait
372
+ semaphore-wait/enable-break semaphore?
373
+ set!-transformer-procedure set!-transformer? set-box!
374
+ set-mcar! set-mcdr! set-phantom-bytes!
375
+ set-port-next-location! shared-bytes shell-execute
376
+ simplify-path sin single-flonum? sleep special-comment-value
377
+ special-comment? split-path sqrt srcloc srcloc->string
378
+ srcloc-column srcloc-line srcloc-position srcloc-source
379
+ srcloc-span srcloc? string string->bytes/latin-1
380
+ string->bytes/locale string->bytes/utf-8
381
+ string->immutable-string string->keyword string->list
382
+ string->number string->path string->path-element
383
+ string->symbol string->uninterned-symbol
384
+ string->unreadable-symbol string-append string-ci<=?
385
+ string-ci<? string-ci=? string-ci>=? string-ci>? string-copy
386
+ string-copy! string-downcase
387
+ string-environment-variable-name? string-fill!
388
+ string-foldcase string-length string-locale-ci<?
389
+ string-locale-ci=? string-locale-ci>? string-locale-downcase
390
+ string-locale-upcase string-locale<? string-locale=?
391
+ string-locale>? string-normalize-nfc string-normalize-nfd
392
+ string-normalize-nfkc string-normalize-nfkd string-ref
393
+ string-set! string-titlecase string-upcase
394
+ string-utf-8-length string<=? string<? string=? string>=?
395
+ string>? string? struct->vector struct-accessor-procedure?
396
+ struct-constructor-procedure? struct-info
397
+ struct-mutator-procedure? struct-predicate-procedure?
398
+ struct-type-info struct-type-make-constructor
399
+ struct-type-make-predicate
400
+ struct-type-property-accessor-procedure?
401
+ struct-type-property? struct-type? struct:arity-at-least
402
+ struct:date struct:date* struct:exn struct:exn:break
403
+ struct:exn:break:hang-up struct:exn:break:terminate
404
+ struct:exn:fail struct:exn:fail:contract
405
+ struct:exn:fail:contract:arity
406
+ struct:exn:fail:contract:continuation
407
+ struct:exn:fail:contract:divide-by-zero
408
+ struct:exn:fail:contract:non-fixnum-result
409
+ struct:exn:fail:contract:variable struct:exn:fail:filesystem
410
+ struct:exn:fail:filesystem:errno
411
+ struct:exn:fail:filesystem:exists
412
+ struct:exn:fail:filesystem:missing-module
413
+ struct:exn:fail:filesystem:version struct:exn:fail:network
414
+ struct:exn:fail:network:errno struct:exn:fail:out-of-memory
415
+ struct:exn:fail:read struct:exn:fail:read:eof
416
+ struct:exn:fail:read:non-char struct:exn:fail:syntax
417
+ struct:exn:fail:syntax:missing-module
418
+ struct:exn:fail:syntax:unbound struct:exn:fail:unsupported
419
+ struct:exn:fail:user struct:srcloc struct? sub1 subbytes
420
+ subprocess subprocess-group-enabled subprocess-kill
421
+ subprocess-pid subprocess-status subprocess-wait subprocess?
422
+ substring symbol->string symbol-interned? symbol-unreadable?
423
+ symbol? sync sync/enable-break sync/timeout
424
+ sync/timeout/enable-break syntax->list syntax-arm
425
+ syntax-column syntax-disarm syntax-e syntax-line
426
+ syntax-local-bind-syntaxes syntax-local-certifier
427
+ syntax-local-context syntax-local-expand-expression
428
+ syntax-local-get-shadower syntax-local-introduce
429
+ syntax-local-lift-context syntax-local-lift-expression
430
+ syntax-local-lift-module-end-declaration
431
+ syntax-local-lift-provide syntax-local-lift-require
432
+ syntax-local-lift-values-expression
433
+ syntax-local-make-definition-context
434
+ syntax-local-make-delta-introducer
435
+ syntax-local-module-defined-identifiers
436
+ syntax-local-module-exports
437
+ syntax-local-module-required-identifiers syntax-local-name
438
+ syntax-local-phase-level syntax-local-submodules
439
+ syntax-local-transforming-module-provides?
440
+ syntax-local-value syntax-local-value/immediate
441
+ syntax-original? syntax-position syntax-property
442
+ syntax-property-symbol-keys syntax-protect syntax-rearm
443
+ syntax-recertify syntax-shift-phase-level syntax-source
444
+ syntax-source-module syntax-span syntax-taint
445
+ syntax-tainted? syntax-track-origin
446
+ syntax-transforming-module-expression? syntax-transforming?
447
+ syntax? system-big-endian? system-idle-evt
448
+ system-language+country system-library-subpath
449
+ system-path-convention-type system-type tan terminal-port?
450
+ thread thread-cell-ref thread-cell-set! thread-cell-values?
451
+ thread-cell? thread-dead-evt thread-dead? thread-group?
452
+ thread-resume thread-resume-evt thread-rewind-receive
453
+ thread-running? thread-suspend thread-suspend-evt
454
+ thread-wait thread/suspend-to-kill thread? time-apply
455
+ truncate unbox uncaught-exception-handler
456
+ use-collection-link-paths use-compiled-file-paths
457
+ use-user-specific-search-paths values
458
+ variable-reference->empty-namespace
459
+ variable-reference->module-base-phase
460
+ variable-reference->module-declaration-inspector
461
+ variable-reference->module-path-index
462
+ variable-reference->module-source
463
+ variable-reference->namespace variable-reference->phase
464
+ variable-reference->resolved-module-path
465
+ variable-reference-constant? variable-reference? vector
466
+ vector->immutable-vector vector->list
467
+ vector->pseudo-random-generator
468
+ vector->pseudo-random-generator! vector->values vector-fill!
469
+ vector-immutable vector-length vector-ref vector-set!
470
+ vector-set-performance-stats! vector? version void void?
471
+ weak-box-value weak-box? will-execute will-executor?
472
+ will-register will-try-execute with-input-from-file
473
+ with-output-to-file wrap-evt write write-byte write-bytes
474
+ write-bytes-avail write-bytes-avail* write-bytes-avail-evt
475
+ write-bytes-avail/enable-break write-char write-special
476
+ write-special-avail* write-special-evt write-string zero?
477
+ )
478
+ end
479
+
480
+ # Since Racket allows identifiers to consist of nearly anything,
481
+ # it's simpler to describe what an ID is _not_.
482
+ id = /[^\s\(\)\[\]\{\}'`,.]+/i
483
+
484
+ state :root do
485
+ # comments
486
+ rule /;.*$/, 'Comment.Single'
487
+ rule /\s+/m, 'Text'
488
+
489
+ rule /[+-]inf[.][f0]/, 'Literal.Number.Float'
490
+ rule /[+-]nan[.]0/, 'Literal.Number.Float'
491
+ rule /[-]min[.]0/, 'Literal.Number.Float'
492
+ rule /[+]max[.]0/, 'Literal.Number.Float'
493
+
494
+ rule /-?\d+\.\d+/, 'Literal.Number.Float'
495
+ rule /-?\d+/, 'Literal.Number.Integer'
496
+
497
+ rule /#:#{id}+/, 'Name.Tag' # keyword
498
+
499
+ rule /#b[01]+/, 'Literal.Number.Binary'
500
+ rule /#o[0-7]+/, 'Literal.Number.Oct'
501
+ rule /#d[0-9]+/, 'Literal.Number.Integer'
502
+ rule /#x[0-9a-f]+/i, 'Literal.Number.Hex'
503
+ rule /#[ei][\d.]+/, 'Literal.Number.Other'
504
+
505
+ rule /"(\\\\|\\"|[^"])*"/, 'Literal.String'
506
+ rule /['`]#{id}/i, 'Literal.String.Symbol'
507
+ rule /#\\([()\/'"._!\$%& ?=+-]{1}|[a-z0-9]+)/i,
508
+ 'Literal.String.Char'
509
+ rule /#t|#f/, 'Name.Constant'
510
+ rule /(?:'|#|`|,@|,|\.)/, 'Operator'
511
+
512
+ rule /(['#])(\s*)(\()/m do
513
+ group 'Literal.String.Symbol'
514
+ group 'Text'
515
+ group 'Punctuation'
516
+ end
517
+
518
+ # () [] {} are all permitted as like pairs
519
+ rule /\(|\[|\{/, 'Punctuation', :command
520
+ rule /\)|\]|\}/, 'Punctuation'
521
+
522
+ rule id, 'Name.Variable'
523
+ end
524
+
525
+ state :command do
526
+ rule id, 'Name.Function' do |m|
527
+ if self.class.keywords.include? m[0]
528
+ token 'Keyword'
529
+ elsif self.class.builtins.include? m[0]
530
+ token 'Name.Builtin'
531
+ else
532
+ token 'Name.Function'
533
+ end
534
+
535
+ pop!
536
+ end
537
+
538
+ rule(//) { pop! }
539
+ end
540
+
541
+ end
542
+ end
543
+ end
@@ -4,7 +4,7 @@ module Rouge
4
4
  desc "The Scheme variant of Lisp"
5
5
 
6
6
  tag 'scheme'
7
- filenames '*.scm', '*.ss', '*.rkt'
7
+ filenames '*.scm', '*.ss'
8
8
  mimetypes 'text/x-scheme', 'application/x-scheme'
9
9
 
10
10
  def self.keywords
@@ -1,5 +1,5 @@
1
1
  module Rouge
2
2
  def self.version
3
- "0.3.8"
3
+ "0.3.9"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rouge
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.8
4
+ version: 0.3.9
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-07-02 00:00:00.000000000 Z
12
+ date: 2013-07-19 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  type: :runtime
@@ -69,6 +69,7 @@ files:
69
69
  - lib/rouge/lexers/sed.rb
70
70
  - lib/rouge/lexers/coffeescript.rb
71
71
  - lib/rouge/lexers/literate_coffeescript.rb
72
+ - lib/rouge/lexers/racket.rb
72
73
  - lib/rouge/lexers/text.rb
73
74
  - lib/rouge/lexers/diff.rb
74
75
  - lib/rouge/lexers/viml/keywords.rb
@@ -102,6 +103,7 @@ files:
102
103
  - lib/rouge/lexers/c.rb
103
104
  - lib/rouge/lexers/gherkin/keywords.rb
104
105
  - lib/rouge/lexers/io.rb
106
+ - lib/rouge/lexers/elixir.rb
105
107
  - lib/rouge/lexers/lua/builtins.rb
106
108
  - lib/rouge/lexers/go.rb
107
109
  - lib/rouge/lexers/python.rb
@@ -121,6 +123,8 @@ files:
121
123
  - lib/rouge/demos/yaml
122
124
  - lib/rouge/demos/handlebars
123
125
  - lib/rouge/demos/tex
126
+ - lib/rouge/demos/racket
127
+ - lib/rouge/demos/elixir
124
128
  - lib/rouge/demos/php
125
129
  - lib/rouge/demos/tcl
126
130
  - lib/rouge/demos/html