"Fossies" - the Fresh Open Source Software Archive

Member "highlight-3.57-x64/langDefs/mssql.lang" (12 May 2020, 8014 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.

    1 -- Language definition generated by lang2to3
    2 
    3 Description="MSSQL"
    4 
    5 Categories = {"database"}
    6 
    7 
    8 Identifiers=[[ @?@?[a-zA-Z_][\w]* ]]
    9 
   10 Keywords={
   11   { Id=1,
   12     List={"absolute", "action", "after", "all", "all_constraints",
   13         "all_errormsgs", "all_indexes", "all_levels", "alter", "and", "any",
   14         "ansi_defaults", "ansi_null_dflt_off", "ansi_null_dflt_on", "ansi_nulls",
   15         "ansi_padding", "ansi_warnings", "append", "arithabort", "arithignore", "as",
   16         "asc", "attach", "authorization", "auto", "backup", "begin", "between", "break",
   17         "browse", "bulk", "by", "cascade", "case", "check", "checkalloc",
   18         "checkcatalog", "checkconstraints", "checkdb", "checkfilegroup", "checkident",
   19         "checkpoint", "checktable", "cleantable", "close", "clustered", "collate",
   20         "commit", "committed", "compute", "concat", "concat_null_yields_null",
   21         "concurrencyviolation", "constraint", "contains", "containstable",
   22         "context_info", "continue", "count_rows", "create", "cross", "cube", "current",
   23         "cursor", "cursor_close_on_commit", "database", "datefirst", "dateformat",
   24         "dbcc", "dbrepair", "dbreindex", "deadlock_priority", "deallocate", "declare",
   25         "default", "delay", "delete", "deny", "desc", "disable_def_cnst_chk", "disk",
   26         "display", "distinct", "distributed", "drop", "drop_existing",
   27         "dropcleanbuffers", "dump", "dynamic", "elements", "else", "emptyfile",
   28         "encryption", "end", "entry", "escape", "estimateonly", "exec", "execute",
   29         "exists", "explicit", "fast", "fast_forward", "fastfirstrow", "fetch",
   30         "filegroup", "filegrowth", "file", "filelistonly", "filename", "fillfactor",
   31         "fips_flagger", "first", "fmtonly", "for", "force", "forceplan", "foreign",
   32         "forward_only", "free", "freeproccache", "freetext", "from", "full", "fullscan",
   33         "function", "global", "grant", "group", "go", "goto", "hash", "having",
   34         "headeronly", "help", "holdlock", "identity", "identity_insert", "if",
   35         "ignore_dup_key", "implicit_transactions", "in", "intermediate", "into",
   36         "index", "indexdefrag", "inner", "inputbuffer", "insert", "instead",
   37         "intensive", "into", "io", "is", "isolation", "join", "keep",
   38         "keep_replication", "key", "keyset", "kill", "labelonly", "language", "last",
   39         "left", "level", "like", "load", "loadhistory", "local", "lock_timeout", "log",
   40         "logspace", "loop", "low", "maxdop", "maxsize", "medianame", "mediapassword",
   41         "merge", "move", "name", "newalloc", "next", "no_infomsgs", "nocount", "noexec",
   42         "nonclustered", "noindex", "nolock", "norecompute", "norecovery", "noreseed",
   43         "noreset", "norewind", "normal", "not", "notruncate", "nounload", "nowait",
   44         "null", "numeric_roundabort", "of", "off", "offsets", "on", "only", "open",
   45         "opentran", "optimistic", "option", "or", "order", "outer", "output",
   46         "outputbuffer", "override", "pad_index", "paglock", "parse_only", "partial",
   47         "password", "percent", "physical_only", "primary", "prior", "pintable", "plan",
   48         "print", "privileges", "proc", "proccache", "procedure", "profile",
   49         "query_governor_cost_limit", "quoted_identifier", "raw", "read", "read_only",
   50         "readcommited", "readpast", "readtext", "readuncommited", "recompile",
   51         "reconfigure", "recovery", "references", "relative", "remote_proc_transactions",
   52         "repair_allow_data_loss", "repair_fast", "repair_rebuild", "repeatable",
   53         "repeatableread", "replace", "replication", "reseed", "reset", "restart",
   54         "restore", "restricted_user", "return", "returns", "revoke", "rewind", "right",
   55         "robust", "rollback", "rollup", "rowcount", "rowguidcol", "rowlock", "rows",
   56         "rule", "sample", "save", "schema", "schemabinding", "scroll", "scroll_locks",
   57         "select", "serializable", "set", "setuser", "showcontig", "show_statistics",
   58         "showplan_all", "showplan_text", "shrinkdatabase", "shrinkfile", "shutdown",
   59         "size", "some", "sqlperf", "standby", "startlog", "static", "statistics",
   60         "statistics_norecompute", "stats", "statusonly", "stopat", "stopatmark",
   61         "stopbefore", "stoplog", "some", "sort_in_tempdb", "table", "tableresults",
   62         "tablock", "tablockx", "tape", "textimage_on", "textsize", "then", "time", "to",
   63         "top", "traceoff", "traceon", "tracestatus", "tran", "transaction", "trigger",
   64         "truncate", "truncateonly", "type_warning", "uncommitted", "union", "unique",
   65         "unlimited", "unload", "unpintable", "update", "updatetext", "updateusage",
   66         "updlock", "use", "useoptions", "values", "varying", "verifyonly", "view",
   67         "view_metadata", "waitfor", "when", "where", "while", "with", "work",
   68         "xact_abort", "xml", "xmldata"},
   69   },
   70   { Id=2,
   71     List={"bigint", "binary", "bit", "char", "character", "datetime", "dec",
   72         "decimal", "double", "float", "image", "int", "integer", "money", "national",
   73         "nchar", "numeric", "nvarchar", "ntext", "precision", "real", "rowversion",
   74         "smalldatetime", "smallint", "smallmoney", "sql_variant", "text", "timestamp",
   75         "tinyint", "uniqueidetifier", "varbinary", "varchar", "varying"},
   76   },
   77   { Id=3,
   78     List={"@@connections", "@@cpu_busy", "@@cursor_rows", "@@datefirst",
   79         "@@dbts", "@@error", "@@fetch_status", "@@identity", "@@idle", "@@io_busy",
   80         "@@langid", "@@language", "@@lock_timeout", "@@max_connections",
   81         "@@max_precision", "@@nestlevel", "@@options", "@@pack_received", "@@pack_sent",
   82         "@@packet_errors", "@@procid", "@@remserver", "@@rowcount", "@@servername",
   83         "@@servicename", "@@spid", "@@textsize", "@@timeticks", "@@total_errors",
   84         "@@total_read", "@@total_write", "@@trancount", "@@version", "abs", "acos",
   85         "app_name", "ascii", "asin", "atan", "atn2", "avg", "binary_checksum", "cast",
   86         "convert", "ceiling", "charindex", "checksum", "checksum_agg", "coalesce",
   87         "collationproperty", "col_length", "col_name", "columnproperty",
   88         "columns_updated", "cos", "cot", "count", "count_big", "current_timestamp",
   89         "current_user", "cursor_status", "databaseproperty", "databasepropertyex",
   90         "datalength", "dateadd", "datediff", "datename", "datepart", "day", "db_id",
   91         "db_name", "degrees", "difference", "exp", "file_id", "file_name",
   92         "filegroup_id", "filegroup_name", "filegroupproperty", "fileproperty", "floor",
   93         "formatmessage", "freetext", "freetexttable", "fulltextcatalogproperty",
   94         "fulltextserviceproperty", "getansinull", "getdate", "getutcdate", "grouping",
   95         "has_dbaccess", "host_id", "host_name", "ident_current", "ident_incr",
   96         "ident_seed", "indexkey_property", "indexproperty", "index_col", "is_member",
   97         "is_srvrolemember", "isdate", "isnull", "isnumeric", "left", "len", "log",
   98         "lower", "ltrim", "max", "min", "month", "newid", "nullif", "object_id",
   99         "object_name", "objectproperty", "opendatasource", "openquery", "openrowset",
  100         "openxml", "parsename", "patindex", "permissions", "pi", "power", "quotename",
  101         "radians", "raiseerror", "rand", "replicate", "reverse", "right", "round",
  102         "rowcount_big", "rtrim", "scope_identity", "serverproperty", "session_user",
  103         "sessionproperty", "sign", "sin", "soundex", "space", "sql_variant_property",
  104         "square", "sqrt", "stats_date", "stdev", "sdevp", "str", "stuff", "substring",
  105         "sum", "suser_id", "suser_name", "suser_sid", "suser_sname", "system_user",
  106         "tan", "textptr", "textvalid", "trigger_nestlevel", "typeproperty", "unicode",
  107         "upper", "user", "user_id", "user_name", "var", "varp", "year"},
  108   },
  109 }
  110 
  111 Strings={
  112   Delimiter=[[']],
  113 }
  114 
  115 IgnoreCase=true
  116 
  117 Comments={
  118   { Block=false,
  119     Delimiter= { [[\-\-]] },
  120   },
  121   { Block=true,
  122     Nested=false,
  123     Delimiter= { [[\/\*]],[[\*\/]],}
  124   }
  125 }
  126 
  127 Operators=[[\(|\)|\[|\]|\,|\;|\:|\&|<|>|\!|\=|\/|\*|\%|\+|\-|\^|\~]]
  128