"Fossies" - the Fresh Open Source Software Archive

Member "highlight-3.57-x64/langDefs/pike.lang" (12 May 2020, 4201 Bytes) of package /windows/www/highlight-3.57-x64.zip:


As a special service "Fossies" has tried to format the requested text file into HTML format (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file. See also the last Fossies "Diffs" side-by-side code changes report for "pike.lang": 3.53_vs_3.54.

    1 
    2 Description="Pike"
    3 
    4 -- Syntax file created by Olivier Girondel
    5 
    6 Categories = {"source"}
    7 
    8 Keywords={
    9   { Id=1,
   10     List={"constant", "enum", "typedef", "if", "do", "for", "while", "else", "foreach", "case", "switch", "break", "continue", "return", "sscanf",
   11         "typeof", "catch", "gauge", "class", "lambda", "import", "inherit", "facet", "final",
   12             "static", "private", "local", "public", "protected", "nomask", "inline", "extern", "optional", "variant"},
   13   },
   14   { Id=2,
   15     List={"array", "constant", "extern", "float", "function", "int", "local", "mapping", "mixed", "multiset", "object", "program", "static", "string", "void"},
   16   },
   17   { Id=3,
   18     List={"__parse_pike_type", "_disable_threads", "_do_call_outs", "_exit",
   19             "_gc_status", "_leak", "_memory_usage", "_next", "_prev", "_refs",
   20             "_static_modules", "_typeof", "abs", "acos", "add_constant", "add_include_path",
   21             "add_module_path", "add_program_path", "aggregate", "aggregate_mapping",
   22             "aggregate_multiset", "alarm", "all_constants", "all_threads", "allocate",
   23             "array_sscanf", "arrayp", "asin", "atan", "atan2", "atexit", "backtrace",
   24             "basename", "call_function", "call_out", "call_out_info", "cd", "ceil", "chmod",
   25             "chown", "chroot", "cleargroups", "clone", "closelog", "column", "combine_path",
   26             "combine_path_nt", "combine_path_unix", "compile", "", "compile_file",
   27             "compile_string", "copy_value", "cos", "cpp", "crypt", "ctime", "decode_value",
   28             "delay", "describe_backtrace", "describe_error", "destruct", "dirname",
   29             "encode_value", "encode_value_canonic", "endgrent", "endpwent", "enumerate",
   30             "equal", "errno", "exece", "exit", "exp", "explode_path", "file_stat",
   31             "file_truncate", "filesystem_stat", "filter", "find_call_out", "floatp",
   32             "floor", "fork", "function_name", "function_object", "functionp", "gc",
   33             "get_all_groups", "get_all_users", "get_dir", "get_groups_for_user",
   34             "get_weak_flag", "getcwd", "getegid", "getenv", "geteuid", "getgid", "getgrent",
   35             "getgrgid", "getgrnam", "getgroups", "gethostbyaddr", "gethostbyname",
   36             "gethostname", "gethrtime", "getpgrp", "getpid", "getppid", "getpwent",
   37             "getpwnam", "getpwuid", "getsid", "getuid", "glob", "gmtime", "hardlink",
   38             "has_index", "has_prefix", "has_suffix", "has_value", "hash", "hash_7_0",
   39             "indices", "initgroups", "innetgr", "intp", "is_absolute_path", "kill",
   40             "load_module", "localtime", "log", "lower_case", "m_delete", "map", "mappingp",
   41             "master", "max", "min", "mkdir", "mkmapping", "mkmultiset", "mktime",
   42             "multisetp", "mv", "new", "next_object", "normalize_path", "object_program",
   43             "object_variablep", "objectp", "openlog", "pow", "programp", "", "putenv",
   44             "query_num_arg", "random", "random_seed", "random_string", "readlink",
   45             "remove_call_out", "remove_include_path", "remove_module_path",
   46             "remove_program_path", "replace", "replace_master", "reverse", "rm", "round",
   47             "rows", "rusage", "search", "set_priority", "set_weak_flag", "setegid",
   48             "seteuid", "setgid", "setgrent", "setgroups", "setpgrp", "setpwent",
   49             "setresgid", "setresuid", "setsid", "setuid", "sgn", "signal", "signame",
   50             "signum", "sin", "sizeof", "sleep", "sort", "sprintf", "sqrt", "strerror",
   51             "string_to_unicode", "string_to_utf8", "stringp", "strlen", "symlink", "syslog",
   52             "tan", "this_object", "this_thread", "thread_create", "thread_local", "throw",
   53             "time", "trace", "ualarm", "umask", "uname", "unicode_to_string", "upper_case",
   54             "utf8_to_string", "utime", "values", "version", "werror", "write", "zero_type"},
   55   },
   56   { Id=4,
   57     Regex=[[(\w+)\s*\(]],
   58   },
   59 }
   60 
   61 Strings={
   62   Delimiter=[["|']],
   63 }
   64 
   65 IgnoreCase=false
   66 
   67 Comments={
   68   { Block=false,
   69     Delimiter= { [[\/\/]] },
   70   },
   71   { Block=true,
   72     Nested=false,
   73     Delimiter= { [[\/\*]],[[\*\/]],}
   74   }
   75 }
   76 
   77 PreProcessor={
   78   Prefix=[[#]],
   79 }
   80 
   81 Operators=[[\(|\)|\[|\]|\{|\}|\,|\;|\:|\&|<|>|\!|\=|\/|\*|\%|\+|\-]]