site/node_modules/shiki/dist/langs/plsql.mjs

7 lines
8.4 KiB
JavaScript
Raw Permalink Normal View History

2024-10-14 06:09:33 +00:00
const lang = Object.freeze({ "displayName": "PL/SQL", "fileTypes": ["sql", "ddl", "dml", "pkh", "pks", "pkb", "pck", "pls", "plb"], "foldingStartMarker": "(?i)^\\s*(begin|if|loop)\\b", "foldingStopMarker": "(?i)^\\s*(end)\\b", "name": "plsql", "patterns": [{ "begin": "/\\*", "end": "\\*/", "name": "comment.block.oracle" }, { "match": "--.*$", "name": "comment.line.double-dash.oracle" }, { "match": "(?i)(?:^\\s*)rem(?:\\s+.*$)", "name": "comment.line.sqlplus.oracle" }, { "match": "(?i)(?:^\\s*)prompt(?:\\s+.*$)", "name": "comment.line.sqlplus-prompt.oracle" }, { "captures": { "1": { "name": "keyword.other.oracle" }, "2": { "name": "keyword.other.oracle" } }, "match": "(?i)^\\s*(create)(\\s+or\\s+replace)?\\s+", "name": "meta.create.oracle" }, { "captures": { "1": { "name": "keyword.other.oracle" }, "2": { "name": "keyword.other.oracle" }, "3": { "name": "entity.name.type.oracle" } }, "match": "(?i)\\b(package)(\\s+body)?\\s+(\\S+)", "name": "meta.package.oracle" }, { "captures": { "1": { "name": "keyword.other.oracle" }, "2": { "name": "entity.name.type.oracle" } }, "match": '(?i)\\b(type)\\s+"([^"]+)"', "name": "meta.type.oracle" }, { "captures": { "1": { "name": "keyword.other.oracle" }, "2": { "name": "entity.name.function.oracle" } }, "match": '(?i)^\\s*(function|procedure)\\s+"?([-a-z0-9_]+)"?', "name": "meta.procedure.oracle" }, { "match": "[!<>:]?=|<>|<|>|\\+|(?<!\\.)\\*|-|(?<!^)/|\\|\\|", "name": "keyword.operator.oracle" }, { "match": "(?i)\\b(true|false|null|is\\s+(not\\s+)?null)\\b", "name": "constant.language.oracle" }, { "match": "\\b\\d+(\\.\\d+)?\\b", "name": "constant.numeric.oracle" }, { "match": "(?i)\\b(if|elsif|else|end\\s+if|loop|end\\s+loop|for|while|case|end\\s+case|continue|return|goto)\\b", "name": "keyword.control.oracle" }, { "match": "(?i)\\b(or|and|not|like)\\b", "name": "keyword.other.oracle" }, { "match": "(?i)\\b(%(isopen|found|notfound|rowcount)|commit|rollback|sqlerrm)\\b", "name": "support.function.oracle" }, { "match": "(?i)\\b(sql|sqlcode)\\b", "name": "variable.language.oracle" }, { "match": "(?i)\\b(ascii|asciistr|chr|compose|concat|convert|decompose|dump|initcap|instr|instrb|instrc|instr2|instr4|unistr|length|lengthb|lengthc|length2|length4|lower|lpad|ltrim|nchr|replace|rpad|rtrim|soundex|substr|translate|trim|upper|vsize)\\b", "name": "support.function.builtin.char.oracle" }, { "match": "(?i)\\b(add_months|current_date|current_timestamp|dbtimezone|last_day|localtimestamp|months_between|new_time|next_day|round|sessiontimezone|sysdate|tz_offset|systimestamp)\\b", "name": "support.function.builtin.date.oracle" }, { "match": "(?i)\\b(avg|count|sum|max|min|median|corr|corr_\\w+|covar_(pop|samp)|cume_dist|dense_rank|first|group_id|grouping|grouping_id|last|percentile_cont|percentile_disc|percent_rank|rank|regr_\\w+|row_number|stats_binomial_test|stats_crosstab|stats_f_test|stats_ks_test|stats_mode|stats_mw_test|stats_one_way_anova|stats_t_test_\\w+|stats_wsr_test|stddev|stddev_pop|stddev_samp|var_pop|var_samp|variance)\\b", "name": "support.function.builtin.aggregate.oracle" }, { "match": "(?i)\\b(bfilename|cardinality|coalesce|decode|empty_(blob|clob)|lag|lead|listagg|lnnvl|nanvl|nullif|nvl|nvl2|sys_(context|guid|typeid|connect_by_path|extract_utc)|uid|(current\\s+)?user|userenv|cardinality|(bulk\\s+)?collect|powermultiset(_by_cardinality)?|ora_hash|standard_hash|execute\\s+immediate|alter\\s+session)\\b", "name": "support.function.builtin.advanced.oracle" }, { "match": "(?i)\\b(bin_to_num|cast|chartorowid|from_tz|hextoraw|numtodsinterval|numtoyminterval|rawtohex|rawtonhex|to_char|to_clob|to_date|to_dsinterval|to_lob|to_multi_byte|to_nclob|to_number|to_single_byte|to_timestamp|to_timestamp_tz|to_yminterval|scn_to_timestamp|timestamp_to_scn|rowidtochar|rowidtonchar|to_binary_double|to_binary_float|to_blob|to_nchar|con_dbid_to_id|con_guid_to_id|con_name_to_id|con_uid_to_id)\\b", "name": "support.function.builtin.convert.oracle" }, { "match": "(?i)\\b(abs|acos|asin|atan|atan2|bit_(and|or|xor)|ceil|cos|cosh|exp|extract|floor|greatest|least|ln|log|mod|power|remainder|round|sign|sin|sinh|sqr
var plsql = [
lang
];
export { plsql as default };