diff --git a/gf_fmt.json b/gf_fmt.json index 95de135..ff6124a 100644 --- a/gf_fmt.json +++ b/gf_fmt.json @@ -10,6 +10,7 @@ "review/", "app/", "web-search/", + "highlight/", "tests/" ], "exclude": [ diff --git a/gfproject.json b/gfproject.json index e44a097..c8e080f 100644 --- a/gfproject.json +++ b/gfproject.json @@ -49,6 +49,11 @@ "agent", "code" ], "mode": "r7rs" + }, + "highlight": { + "root": "highlight/", + "depends-on": [], + "mode": "r7rs" } }, "tools": { diff --git a/highlight/liii/highlight/code-block.scm b/highlight/liii/highlight/code-block.scm new file mode 100644 index 0000000..6e099f4 --- /dev/null +++ b/highlight/liii/highlight/code-block.scm @@ -0,0 +1,197 @@ +;; +;; Copyright (C) 2026 The Goldfish Scheme Authors +;; +;; Licensed under the Apache License, Version 2.0 (the "License"); +;; you may not use this file except in compliance with the License. +;; You may obtain a copy of the License at +;; +;; http://www.apache.org/licenses/LICENSE-2.0 +;; +;; Unless required by applicable law or agreed to in writing, software +;; distributed under the License is distributed on an "AS IS" BASIS, WITHOUT +;; WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the +;; License for the specific language governing permissions and limitations +;; under the License. +;; + +;; Markdown 围栏代码块的纯解析与语言解析工具,以及 IncludeRules 的子定义缓存。 +;; 这些函数不触及高亮状态机与上下文栈,从 (liii highlight highlighter) 拆出, +;; 使主模块控制在 gfcheck 单文件行数上限内。 + +(define-library (liii highlight code-block) + (import (scheme base) + (scheme char) + (liii base) + (liii string) + (liii hash-table) + (liii highlight definition) + ) ;import + (export %extract-first-word %normalize-code-lang %resolve-sub-definition + %rest-all-spaces? %code-block-close-line? %code-block-open-info + %parse-code-block-open fenced-code-frame? + ) ;export + (begin + + (define *embedded-def-cache* (make-hash-table)) + + (define (%extract-first-word str) + (let ((len (string-length str))) + (let loop + ((i 0)) + (cond ((= i len) "") + ((char-whitespace? (string-ref str i)) (loop (+ i 1))) + (else + (let wloop + ((j i)) + (if (or (= j len) (char-whitespace? (string-ref str j))) + (substring str i j) + (wloop (+ j 1)) + ) ;if + ) ;let + ) ;else + ) ;cond + ) ;let + ) ;let + ) ;define + + (define (%normalize-code-lang raw-lang) + (let* ((trimmed (string-trim-both raw-lang)) (lower (string-downcase trimmed))) + (cond ((or (string=? lower "scheme") (string=? lower "scm") (string=? lower "ss")) + "scheme" + ) ; + ((or (string=? lower "c") (string=? lower "h")) "c") + ((or (string=? lower "cpp") + (string=? lower "c++") + (string=? lower "cxx") + (string=? lower "cc") + (string=? lower "hpp") + (string=? lower "hxx") + (string=? lower "hh") + ) ;or + "cpp" + ) ; + ((string=? lower "json") "json") + ((string=? lower "lua") "lua") + ((or (string=? lower "markdown") (string=? lower "md")) "markdown") + ((or (string=? lower "javascript") + (string=? lower "js") + (string=? lower "mjs") + (string=? lower "cjs") + (string=? lower "node") + ) ;or + "javascript" + ) ; + ((or (string=? lower "bash") + (string=? lower "sh") + (string=? lower "shell") + (string=? lower "zsh") + ) ;or + "bash" + ) ; + ((string-null? lower) #f) + (else lower) + ) ;cond + ) ;let* + ) ;define + + (define (%resolve-sub-definition lang-name) + (if (or (not (string? lang-name)) (string-null? lang-name)) + #f + (let ((norm (%normalize-code-lang lang-name))) + (if (not norm) + #f + (if (hash-table-contains? *embedded-def-cache* norm) + (hash-table-ref *embedded-def-cache* norm) + (guard (err (else (hash-table-set! *embedded-def-cache* norm #f) #f)) + (let ((d (load-syntax-definition norm))) + (hash-table-set! *embedded-def-cache* norm d) + d + ) ;let + ) ;guard + ) ;if + ) ;if + ) ;let + ) ;if + ) ;define + + (define (%rest-all-spaces? text k len) + (let loop + ((i k)) + (cond ((= i len) #t) + ((let ((c (string-ref text i))) + (or (char=? c #\space) (char=? c #\tab)) + ) ;let + (loop (+ i 1)) + ) ; + (else #f) + ) ;cond + ) ;let + ) ;define + + (define (%code-block-close-line? text fence-char fence-len) + (let ((len (string-length text))) + (let loop + ((i 0) (spaces 0)) + (cond + ((and (< i len) (char=? (string-ref text i) #\space) (< spaces 3)) + (loop (+ i 1) (+ spaces 1)) + ) ; + ((>= i len) #f) + ((char=? (string-ref text i) fence-char) + (let count-loop + ((j i) (cnt 0)) + (if (and (< j len) (char=? (string-ref text j) fence-char)) + (count-loop (+ j 1) (+ cnt 1)) + (and (>= cnt fence-len) (%rest-all-spaces? text j len)) + ) ;if + ) ;let + ) ; + (else #f) + ) ;cond + ) ;let + ) ;let + ) ;define + + (define (%code-block-open-info text j len ch cnt) + (let ((info (substring text j len))) + (if (and (char=? ch #\`) (string-index info #\`)) + #f + (list ch cnt (%extract-first-word info)) + ) ;if + ) ;let + ) ;define + + (define (%parse-code-block-open text) + (let ((len (string-length text))) + (let loop + ((i 0) (spaces 0)) + (cond + ((and (< i len) (char=? (string-ref text i) #\space) (< spaces 3)) + (loop (+ i 1) (+ spaces 1)) + ) ; + ((>= i len) #f) + (else + (let ((ch (string-ref text i))) + (if (or (char=? ch #\`) (char=? ch #\~)) + (let count-loop + ((j i) (cnt 0)) + (if (and (< j len) (char=? (string-ref text j) ch)) + (count-loop (+ j 1) (+ cnt 1)) + (if (< cnt 3) #f (%code-block-open-info text j len ch cnt)) + ) ;if + ) ;let + #f + ) ;if + ) ;let + ) ;else + ) ;cond + ) ;let + ) ;let + ) ;define + + (define (fenced-code-frame? frame) + (and (pair? frame) (eq? (car frame) 'fenced-code)) + ) ;define + + ) ;begin +) ;define-library diff --git a/highlight/liii/highlight/context-stack.scm b/highlight/liii/highlight/context-stack.scm new file mode 100644 index 0000000..77f6f78 --- /dev/null +++ b/highlight/liii/highlight/context-stack.scm @@ -0,0 +1,135 @@ +;; +;; Copyright (C) 2026 The Goldfish Scheme Authors +;; +;; Licensed under the Apache License, Version 2.0 (the "License"); +;; you may not use this file except in compliance with the License. +;; You may obtain a copy of the License at +;; +;; http://www.apache.org/licenses/LICENSE-2.0 +;; +;; Unless required by applicable law or agreed to in writing, software +;; distributed under the License is distributed on an "AS IS" BASIS, WITHOUT +;; WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the +;; License for the specific language governing permissions and limitations +;; under the License. +;; + +;; 高亮上下文栈切换与栈顶查询工具。 +;; 这些函数只操作纯上下文名栈与 include 帧,不构造/读取高亮状态机记录, +;; 从 (liii highlight highlighter) 拆出,使主模块控制在行数上限内。 + +(define-library (liii highlight context-stack) + (import (scheme base) (liii base) (liii highlight definition)) + (export apply-context-switch apply-context-switch-simple + apply-context-switch-host %include-frame? %top-context + ) ;export + (begin + + ;; 执行上下文切换 + ;; ctx-target: '(stay) | '(push "Name") | '(pop N) | '(pop N "Target") + ;; stack: 顶层可能是普通字符串上下文名,也可能是 include 帧 + ;; (include ) + (define (apply-context-switch stack target def) + (cond + ((and (pair? stack) (pair? (car stack)) (eq? (caar stack) 'include)) + ;; 顶层在 include 帧内:对 inner-stack 应用切换 + (let* ((frame (car stack)) + (sub-def (cadr frame)) + (inner (caddr frame)) + (new-inner (apply-context-switch-inner inner target sub-def)) + ) ; + (if (null? new-inner) + ;; inner 栈弹空:丢弃 include 帧,回到外层 + (if (null? (cdr stack)) + (list (definition-initial-context-name def)) + (cdr stack) + ) ;if + (cons (list 'include sub-def new-inner (cadddr frame) (car (cddddr frame))) + (cdr stack) + ) ;cons + ) ;if + ) ;let* + ) ; + (else (apply-context-switch-simple stack target def)) + ) ;cond + ) ;define + + ;; 对普通(纯上下文名字符串)栈应用切换 + (define (apply-context-switch-simple stack target def) + (case (car target) + ((stay) stack) + ((push) (cons (cadr target) stack)) + ((pop) + (let* ((count (cadr target)) + (target-name (if (> (length target) 2) (caddr target) #f)) + ;; 弹出 count 个,但保证至少保留底层的初始上下文 + (popped + (let loop + ((s stack) (n count)) + (if (or (<= n 0) (null? (cdr s))) s (loop (cdr s) (- n 1))) + ) ;let + ) ;popped + ) ; + (if target-name (cons target-name popped) popped) + ) ;let* + ) ; + (else stack) + ) ;case + ) ;define + + ;; 对 include 帧内部的 inner-stack 应用切换(inner-stack 全是字符串) + (define (apply-context-switch-inner inner target sub-def) + (case (car target) + ((stay) inner) + ((push) (cons (cadr target) inner)) + ((pop) + (let* ((count (cadr target)) + (target-name (if (> (length target) 2) (caddr target) #f)) + (popped + (let loop + ((s inner) (n count)) + (if (or (<= n 0) (null? s)) s (loop (cdr s) (- n 1))) + ) ;let + ) ;popped + ) ; + (if (and target-name (not (null? popped))) (cons target-name popped) popped) + ) ;let* + ) ; + (else inner) + ) ;case + ) ;define + + ;; 宿主规则命中时使用:宿主规则在 include 帧内命中意味着要离开子语言, + ;; 因此始终丢弃 include 帧,对外层栈应用切换。 + (define (apply-context-switch-host stack target def) + (let* ((frame? (and (pair? stack) (pair? (car stack)) (eq? (caar stack) 'include))) + (outer (if frame? (cdr stack) stack)) + (new-outer (apply-context-switch-simple outer target def)) + ) ; + (if (null? new-outer) (list (definition-initial-context-name def)) new-outer) + ) ;let* + ) ;define + + (define (%include-frame? x) + (and (pair? x) (eq? (car x) 'include)) + ) ;define + + ;; 取栈顶上下文与对应 def(处理 include 帧) + ;; 返回 (values cur-ctx effective-def) + (define (%top-context stack def) + (let ((top (car stack))) + (if (%include-frame? top) + (let* ((sub-def (cadr top)) + (inner (caddr top)) + (inner-top (if (null? inner) #f (car inner))) + (inner-ctx (if inner-top (definition-find-context sub-def inner-top) #f)) + ) ; + (values inner-ctx sub-def) + ) ;let* + (values (definition-find-context def top) def) + ) ;if + ) ;let + ) ;define + + ) ;begin +) ;define-library diff --git a/highlight/liii/highlight/definition.scm b/highlight/liii/highlight/definition.scm new file mode 100644 index 0000000..3c8c6c8 --- /dev/null +++ b/highlight/liii/highlight/definition.scm @@ -0,0 +1,425 @@ +;; +;; Copyright (C) 2026 The Goldfish Scheme Authors +;; +;; Licensed under the Apache License, Version 2.0 (the "License"); +;; you may not use this file except in compliance with the License. +;; You may obtain a copy of the License at +;; +;; http://www.apache.org/licenses/LICENSE-2.0 +;; +;; Unless required by applicable law or agreed to in writing, software +;; distributed under the License is distributed on an "AS IS" BASIS, WITHOUT +;; WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the +;; License for the specific language governing permissions and limitations +;; under the License. +;; + +(define-library (liii highlight definition) + (import (scheme base) + (scheme char) + (scheme file) + (liii base) + (liii list) + (liii json) + (liii hash-table) + (liii path) + (liii string) + (liii sys) + (liii highlight rule) + ) ;import + (export make-context-def context-def? context-def-name context-def-attribute + context-def-line-end-context context-def-fallthrough-context + context-def-rules make-definition definition? definition-name + definition-extensions definition-contexts definition-item-datas + definition-initial-context-name definition-find-context + definition-item-data-def-style parse-definition-json load-syntax-definition + load-definition-for-file + ) ;export + (begin + + ;; 单个上下文 record + (define*-record-type + (make-context-def name + (attribute "Normal") + (line-end-context '(stay)) + (fallthrough-context #f) + (rules '()) + ) ;make-context-def + context-def? + (name context-def-name) + (attribute context-def-attribute) + (line-end-context context-def-line-end-context) + (fallthrough-context context-def-fallthrough-context) + (rules context-def-rules) + ) ;define*-record-type + + ;; 完整语法定义 record + ;; contexts: alist (("ContextName" . ) ...) + ;; item-datas: alist (("ItemName" . defStyleName) ...) + (define*-record-type + (make-definition name + (extensions '()) + (initial-context-name "Level0") + (contexts '()) + (item-datas '()) + ) ;make-definition + definition? + (name definition-name) + (extensions definition-extensions) + (initial-context-name definition-initial-context-name) + (contexts definition-contexts) + (item-datas definition-item-datas) + ) ;define*-record-type + + (define (definition-find-context def name) + (let ((p (assoc name (definition-contexts def)))) + (if p (cdr p) #f) + ) ;let + ) ;define + + (define (definition-item-data-def-style def item-name) + (let ((p (assoc item-name (definition-item-datas def)))) + (if p (cdr p) item-name) + ) ;let + ) ;define + + ;; 从单个 JSON rule 对象解析为 + (define (parse-rule-json obj kw-lists) + (let* ((type-str (json-ref-string obj "type" "unknown")) + (attr (json-ref-string obj "attribute" "Normal")) + (ctx-str (json-ref-string obj "context" "#stay")) + (ctx (parse-context-switch ctx-str)) + (look-ahead (json-ref-boolean obj "look-ahead" #f)) + (first-non-space (json-ref-boolean obj "first-non-space" #f)) + (col (json-ref-integer obj "column" -1)) + ) ; + (cond + ((string=? type-str "DetectChar") + (let ((c-str (json-ref-string obj "char" ""))) + (make-rule 'detect-char + attr + ctx + (if (string-null? c-str) #\nul (string-ref c-str 0)) + look-ahead + first-non-space + col + ) ;make-rule + ) ;let + ) ; + ((string=? type-str "Detect2Chars") + (let ((c1 (json-ref-string obj "char" "")) (c2 (json-ref-string obj "char1" ""))) + (make-rule 'detect-2chars + attr + ctx + (cons (if (string-null? c1) #\nul (string-ref c1 0)) + (if (string-null? c2) #\nul (string-ref c2 0)) + ) ;cons + look-ahead + first-non-space + col + ) ;make-rule + ) ;let + ) ; + ((string=? type-str "AnyChar") + (let ((s (json-ref-string obj "String" ""))) + (make-rule 'any-char attr ctx s look-ahead first-non-space col) + ) ;let + ) ; + ((string=? type-str "StringDetect") + (let ((s (json-ref-string obj "String" ""))) + (make-rule 'string-detect attr ctx s look-ahead first-non-space col) + ) ;let + ) ; + ((string=? type-str "WordDetect") + (let ((w (json-ref-string obj "String" "")) + (delims (json-ref-string obj "delimiters" #f)) + ) ; + (make-rule 'word-detect attr ctx (cons w delims) look-ahead first-non-space col) + ) ;let + ) ; + ((string=? type-str "keyword") + (let* ((list-name (json-ref-string obj "String" "")) + (delims (json-ref-string obj "delimiters" #f)) + (kw-set + (let ((p (assoc list-name kw-lists))) + (if p (cdr p) '()) + ) ;let + ) ;kw-set + ) ; + (make-rule 'keyword + attr + ctx + (cons kw-set delims) + look-ahead + first-non-space + col + ) ;make-rule + ) ;let* + ) ; + ((string=? type-str "Int") + (let ((delims (json-ref-string obj "delimiters" #f))) + (make-rule 'int attr ctx delims look-ahead first-non-space col) + ) ;let + ) ; + ((string=? type-str "Float") + (make-rule 'float attr ctx #f look-ahead first-non-space col) + ) ; + ((string=? type-str "Decimal") + (make-rule 'decimal attr ctx #f look-ahead first-non-space col) + ) ; + ((or (string=? type-str "Hex") (string=? type-str "HlCHex")) + (make-rule 'hex attr ctx #f look-ahead first-non-space col) + ) ; + ((string=? type-str "JsonEscapeChar") + (make-rule 'json-escape-char attr ctx #f look-ahead first-non-space col) + ) ; + ((string=? type-str "JsonEscapeError") + (make-rule 'json-escape-error attr ctx #f look-ahead first-non-space col) + ) ; + ((string=? type-str "RegExpr") + (let ((pat (json-ref-string obj "String" ""))) + (cond ((string-contains? pat "\\.") + (make-rule 'float attr ctx #f look-ahead first-non-space col) + ) ; + ((string-contains? pat "0\\b|[1-9]") + (make-rule 'decimal attr ctx #f look-ahead first-non-space col) + ) ; + ((string-contains? pat "bfnrt") + (make-rule 'json-escape-char attr ctx #f look-ahead first-non-space col) + ) ; + ((string-contains? pat "u[0-9a-fA-F]+") + (make-rule 'json-escape-error attr ctx #f look-ahead first-non-space col) + ) ; + (else #f) + ) ;cond + ) ;let + ) ; + ((string=? type-str "DetectSpaces") + (make-rule 'detect-spaces attr ctx #t look-ahead first-non-space col) + ) ; + ((string=? type-str "DetectIdentifier") + (let ((delims (json-ref-string obj "delimiters" #f))) + (make-rule 'detect-identifier attr ctx delims look-ahead first-non-space col) + ) ;let + ) ; + ((string=? type-str "IncludeRules") + (let* ((ctx-ref (json-ref-string obj "context-ref" "")) + (lang-name (if (string-starts? ctx-ref "##") + (substring ctx-ref 2) + (if (string-starts? ctx-ref "#") #f ctx-ref) + ) ;if + ) ;lang-name + ) ; + (if (not lang-name) + #f + (make-rule 'include-rules attr ctx lang-name look-ahead first-non-space col) + ) ;if + ) ;let* + ) ; + ((string=? type-str "CharsetRun") + (let ((chars (json-ref-string obj "String" "")) + (min-cnt (json-ref-integer obj "min" 1)) + ) ; + (make-rule 'charset-run + attr + ctx + (cons chars min-cnt) + look-ahead + first-non-space + col + ) ;make-rule + ) ;let + ) ; + (else #f) + ) ;cond + ) ;let* + ) ;define + + (define (parse-kw-list-item raw-lists k) + (let* ((raw-arr (json-ref raw-lists k)) + (arr (cond ((vector? raw-arr) (vector->list raw-arr)) + ((list? raw-arr) raw-arr) + (else '()) + ) ;cond + ) ;arr + (ht (make-hash-table)) + ) ; + (for-each (lambda (item) (hash-table-set! ht item #t)) arr) + (cons k ht) + ) ;let* + ) ;define + + (define (parse-kw-lists raw-lists) + (if (json-object? raw-lists) + (map (lambda (k) (parse-kw-list-item raw-lists k)) (json-keys raw-lists)) + '() + ) ;if + ) ;define + + (define (parse-context-rules c-obj kw-lists) + (let* ((rr (json-ref c-obj "rules")) + (raw-rules (cond ((vector? rr) (vector->list rr)) ((list? rr) rr) (else '()))) + ) ; + (filter (lambda (r) r) + (map (lambda (ro) (parse-rule-json ro kw-lists)) raw-rules) + ) ;filter + ) ;let* + ) ;define + + (define (parse-context-def-entry ctx-name raw-contexts kw-lists) + (let* ((c-obj (json-ref raw-contexts ctx-name)) + (attr (json-ref-string c-obj "attribute" "Normal")) + (line-end (parse-context-switch (json-ref-string c-obj "line-end-context" "#stay")) + ) ;line-end + (ft-str (json-ref-string c-obj "fallthrough-context" #f)) + (fallthrough (and ft-str (parse-context-switch ft-str))) + (rules (parse-context-rules c-obj kw-lists)) + ) ; + (cons ctx-name (make-context-def ctx-name attr line-end fallthrough rules)) + ) ;let* + ) ;define + + ;; 从 JSON 对象解析整套语法定义 + (define (parse-definition-json root) + (let* ((name (json-ref-string root "name" "Unnamed")) + (raw-exts (json-ref root "extensions")) + (exts (cond ((vector? raw-exts) (vector->list raw-exts)) + ((list? raw-exts) raw-exts) + (else '()) + ) ;cond + ) ;exts + (init-ctx (json-ref-string root "initial-context" "Level0")) + (kw-lists (parse-kw-lists (json-ref root "lists"))) + ;; 解析 item-datas: {"Normal": "Normal", "Keyword": "Keyword"} + (raw-items (json-ref root "item-datas")) + (item-datas + (if (json-object? raw-items) + (map (lambda (k) (cons k (json-ref-string raw-items k "Normal"))) + (json-keys raw-items) + ) ;map + '() + ) ;if + ) ;item-datas + ;; 解析 contexts + (raw-contexts (json-ref root "contexts")) + (contexts + (if (json-object? raw-contexts) + (map (lambda (ctx-name) (parse-context-def-entry ctx-name raw-contexts kw-lists)) + (json-keys raw-contexts) + ) ;map + '() + ) ;if + ) ;contexts + ) ; + (make-definition name exts init-ctx contexts item-datas) + ) ;let* + ) ;define + + ;; 资源目录定位:本文件位于 /liii/highlight/definition.scm, + ;; 资源目录为 /resources/syntax。库加载时用 (liii sys) 的 + ;; library-file 捕获自身源文件的绝对路径并缓存,运行期不受 cwd + ;; 变化影响;不直接依赖 goldfish 私有 glue。 + (define %syntax-resource-dir + (let ((self (library-file))) + (and self + (path->string + (path-join + (path-parent (path-parent (path-parent (path self)))) + "resources" + "syntax" + ) ;path-join + ) ;path->string + ) ;and + ) ;let + ) ;define + + ;; 候选资源目录:优先用加载期缓存的绝对路径, + ;; 未命中时退回 cwd 相对探测。 + (define (syntax-dir-candidates) + (append (if %syntax-resource-dir (list %syntax-resource-dir) '()) + (list "highlight/resources/syntax" "../highlight/resources/syntax" + "../../highlight/resources/syntax" "resources/syntax" + ) ;list + ) ;append + ) ;define + + ;; 定位 highlight/resources/syntax/.json 路径 + (define (find-syntax-file name) + (let ((name-lower (string-downcase name))) + (let loop + ((dirs (syntax-dir-candidates))) + (if (null? dirs) + #f + (let ((cand + (path->string (path-join (path (car dirs)) (string-append name-lower ".json"))) + ) ;cand + ) ; + (if (path-exists? cand) cand (loop (cdr dirs))) + ) ;let + ) ;if + ) ;let + ) ;let + ) ;define + ;; 列出 highlight/resources/syntax 目录下的所有语法定义文件 + (define (glob-syntax-dir) + (let loop + ((dirs (syntax-dir-candidates))) + (if (null? dirs) + '() + (if (path-dir? (car dirs)) (path-glob (car dirs) "*.json") (loop (cdr dirs))) + ) ;if + ) ;let + ) ;define + + ;; 根据语言标识(如 "c", "cpp", "json", "scheme")从 JSON 文件加载语法定义 + (define (load-syntax-definition name) + (let ((filepath (find-syntax-file name))) + (if filepath + (let* ((text (path-read-text filepath)) (obj (string->json text))) + (parse-definition-json obj) + ) ;let* + (error "Syntax definition not found for language: " name) + ) ;if + ) ;let + ) ;define + + (define (%match-extension? filename pat) + (if (string-starts? pat "*.") + (string-ends? filename (substring pat 1)) + (string=? filename pat) + ) ;if + ) ;define + + (define (%definition-matches-file? def filename) + (let ((exts + (cond ((vector? (definition-extensions def)) + (vector->list (definition-extensions def)) + ) ; + ((list? (definition-extensions def)) (definition-extensions def)) + (else '()) + ) ;cond + ) ;exts + ) ; + (any (lambda (p) (%match-extension? filename p)) exts) + ) ;let + ) ;define + + ;; 根据文件名(如 "main.c", "foo.cpp", "test.json")自动查找并加载匹配的语法定义 + (define (load-definition-for-file filename) + (let loop + ((files (glob-syntax-dir))) + (if (null? files) + #f + (let* ((p (path->string (car files))) + (text (path-read-text p)) + (obj (string->json text)) + (def (parse-definition-json obj)) + ) ; + (if (%definition-matches-file? def filename) def (loop (cdr files))) + ) ;let* + ) ;if + ) ;let + ) ;define + + ) ;begin +) ;define-library diff --git a/highlight/liii/highlight/highlighter.scm b/highlight/liii/highlight/highlighter.scm new file mode 100644 index 0000000..c9855eb --- /dev/null +++ b/highlight/liii/highlight/highlighter.scm @@ -0,0 +1,398 @@ +;; +;; Copyright (C) 2026 The Goldfish Scheme Authors +;; +;; Licensed under the Apache License, Version 2.0 (the "License"); +;; you may not use this file except in compliance with the License. +;; You may obtain a copy of the License at +;; +;; http://www.apache.org/licenses/LICENSE-2.0 +;; +;; Unless required by applicable law or agreed to in writing, software +;; distributed under the License is distributed on an "AS IS" BASIS, WITHOUT +;; WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the +;; License for the specific language governing permissions and limitations +;; under the License. +;; + +;; 高亮状态机、扫描循环与公开入口 highlight-line / highlight-text。 +;; 上下文栈切换见 (liii highlight context-stack),围栏代码块解析见 +;; (liii highlight code-block)。 + +(define-library (liii highlight highlighter) + (import (scheme base) + (scheme char) + (liii base) + (liii list) + (liii string) + (liii hash-table) + (liii highlight rule) + (liii highlight rule-matcher) + (liii highlight definition) + (liii highlight theme) + (liii highlight context-stack) + (liii highlight code-block) + ) ;import + (export make-highlight-state highlight-state? highlight-state-stack + initial-highlight-state highlight-line highlight-text + ) ;export + (begin + + ;; 高亮引擎跨行状态 record + ;; stack: 上下文名称列表(栈顶在 car),例如 '("string" "Level0") + (define*-record-type + (make-highlight-state (stack '("Level0"))) + highlight-state? + (stack highlight-state-stack) + ) ;define*-record-type + + (define (initial-highlight-state def) + (make-highlight-state (list (definition-initial-context-name def))) + ) ;define + + (define (first-non-space-index text) + (let ((len (string-length text))) + (let loop + ((i 0)) + (cond ((= i len) len) + ((not (char-whitespace? (string-ref text i))) i) + (else (loop (+ i 1))) + ) ;cond + ) ;let + ) ;let + ) ;define + + (define (%span-attr attr cur-def) + (definition-item-data-def-style cur-def attr) + ) ;define + + (define (handle-rule-match r res text offset stack spans cur-ctx cur-def loop) + (let* ((new-offset (match-result-new-offset res)) + (len (- new-offset offset)) + (target (rule-context-target r)) + ) ; + (cond + ((eq? (rule-type r) 'include-rules) + ;; IncludeRules:零宽匹配,不消耗文本,切换到子语言 + (let* ((lang-name (rule-data r)) (sub-def (%resolve-sub-definition lang-name))) + (if (not sub-def) + ;; 找不到子定义:当作不匹配,前进 1 字符避免死循环 + (loop (+ offset 1) + stack + (cons (list offset 1 (rule-attribute r) cur-def) spans) + ) ;loop + (let* ((init-ctx (definition-initial-context-name sub-def)) + ;; 帧:(include sub-def inner-stack host-ctx host-def) + (frame (list 'include sub-def (list init-ctx) (context-def-name cur-ctx) cur-def) + ) ;frame + ) ; + ;; 不前进 offset,不产生 span,仅压入 include 帧 + (loop offset (cons frame stack) spans) + ) ;let* + ) ;if + ) ;let* + ) ; + (else + (let ((next-stack (apply-context-switch stack target cur-def))) + (if (rule-look-ahead? r) + ;; lookAhead 规则:不前进 offset,只切换上下文 + (loop offset next-stack spans) + ;; 正常规则:前进 offset 并记录 span + (loop new-offset + next-stack + (cons (list offset len (rule-attribute r) cur-def) spans) + ) ;loop + ) ;if + ) ;let + ) ;else + ) ;cond + ) ;let* + ) ;define + + (define (handle-no-rule-match cur-ctx offset stack spans cur-def loop) + ;; 没有规则匹配:检查是否有 fallthrough-context + (if (context-def-fallthrough-context cur-ctx) + (let ((next-stack (apply-context-switch stack (context-def-fallthrough-context cur-ctx) cur-def) + ) ;next-stack + ) ; + (loop offset next-stack spans) + ) ;let + ;; 消耗 1 个字符作为当前上下文的默认 attribute + (loop (+ offset 1) + stack + (cons (list offset 1 (context-def-attribute cur-ctx) cur-def) spans) + ) ;loop + ) ;if + ) ;define + + (define (scan-rules rules cur-ctx text offset text-len first-non-space stack + spans cur-def loop + ) ;scan-rules + (if (null? rules) + (handle-no-rule-match cur-ctx offset stack spans cur-def loop) + (let* ((r (car rules)) (res (match-rule r text offset text-len first-non-space))) + (if (match-result-matched? res) + (handle-rule-match r res text offset stack spans cur-ctx cur-def loop) + ;; 未匹配,试下一条 + (scan-rules (cdr rules) + cur-ctx + text + offset + text-len + first-non-space + stack + spans + cur-def + loop + ) ;scan-rules + ) ;if + ) ;let* + ) ;if + ) ;define + + (define (%highlight-code-content text stack lang-name sub-state fence-char fence-len) + (let ((sub-def (and lang-name sub-state (%resolve-sub-definition lang-name)))) + (if sub-def + (let-values (((sub-spans next-sub-state) (highlight-line text sub-state sub-def))) + (let* ((new-frame (list 'fenced-code fence-char fence-len lang-name next-sub-state)) + (new-stack (cons new-frame (cdr stack))) + ) ; + (values sub-spans (make-highlight-state new-stack)) + ) ;let* + ) ;let-values + (let ((spans + (if (= (string-length text) 0) '() (list (list 0 (string-length text) "Code"))) + ) ;spans + ) ; + (values spans (make-highlight-state stack)) + ) ;let + ) ;if + ) ;let + ) ;define + + (define (highlight-line-in-code-block text stack def) + (let* ((frame (car stack)) + (fence-char (cadr frame)) + (fence-len (caddr frame)) + (lang-name (cadddr frame)) + (sub-state (car (cddddr frame))) + ) ; + (if (%code-block-close-line? text fence-char fence-len) + (let ((next-stack (if (null? (cdr stack)) + (list (definition-initial-context-name def)) + (cdr stack) + ) ;if + ) ;next-stack + ) ; + (values (list (list 0 (string-length text) "Fenced Code")) + (make-highlight-state next-stack) + ) ;values + ) ;let + (%highlight-code-content text stack lang-name sub-state fence-char fence-len) + ) ;if + ) ;let* + ) ;define + + ;; 合并扫描:在 include 帧内,先试宿主上下文规则(用于检测闭合标签), + ;; 不中再试子定义当前上下文规则。这样宿主的 等规则可随时跳出嵌入。 + ;; frame: (include sub-def inner-stack host-ctx-name host-def) + (define (scan-include text offset text-len first-non-space frame stack spans loop) + (let* ((sub-def (cadr frame)) + (inner (caddr frame)) + (inner-top (if (null? inner) #f (car inner))) + (sub-ctx (if inner-top (definition-find-context sub-def inner-top) #f)) + (host-ctx-name (cadddr frame)) + (host-def (car (cddddr frame))) + (host-ctx (definition-find-context host-def host-ctx-name)) + (host-rules (if host-ctx (context-def-rules host-ctx) '())) + (sub-rules (if sub-ctx (context-def-rules sub-ctx) '())) + ) ; + ;; 先试宿主规则 + (let try-host + ((rs host-rules)) + (if (null? rs) + ;; 宿主规则不匹配,试子规则 + (let try-sub + ((rs2 sub-rules)) + (if (null? rs2) + ;; 都不匹配:按子上下文默认 attribute 消耗 1 字符 + (loop (+ offset 1) + stack + (cons (list offset 1 (if sub-ctx (context-def-attribute sub-ctx) "Normal") sub-def) + spans + ) ;cons + ) ;loop + (let* ((r (car rs2)) (res (match-rule r text offset text-len first-non-space))) + (if (match-result-matched? res) + (handle-rule-match r res text offset stack spans sub-ctx sub-def loop) + (try-sub (cdr rs2)) + ) ;if + ) ;let* + ) ;if + ) ;let + (let* ((r (car rs)) + (res (if (eq? (rule-type r) 'include-rules) + #f + (match-rule r text offset text-len first-non-space) + ) ;if + ) ;res + ) ; + (if (and res (match-result-matched? res)) + ;; 宿主规则命中:用宿主 def 处理切换(作用于 include 帧之外) + (let* ((new-offset (match-result-new-offset res)) + (len (- new-offset offset)) + (target (rule-context-target r)) + (next-stack (apply-context-switch-host stack target host-def)) + ) ; + (if (rule-look-ahead? r) + (loop offset next-stack spans) + (loop new-offset + next-stack + (cons (list offset len (rule-attribute r) host-def) spans) + ) ;loop + ) ;if + ) ;let* + (try-host (cdr rs)) + ) ;if + ) ;let* + ) ;if + ) ;let + ) ;let* + ) ;define + + (define (%scan-line text text-len first-non-space stack def) + (let loop + ((offset 0) (stack stack) (spans '())) + (if (>= offset text-len) + ;; 行尾:对栈顶上下文应用 line-end-context + (let*-values (((cur-ctx cur-def) (%top-context stack def))) + (let ((line-end-switch (if cur-ctx (context-def-line-end-context cur-ctx) '(stay)))) + (let ((final-stack (apply-context-switch stack line-end-switch def))) + (values (reverse spans) (make-highlight-state final-stack)) + ) ;let + ) ;let + ) ;let*-values + (let ((top (car stack))) + (cond ((%include-frame? top) + (scan-include text offset text-len first-non-space top stack spans loop) + ) ; + (else + (let*-values (((cur-ctx cur-def) (%top-context stack def))) + (if (not cur-ctx) + (loop (+ offset 1) stack (cons (list offset 1 "Normal") spans)) + (scan-rules (context-def-rules cur-ctx) + cur-ctx + text + offset + text-len + first-non-space + stack + spans + cur-def + loop + ) ;scan-rules + ) ;if + ) ;let*-values + ) ;else + ) ;cond + ) ;let + ) ;if + ) ;let + ) ;define + + (define (%highlight-line-normal text stack def) + (let* ((text-len (string-length text)) (first-non-space (first-non-space-index text))) + (if (= text-len 0) + (let*-values (((cur-ctx cur-def) (%top-context stack def))) + (let ((line-end-switch (if cur-ctx (context-def-line-end-context cur-ctx) '(stay)))) + (let ((next-stack (apply-context-switch stack line-end-switch def))) + (values '() (make-highlight-state next-stack)) + ) ;let + ) ;let + ) ;let*-values + (%scan-line text text-len first-non-space stack def) + ) ;if + ) ;let* + ) ;define + + (define (%open-code-block text open-info stack) + (let* ((fence-char (car open-info)) + (fence-len (cadr open-info)) + (raw-lang (caddr open-info)) + (norm-lang (%normalize-code-lang raw-lang)) + (sub-def (%resolve-sub-definition norm-lang)) + (sub-state (and sub-def (initial-highlight-state sub-def))) + (frame (list 'fenced-code fence-char fence-len norm-lang sub-state)) + (next-stack (cons frame stack)) + (spans + (if (= (string-length text) 0) + '() + (list (list 0 (string-length text) "Fenced Code")) + ) ;if + ) ;spans + ) ; + (values spans (make-highlight-state next-stack)) + ) ;let* + ) ;define + + ;; 高亮单行 + ;; 输入:text (string), state (), def () + ;; 返回:(values spans next-state) + ;; spans 形式:'((offset length item-data-name) ...) + (define (highlight-line text state def) + (let ((stack (highlight-state-stack state))) + (cond + ((and (pair? stack) (fenced-code-frame? (car stack))) + (highlight-line-in-code-block text stack def) + ) ; + ((and (string=? (definition-name def) "Markdown") (%parse-code-block-open text)) + (%open-code-block text (%parse-code-block-open text) stack) + ) ; + (else (%highlight-line-normal text stack def)) + ) ;cond + ) ;let + ) ;define + + (define (line-end-offset text i start) + (if + (and (> i start) (char=? (string-ref text (- i 1)) #\return)) + (- i 1) + i + ) ;if + ) ;define + + ;; 拆分文本为行列表(保留换行前的内容,行尾不含 \r 或 \n) + (define (split-text-lines text) + (let ((len (string-length text))) + (let loop + ((i 0) (start 0) (lines '())) + (cond + ((= i len) (reverse (cons (substring text start len) lines))) + ((char=? (string-ref text i) #\newline) + (let ((end (line-end-offset text i start))) + (loop (+ i 1) (+ i 1) (cons (substring text start end) lines)) + ) ;let + ) ; + (else (loop (+ i 1) start lines)) + ) ;cond + ) ;let + ) ;let + ) ;define + + ;; 高亮整段多行文本 + ;; 返回:'(((span ...) . "line-text") ...) + (define (highlight-text text def) + (let ((lines (split-text-lines text)) (init-state (initial-highlight-state def))) + (let loop + ((ls lines) (state init-state) (acc '())) + (if (null? ls) + (reverse acc) + (let-values (((spans next-state) (highlight-line (car ls) state def))) + (loop (cdr ls) next-state (cons (cons spans (car ls)) acc)) + ) ;let-values + ) ;if + ) ;let + ) ;let + ) ;define + + ) ;begin +) ;define-library diff --git a/highlight/liii/highlight/rule-matcher.scm b/highlight/liii/highlight/rule-matcher.scm new file mode 100644 index 0000000..0250e5d --- /dev/null +++ b/highlight/liii/highlight/rule-matcher.scm @@ -0,0 +1,432 @@ +;; +;; Copyright (C) 2026 The Goldfish Scheme Authors +;; +;; Licensed under the Apache License, Version 2.0 (the "License"); +;; you may not use this file except in compliance with the License. +;; You may obtain a copy of the License at +;; +;; http://www.apache.org/licenses/LICENSE-2.0 +;; +;; Unless required by applicable law or agreed to in writing, software +;; distributed under the License is distributed on an "AS IS" BASIS, WITHOUT +;; WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the +;; License for the specific language governing permissions and limitations +;; under the License. +;; + +;; 各规则 do-match 实现与匹配结果 record。 +;; 从 (liii highlight rule) 拆出,使规则匹配逻辑与规则描述/分发分离, +;; 两者均控制在 gfcheck 单文件行数上限内。 + +(define-library (liii highlight rule-matcher) + (import (scheme base) (scheme char) (liii base) (liii string) (liii hash-table)) + (export make-match-result match-result? match-result-matched? + match-result-new-offset %no-match %matched %match-detect-char + %match-detect-2chars %match-any-char %match-string-detect %match-word-detect + %match-keyword %match-int %match-detect-spaces %match-detect-identifier + %match-charset-run %match-hex %match-json-exponent %match-json-number-suffix + %match-json-number %match-json-escape-char %match-json-escape-error + ) ;export + (begin + + ;; 匹配结果 record + (define*-record-type + (make-match-result (matched? #f) (new-offset 0)) + match-result? + (matched? match-result-matched?) + (new-offset match-result-new-offset) + ) ;define*-record-type + + (define (%no-match offset) + (make-match-result #f offset) + ) ;define + + (define (%matched new-offset) + (make-match-result #t new-offset) + ) ;define + + ;; 默认 Scheme/Kate 单词分隔符 + (define *default-delimiters* " \t\r\n()[]{}\",'`;\\") + + (define (delimiter? ch delims) + (let ((ds (or delims *default-delimiters*))) + (not (not (string-index ds ch))) + ) ;let + ) ;define + + ;; =================== 各规则 do-match 实现 =================== + + (define (%match-detect-char ch text offset text-len) + (if (and (< offset text-len) (char=? (string-ref text offset) ch)) + (%matched (+ offset 1)) + (%no-match offset) + ) ;if + ) ;define + + (define (%match-detect-2chars pair text offset text-len) + (if + (and (<= (+ offset 2) text-len) + (char=? (string-ref text offset) (car pair)) + (char=? (string-ref text (+ offset 1)) (cdr pair)) + ) ;and + (%matched (+ offset 2)) + (%no-match offset) + ) ;if + ) ;define + + (define (%match-any-char char-bag text offset text-len) + (if (and (< offset text-len) (string-index char-bag (string-ref text offset))) + (%matched (+ offset 1)) + (%no-match offset) + ) ;if + ) ;define + + (define (%match-string-detect pat text offset text-len) + (let ((plen (string-length pat))) + (if + (and (<= (+ offset plen) text-len) + (string=? (substring text offset (+ offset plen)) pat) + ) ;and + (%matched (+ offset plen)) + (%no-match offset) + ) ;if + ) ;let + ) ;define + + (define (%match-word-detect word delims text offset text-len) + (let ((wlen (string-length word))) + (if (< text-len (+ offset wlen)) + (%no-match offset) + ;; 左边界:必须在行首或前一个字符是分隔符 + (if + (and (> offset 0) (not (delimiter? (string-ref text (- offset 1)) delims))) + (%no-match offset) + ;; 比较内容 + (if + (not (string=? (substring text offset (+ offset wlen)) word)) + (%no-match offset) + ;; 右边界:必须在行尾或下一个字符是分隔符 + (let ((after (+ offset wlen))) + (if (or (= after text-len) (delimiter? (string-ref text after) delims)) + (%matched after) + (%no-match offset) + ) ;if + ) ;let + ) ;if + ) ;if + ) ;if + ) ;let + ) ;define + + (define (%match-keyword kw-set delims text offset text-len) + ;; 单词边界检查:若 offset > 0 且前一字符不是分隔符,不能是关键字起始 + (if + (and (> offset 0) (not (delimiter? (string-ref text (- offset 1)) delims))) + (%no-match offset) + ;; 扫描直到分隔符或行尾 + (let loop + ((i offset)) + (if (or (= i text-len) (delimiter? (string-ref text i) delims)) + (if (= i offset) + (%no-match offset) + (let ((word (substring text offset i))) + (cond ((hash-table? kw-set) + (if (hash-table-contains? kw-set word) (%matched i) (%no-match offset)) + ) ; + ((list? kw-set) (if (member word kw-set) (%matched i) (%no-match offset))) + (else (%no-match offset)) + ) ;cond + ) ;let + ) ;if + (loop (+ i 1)) + ) ;if + ) ;let + ) ;if + ) ;define + + (define (%match-int delims text offset text-len) + ;; 左边界检查 + (if + (and (> offset 0) (not (delimiter? (string-ref text (- offset 1)) delims))) + (%no-match offset) + (let loop + ((i offset)) + (if (and (< i text-len) (char-numeric? (string-ref text i))) + (loop (+ i 1)) + (if (> i offset) + ;; 右边界检查 + (if (or (= i text-len) (delimiter? (string-ref text i) delims)) + (%matched i) + (%no-match offset) + ) ;if + (%no-match offset) + ) ;if + ) ;if + ) ;let + ) ;if + ) ;define + + ;; DetectSpaces:只匹配空格与 tab(与 Kate 一致)。 + ;; 不能用 char-whitespace?:它会把 UTF-8 多字节中文里的 0x85(NEL)、 + ;; 0xA0(NBSP) 等字节当空白切走,把汉字从中间打断导致终端无法解码。 + (define (%ascii-space-or-tab? ch) + (or (char=? ch #\space) (char=? ch #\tab)) + ) ;define + + (define (%match-detect-spaces text offset text-len) + (let loop + ((i offset)) + (if (and (< i text-len) (%ascii-space-or-tab? (string-ref text i))) + (loop (+ i 1)) + (if (> i offset) (%matched i) (%no-match offset)) + ) ;if + ) ;let + ) ;define + + (define (%match-detect-identifier delims text offset text-len) + (if (>= offset text-len) + (%no-match offset) + (let ((c (string-ref text offset))) + (if (or (char-alphabetic? c) (char=? c #\_)) + (let loop + ((i (+ offset 1))) + (if + (and (< i text-len) + (let ((ci (string-ref text i))) + (or (char-alphabetic? ci) (char-numeric? ci) (char=? ci #\_)) + ) ;let + ) ;and + (loop (+ i 1)) + (%matched i) + ) ;if + ) ;let + (%no-match offset) + ) ;if + ) ;let + ) ;if + ) ;define + + ;; 字符集连续扫描:只要属于 chars-bag 就一直往前吞,吞够 min-count 算成功 + (define (%match-charset-run bag-or-pred min-count text offset text-len) + (let loop + ((i offset)) + (if + (and (< i text-len) + (if (string? bag-or-pred) + (not (not (string-index bag-or-pred (string-ref text i)))) + (bag-or-pred (string-ref text i)) + ) ;if + ) ;and + (loop (+ i 1)) + (if (>= (- i offset) min-count) (%matched i) (%no-match offset)) + ) ;if + ) ;let + ) ;define + + (define (%word-char? ch) + (or (and (char>=? ch #\a) (char<=? ch #\z)) + (and (char>=? ch #\A) (char<=? ch #\Z)) + (and (char>=? ch #\0) (char<=? ch #\9)) + (char=? ch #\_) + ) ;or + ) ;define + + (define (%hex-digit? ch) + (or (and (char>=? ch #\0) (char<=? ch #\9)) + (and (char>=? ch #\a) (char<=? ch #\f)) + (and (char>=? ch #\A) (char<=? ch #\F)) + ) ;or + ) ;define + + (define (%match-hex text offset text-len) + (if + (and (< (+ offset 2) text-len) + (char=? (string-ref text offset) #\0) + (let ((x (string-ref text (+ offset 1)))) + (or (char=? x #\x) (char=? x #\X)) + ) ;let + (%hex-digit? (string-ref text (+ offset 2))) + ) ;and + (let loop + ((i (+ offset 3))) + (if + (and (< i text-len) + (or (%hex-digit? (string-ref text i)) (char=? (string-ref text i) #\')) + ) ;and + (loop (+ i 1)) + (let suffix-loop + ((j i)) + (if + (and (< j text-len) + (let ((c (string-ref text j))) + (or (char=? c #\u) (char=? c #\U) (char=? c #\l) (char=? c #\L)) + ) ;let + ) ;and + (suffix-loop (+ j 1)) + (%matched j) + ) ;if + ) ;let + ) ;if + ) ;let + (%no-match offset) + ) ;if + ) ;define + + (define (%match-json-exponent text offset base-end text-len) + (if + (and (< base-end text-len) + (let ((ch (string-ref text base-end))) + (or (char=? ch #\e) (char=? ch #\E)) + ) ;let + ) ;and + (let* ((e1 (+ base-end 1)) + (e-digit + (if + (and (< e1 text-len) + (let ((s (string-ref text e1))) + (or (char=? s #\+) (char=? s #\-)) + ) ;let + ) ;and + (+ e1 1) + e1 + ) ;if + ) ;e-digit + ) ; + (if (and (< e-digit text-len) (char-numeric? (string-ref text e-digit))) + (let loop + ((k (+ e-digit 1))) + (if (and (< k text-len) (char-numeric? (string-ref text k))) + (loop (+ k 1)) + (%matched k) + ) ;if + ) ;let + (%matched base-end) + ) ;if + ) ;let* + (%matched base-end) + ) ;if + ) ;define + + (define (%match-json-number-suffix is-float? text offset int-end text-len) + (let* ((has-dot? (and (< int-end text-len) (char=? (string-ref text int-end) #\.))) + (has-frac? + (and has-dot? + (< (+ int-end 1) text-len) + (char-numeric? (string-ref text (+ int-end 1))) + ) ;and + ) ;has-frac? + (frac-end + (if has-frac? + (let loop + ((j (+ int-end 2))) + (if (and (< j text-len) (char-numeric? (string-ref text j))) (loop (+ j 1)) j) + ) ;let + #f + ) ;if + ) ;frac-end + ) ; + (if is-float? + (if (not frac-end) + (%no-match offset) + (%match-json-exponent text offset frac-end text-len) + ) ;if + (if frac-end + (%no-match offset) + (%match-json-exponent text offset int-end text-len) + ) ;if + ) ;if + ) ;let* + ) ;define + + (define (%match-json-number is-float? text offset text-len) + (if + (and (> offset 0) (%word-char? (string-ref text (- offset 1)))) + (%no-match offset) + (let ((i + (if (and (< offset text-len) (char=? (string-ref text offset) #\-)) + (+ offset 1) + offset + ) ;if + ) ;i + ) ; + (if (>= i text-len) + (%no-match offset) + (let ((c (string-ref text i))) + (cond + ((char=? c #\0) + (if + (and (< (+ i 1) text-len) (%word-char? (string-ref text (+ i 1)))) + (%no-match offset) + (%match-json-number-suffix is-float? text offset (+ i 1) text-len) + ) ;if + ) ; + ((and (char>=? c #\1) (char<=? c #\9)) + (let loop + ((j (+ i 1))) + (if (and (< j text-len) (char-numeric? (string-ref text j))) + (loop (+ j 1)) + (%match-json-number-suffix is-float? text offset j text-len) + ) ;if + ) ;let + ) ; + (else (%no-match offset)) + ) ;cond + ) ;let + ) ;if + ) ;let + ) ;if + ) ;define + + (define (%match-json-escape-char text offset text-len) + (if (and (< (+ offset 1) text-len) (char=? (string-ref text offset) #\\)) + (let ((c (string-ref text (+ offset 1)))) + (cond ((or (char=? c #\") + (char=? c #\\) + (char=? c #\/) + (char=? c #\b) + (char=? c #\f) + (char=? c #\n) + (char=? c #\r) + (char=? c #\t) + ) ;or + (%matched (+ offset 2)) + ) ; + ((and (or (char=? c #\u) (char=? c #\U)) + (<= (+ offset 6) text-len) + (%hex-digit? (string-ref text (+ offset 2))) + (%hex-digit? (string-ref text (+ offset 3))) + (%hex-digit? (string-ref text (+ offset 4))) + (%hex-digit? (string-ref text (+ offset 5))) + ) ;and + (%matched (+ offset 6)) + ) ; + (else (%no-match offset)) + ) ;cond + ) ;let + (%no-match offset) + ) ;if + ) ;define + + (define (%match-json-escape-error text offset text-len) + (if (and (< offset text-len) (char=? (string-ref text offset) #\\)) + (if (>= (+ offset 1) text-len) + (%matched (+ offset 1)) + (let ((c (string-ref text (+ offset 1)))) + (if (or (char=? c #\u) (char=? c #\U)) + (let loop + ((k (+ offset 2))) + (if (and (< k text-len) (%hex-digit? (string-ref text k))) + (loop (+ k 1)) + (%matched k) + ) ;if + ) ;let + (%matched (+ offset 2)) + ) ;if + ) ;let + ) ;if + (%no-match offset) + ) ;if + ) ;define + + ) ;begin +) ;define-library diff --git a/highlight/liii/highlight/rule.scm b/highlight/liii/highlight/rule.scm new file mode 100644 index 0000000..c81b98d --- /dev/null +++ b/highlight/liii/highlight/rule.scm @@ -0,0 +1,187 @@ +;; +;; Copyright (C) 2026 The Goldfish Scheme Authors +;; +;; Licensed under the Apache License, Version 2.0 (the "License"); +;; you may not use this file except in compliance with the License. +;; You may obtain a copy of the License at +;; +;; http://www.apache.org/licenses/LICENSE-2.0 +;; +;; Unless required by applicable law or agreed to in writing, software +;; distributed under the License is distributed on an "AS IS" BASIS, WITHOUT +;; WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the +;; License for the specific language governing permissions and limitations +;; under the License. +;; + +;; 规则描述 record、上下文切换解析与规则匹配分发。 +;; 各规则的 do-match 实现见 (liii highlight rule-matcher)。 + +(define-library (liii highlight rule) + (import (scheme base) + (scheme char) + (liii base) + (liii string) + (liii hash-table) + (liii highlight rule-matcher) + ) ;import + (export make-rule rule? rule-type rule-attribute rule-context-target rule-data + rule-look-ahead? rule-first-non-space? rule-column parse-context-switch + match-rule + ) ;export + (begin + + ;; 统一规则 record + ;; type: 'detect-char | 'detect-2chars | 'any-char | 'string-detect + ;; | 'word-detect | 'keyword | 'int | 'float | 'decimal | 'hex + ;; | 'json-escape-char | 'json-escape-error | 'detect-spaces + ;; | 'detect-identifier | 'charset-run + ;; attribute: 对应的 itemData 名称,例如 "Keyword"、"Normal" + ;; context-target: 解析后的上下文切换指令,例如 '(stay), '(pop 1), '(push "XMLTag"), '(pop 1 "comment") + ;; data: 规则专有负载 + ;; detect-char: char + ;; detect-2chars: (cons char1 char2) + ;; any-char: string (字符集合) + ;; string-detect: string + ;; word-detect: (cons word delimiters-string) + ;; keyword: (cons keyword-set delimiters-string) ; keyword-set 为 hash-table 或 list + ;; int: delimiters-string + ;; float: delimiters-string + ;; detect-spaces: #t + ;; detect-identifier: delimiters-string + ;; charset-run: (cons predicate-or-chars-string min-count) + (define*-record-type + (make-rule type + attribute + context-target + (data #f) + (look-ahead? #f) + (first-non-space? #f) + (column -1) + ) ;make-rule + rule? + (type rule-type) + (attribute rule-attribute) + (context-target rule-context-target) + (data rule-data) + (look-ahead? rule-look-ahead?) + (first-non-space? rule-first-non-space?) + (column rule-column) + ) ;define*-record-type + + (define (parse-pop-parens after pop-count loop) + (let ((close-idx (string-index after #\)))) + (if close-idx + (let* ((n-str (substring after 1 close-idx)) + (n (or (string->number n-str) 1)) + (rest (substring after (+ close-idx 1))) + ) ; + (if (string-starts? rest "!") + (list 'pop (+ pop-count n) (substring rest 1)) + (loop rest (+ pop-count n)) + ) ;if + ) ;let* + (list 'pop (+ pop-count 1)) + ) ;if + ) ;let + ) ;define + + ;; 解析 Kate context 字符串为结构化指令 + ;; "#stay" -> '(stay) + ;; "#pop" -> '(pop 1) + ;; "#pop#pop" -> '(pop 2) + ;; "#pop!Target" -> '(pop 1 "Target") + ;; "#pop#pop!Target" -> '(pop 2 "Target") + ;; "Target" -> '(push "Target") + (define (parse-context-switch str) + (cond + ((or (not (string? str)) (string-null? str) (string=? str "#stay")) '(stay)) + (else + (let loop + ((s str) (pop-count 0)) + (cond + ((string-starts? s "#pop") + (let ((after (substring s 4))) + (if (string-starts? after "(") + (parse-pop-parens after pop-count loop) + ;; 普通 #pop + (if (string-starts? after "!") + (list 'pop (+ pop-count 1) (substring after 1)) + (loop after (+ pop-count 1)) + ) ;if + ) ;if + ) ;let + ) ; + ((> pop-count 0) + (if (string-null? s) + (list 'pop pop-count) + (if (string-starts? s "!") + (list 'pop pop-count (substring s 1)) + (list 'pop pop-count s) + ) ;if + ) ;if + ) ; + (else (list 'push s)) + ) ;cond + ) ;let + ) ;else + ) ;cond + ) ;define + + ;; 对单条规则进行匹配,返回 match-result + (define (match-rule r text offset text-len first-non-space) + ;; 约束1: 指定列 + (if + (and (>= (rule-column r) 0) (not (= (rule-column r) offset))) + (%no-match offset) + ;; 约束2: first-non-space 限制 + (if (and (rule-first-non-space? r) (> offset first-non-space)) + (%no-match offset) + ;; 核心匹配分发 + (case (rule-type r) + ((detect-char) (%match-detect-char (rule-data r) text offset text-len)) + ((detect-2chars) (%match-detect-2chars (rule-data r) text offset text-len)) + ((any-char) (%match-any-char (rule-data r) text offset text-len)) + ((string-detect) (%match-string-detect (rule-data r) text offset text-len)) + ((word-detect) + (%match-word-detect (car (rule-data r)) + (cdr (rule-data r)) + text + offset + text-len + ) ;%match-word-detect + ) ; + ((keyword) + (%match-keyword (car (rule-data r)) (cdr (rule-data r)) text offset text-len) + ) ; + ((int) (%match-int (rule-data r) text offset text-len)) + ((float) (%match-json-number #t text offset text-len)) + ((decimal) (%match-json-number #f text offset text-len)) + ((hex) (%match-hex text offset text-len)) + ((json-escape-char) (%match-json-escape-char text offset text-len)) + ((json-escape-error) (%match-json-escape-error text offset text-len)) + ((detect-spaces) (%match-detect-spaces text offset text-len)) + ((detect-identifier) + (%match-detect-identifier (rule-data r) text offset text-len) + ) ; + ((charset-run) + (%match-charset-run (car (rule-data r)) + (cdr (rule-data r)) + text + offset + text-len + ) ;%match-charset-run + ) ; + ((include-rules) + ;; 始终零宽匹配:IncludeRules 不消耗文本, + ;; 只触发上下文切换(切换到子语言) + (%matched offset) + ) ; + (else (%no-match offset)) + ) ;case + ) ;if + ) ;if + ) ;define + + ) ;begin +) ;define-library diff --git a/highlight/liii/highlight/theme.scm b/highlight/liii/highlight/theme.scm new file mode 100644 index 0000000..e65c216 --- /dev/null +++ b/highlight/liii/highlight/theme.scm @@ -0,0 +1,197 @@ +;; +;; Copyright (C) 2026 The Goldfish Scheme Authors +;; +;; Licensed under the Apache License, Version 2.0 (the "License"); +;; you may not use this file except in compliance with the License. +;; You may obtain a copy of the License at +;; +;; http://www.apache.org/licenses/LICENSE-2.0 +;; +;; Unless required by applicable law or agreed to in writing, software +;; distributed under the License is distributed on an "AS IS" BASIS, WITHOUT +;; WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the +;; License for the specific language governing permissions and limitations +;; under the License. +;; + +(define-library (liii highlight theme) + (import (scheme base) (scheme char) (liii base) (liii json) (liii string)) + (export make-theme theme? theme-name theme-revision theme-text-style + theme-editor-color parse-theme-json default-breeze-dark-theme hex->rgb + make-style-entry style-entry? style-entry-text-color style-entry-bg-color + style-entry-bold? style-entry-italic? style-entry-underline? + ) ;export + (begin + + ;; 解析 #rrggbb 或 #aarrggbb 颜色串为 '(r g b) 整数列表 + (define (hex->rgb hex-str) + (if (not (string? hex-str)) + #f + (let* ((s (if (string-starts? hex-str "#") (substring hex-str 1) hex-str)) + (len (string-length s)) + ) ; + (cond + ((= len 6) + (let ((r (string->number (substring s 0 2) 16)) + (g (string->number (substring s 2 4) 16)) + (b (string->number (substring s 4 6) 16)) + ) ; + (and r g b (list r g b)) + ) ;let + ) ; + ((= len 8) + ;; #aarrggbb 忽略 alpha,取后 6 位 rgb + (let ((r (string->number (substring s 2 4) 16)) + (g (string->number (substring s 4 6) 16)) + (b (string->number (substring s 6 8) 16)) + ) ; + (and r g b (list r g b)) + ) ;let + ) ; + (else #f) + ) ;cond + ) ;let* + ) ;if + ) ;define + + ;; 样式属性 record + ;; text-color: '(r g b) 或 #f + ;; background-color: '(r g b) 或 #f + ;; bold: #t / #f + ;; italic: #t / #f + ;; underline: #t / #f + (define*-record-type + (make-style-entry (text-color #f) + (background-color #f) + (bold #f) + (italic #f) + (underline #f) + ) ;make-style-entry + style-entry? + (text-color style-entry-text-color) + (background-color style-entry-bg-color) + (bold style-entry-bold?) + (italic style-entry-italic?) + (underline style-entry-underline?) + ) ;define*-record-type + + ;; 主题 record + ;; styles: alist 形式 (("Keyword" . ) ...) + ;; editor-colors: alist (("BackgroundColor" . '(r g b)) ...) + (define*-record-type + (make-theme (name "Default") (styles '()) (editor-colors '()) (revision 1)) + theme? + (name theme-name) + (styles theme-styles) + (editor-colors theme-editor-colors) + (revision theme-revision) + ) ;define*-record-type + + ;; 查询指定 TextStyle 名(如 "Keyword"、"Normal")的样式属性 + (define (theme-text-style th style-name) + (let ((p (assoc style-name (theme-styles th)))) + (if p (cdr p) #f) + ) ;let + ) ;define + + ;; 查询指定 editor-color 名(如 "BackgroundColor")的 '(r g b) + (define (theme-editor-color th color-name) + (let ((p (assoc color-name (theme-editor-colors th)))) + (if p (cdr p) #f) + ) ;let + ) ;define + + ;; 解析单个 text-style JSON 对象 + (define (parse-style-entry-json obj) + (if (not (json-object? obj)) + (make-style-entry) + (let ((tc (json-ref-string obj "text-color" #f)) + (bg (json-ref-string obj "background-color" #f)) + (b (json-ref-boolean obj "bold" #f)) + (i (json-ref-boolean obj "italic" #f)) + (u (json-ref-boolean obj "underline" #f)) + ) ; + (make-style-entry (and tc (hex->rgb tc)) (and bg (hex->rgb bg)) b i u) + ) ;let + ) ;if + ) ;define + + ;; 解析整个 theme JSON 对象(KSyntaxHighlighting .theme 规范) + (define (parse-theme-json theme-obj) + (let* ((meta (json-ref theme-obj "metadata")) + (name (if (json-object? meta) (json-ref-string meta "name" "Unnamed") "Unnamed") + ) ;name + (rev (if (json-object? meta) (json-ref-integer meta "revision" 1) 1)) + (raw-styles (json-ref theme-obj "text-styles")) + (styles + (if (json-object? raw-styles) + (map + (lambda (key) (cons key (parse-style-entry-json (json-ref raw-styles key)))) + (json-keys raw-styles) + ) ;map + '() + ) ;if + ) ;styles + (raw-editor (json-ref theme-obj "editor-colors")) + (editor-colors + (if (json-object? raw-editor) + (map + (lambda (key) + (let ((v (json-ref-string raw-editor key #f))) + (cons key (and v (hex->rgb v))) + ) ;let + ) ;lambda + (json-keys raw-editor) + ) ;map + '() + ) ;if + ) ;editor-colors + ) ; + (make-theme name styles editor-colors rev) + ) ;let* + ) ;define + + ;; 内置 Breeze Dark 主题的精简版(开箱即用,无需从外部读文件) + (define (default-breeze-dark-theme) + (make-theme "Breeze Dark" + (list (cons "Normal" (make-style-entry '(207 207 194) #f #f #f #f)) + (cons "Keyword" (make-style-entry '(207 207 194) #f #t #f #f)) + (cons "Function" (make-style-entry '(142 68 173) #f #f #f #f)) + (cons "Variable" (make-style-entry '(39 174 174) #f #f #f #f)) + (cons "ControlFlow" (make-style-entry '(253 188 75) #f #t #f #f)) + (cons "Operator" (make-style-entry '(63 128 88) #f #f #f #f)) + (cons "BuiltIn" (make-style-entry '(96 156 160) #f #f #f #f)) + (cons "Extension" (make-style-entry '(0 153 255) #f #t #f #f)) + (cons "Preprocessor" (make-style-entry '(39 174 96) #f #f #f #f)) + (cons "Attribute" (make-style-entry '(41 128 185) #f #f #f #f)) + (cons "Char" (make-style-entry '(61 174 233) #f #f #f #f)) + (cons "SpecialChar" (make-style-entry '(61 174 233) #f #f #f #f)) + (cons "String" (make-style-entry '(244 79 79) #f #f #f #f)) + (cons "VerbatimString" (make-style-entry '(218 68 83) #f #f #f #f)) + (cons "SpecialString" (make-style-entry '(218 68 83) #f #f #f #f)) + (cons "Import" (make-style-entry '(39 174 96) #f #f #f #f)) + (cons "DataType" (make-style-entry '(41 128 185) #f #f #f #f)) + (cons "DecVal" (make-style-entry '(246 116 0) #f #f #f #f)) + (cons "BaseN" (make-style-entry '(246 116 0) #f #f #f #f)) + (cons "Float" (make-style-entry '(246 116 0) #f #f #f #f)) + (cons "Constant" (make-style-entry '(39 174 174) #f #f #f #f)) + (cons "Comment" (make-style-entry '(122 136 142) #f #f #f #f)) + (cons "Documentation" (make-style-entry '(160 160 164) #f #f #f #f)) + (cons "Annotation" (make-style-entry '(63 128 88) #f #f #f #f)) + (cons "CommentVar" (make-style-entry '(127 140 141) #f #f #f #f)) + (cons "RegionMarker" (make-style-entry '(41 128 185) #f #f #f #f)) + (cons "Information" (make-style-entry '(176 176 176) #f #f #f #f)) + (cons "Warning" (make-style-entry '(218 68 83) #f #f #f #f)) + (cons "Alert" (make-style-entry '(149 165 166) '(77 33 34) #t #f #f)) + (cons "Error" (make-style-entry '(218 68 83) #f #f #f #t)) + (cons "Others" (make-style-entry '(39 174 96) #f #f #f #f)) + ) ;list + (list (cons "BackgroundColor" '(35 38 41)) (cons "CodeFolding" '(34 + 87 + 116))) + 1 + ) ;make-theme + ) ;define + + ) ;begin +) ;define-library diff --git a/highlight/liii/highlight/tui-render.scm b/highlight/liii/highlight/tui-render.scm new file mode 100644 index 0000000..736500c --- /dev/null +++ b/highlight/liii/highlight/tui-render.scm @@ -0,0 +1,173 @@ +;; +;; Copyright (C) 2026 The Goldfish Scheme Authors +;; +;; Licensed under the Apache License, Version 2.0 (the "License"); +;; you may not use this file except in compliance with the License. +;; You may obtain a copy of the License at +;; +;; http://www.apache.org/licenses/LICENSE-2.0 +;; +;; Unless required by applicable law or agreed to in writing, software +;; distributed under the License is distributed on an "AS IS" BASIS, WITHOUT +;; WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the +;; License for the specific language governing permissions and limitations +;; under the License. +;; + +(define-library (liii highlight tui-render) + (import (scheme base) + (liii base) + (liii string) + (liii highlight theme) + (liii highlight definition) + (liii highlight highlighter) + ) ;import + (export style->ansi-prefix render-spans-to-ansi highlight-line-to-ansi + highlight-text-to-ansi + ) ;export + (begin + + (define (append-ansi-part parts code) + (if (pair? parts) (append parts (list ";" code)) (list code)) + ) ;define + + (define (append-color-part parts pfx-type rgb) + (if rgb + (let ((color-str (string-append pfx-type + ";2;" + (number->string (car rgb)) + ";" + (number->string (cadr rgb)) + ";" + (number->string (caddr rgb)) + ) ;string-append + ) ;color-str + ) ; + (append-ansi-part parts color-str) + ) ;let + parts + ) ;if + ) ;define + + (define (style->ansi-parts style-entry) + (let* ((p0 '()) + (p1 (append-color-part p0 "38" (style-entry-text-color style-entry))) + (p2 (append-color-part p1 "48" (style-entry-bg-color style-entry))) + (p3 (if (style-entry-bold? style-entry) (append-ansi-part p2 "1") p2)) + (p4 (if (style-entry-italic? style-entry) (append-ansi-part p3 "3") p3)) + (p5 (if (style-entry-underline? style-entry) (append-ansi-part p4 "4") p4)) + ) ; + p5 + ) ;let* + ) ;define + + ;; ANSI 转义前缀构造 + ;; 使用 24 位真彩色(\x1b;[38;2;R;G;Bm),同时支持 bold、italic、underline + (define (style->ansi-prefix style-entry) + (if (not style-entry) + "" + (let ((parts (style->ansi-parts style-entry))) + (if (null? parts) "" (apply string-append "\x1b;[" (append parts (list "m")))) + ) ;let + ) ;if + ) ;define + + (define *ansi-reset* "\x1b;[0m") + + ;; 合并相邻且样式相同的 spans + ;; highlighter 逐字节消耗无规则匹配的文本(例如 UTF-8 中文每个字节一个 span), + ;; 若逐个着色,多字节字符会被转义前缀/重置码从中间打断,终端无法解码显示。 + ;; 先按 itemData 解析出样式名并合并相邻同样式 span,既保证字节序列连续, + ;; 也减少转义序列数量。返回 '((offset length style-name) ...) + ;; 取 span 的源定义:优先用 span 自带的(嵌入子语言),否则用外层 def + (define (span-source-def sp fallback-def) + (if (>= (length sp) 4) (cadddr sp) fallback-def) + ) ;define + + (define (merge-adjacent-spans spans def) + (let loop + ((rest spans) (acc '())) + (if (null? rest) + (reverse acc) + (let* ((sp (car rest)) + (src-def (span-source-def sp def)) + (style-name (definition-item-data-def-style src-def (caddr sp))) + (src-key (if (>= (length sp) 4) src-def #f)) + ) ; + (if + (and (pair? acc) + (= (+ (car (car acc)) (cadr (car acc))) (car sp)) + (string=? (caddr (car acc)) style-name) + ) ;and + ;; 与前一个 span 相邻且同样式:合并长度 + (loop (cdr rest) + (cons + (list (car (car acc)) + (+ (cadr (car acc)) (cadr sp)) + (caddr (car acc)) + (if (>= (length (car acc)) 4) (cadddr (car acc)) src-def) + ) ;list + (cdr acc) + ) ;cons + ) ;loop + (loop (cdr rest) + (cons (list (car sp) (cadr sp) style-name (if src-key src-def #f)) acc) + ) ;loop + ) ;if + ) ;let* + ) ;if + ) ;let + ) ;define + + ;; 将单行的 spans 序列渲染为带有 ANSI 颜色的完整字符串 + (define (render-spans-to-ansi line spans th def) + (let loop + ((rest (merge-adjacent-spans spans def)) (acc '())) + (if (null? rest) + (apply string-append (reverse acc)) + (let* ((sp (car rest)) + (offset (car sp)) + (len (cadr sp)) + (style-name (caddr sp)) + (piece (substring line offset (+ offset len))) + ;; 查主题得到样式 + (style (theme-text-style th style-name)) + (prefix (style->ansi-prefix style)) + (rendered-piece (if (string-null? prefix) piece (string-append prefix piece *ansi-reset*)) + ) ;rendered-piece + ) ; + (loop (cdr rest) (cons rendered-piece acc)) + ) ;let* + ) ;if + ) ;let + ) ;define + + ;; 单行高亮便捷函数:(highlight-line-to-ansi line state def th) + ;; 返回 (values rendered-line next-state) + (define (highlight-line-to-ansi line state def th) + (let-values (((spans next-state) (highlight-line line state def))) + (values (render-spans-to-ansi line spans th def) next-state) + ) ;let-values + ) ;define + + ;; 整段文本高亮为带 ANSI 颜色的字符串 + (define (highlight-text-to-ansi text def th) + (let ((highlighted-lines (highlight-text text def))) + (let ((rendered-list + (map + (lambda (pair) + (let ((spans (car pair)) (line (cdr pair))) + (render-spans-to-ansi line spans th def) + ) ;let + ) ;lambda + highlighted-lines + ) ;map + ) ;rendered-list + ) ; + (string-join rendered-list "\n") + ) ;let + ) ;let + ) ;define + + ) ;begin +) ;define-library diff --git a/highlight/resources/syntax/bash.json b/highlight/resources/syntax/bash.json new file mode 100644 index 0000000..10cf417 --- /dev/null +++ b/highlight/resources/syntax/bash.json @@ -0,0 +1,285 @@ +{ + "metadata": { + "copyright": [ + "SPDX-FileCopyrightText: 2026 The Goldfish Scheme Authors", + "SPDX-FileCopyrightText: Bash syntax derived from bash.xml by Wilbert Berendsen and contributors (KDE syntax-highlighting)" + ], + "license": "SPDX-License-Identifier: MIT", + "name": "Bash" + }, + "name": "Bash", + "extensions": [ + "*.sh", + "*.bash", + "*.ebuild", + "*.eclass", + "*.exlib", + "*.exheres-0", + "*.bashrc", + "*.bash_profile", + "*.bash_login", + "*.profile", + "*.envrc", + "PKGBUILD", + "APKBUILD" + ], + "initial-context": "Normal", + "lists": { + "keywords": [ + "break", "case", "continue", "do", "done", "elif", + "else", "esac", "fi", "for", "function", "if", + "in", "return", "select", "then", "until", "while" + ], + "builtins": [ + ".", ":", "source", "alias", "bg", "bind", + "builtin", "cd", "caller", "command", "compgen", "complete", + "coproc", "dirs", "disown", "echo", "enable", "eval", + "exec", "exit", "fc", "fg", "hash", "help", + "history", "jobs", "kill", "logout", "popd", "printf", + "pushd", "pwd", "set", "shift", "shopt", "suspend", + "test", "time", "times", "trap", "type", "ulimit", + "umask", "unalias", "wait" + ], + "builtins_var": [ + "export", "declare", "getopts", "let", "local", "read", + "readonly", "typeset", "unset" + ], + "unixcommands": [ + "arch", "awk", "b2sum", "base32", "base64", "bash", + "bunzip2", "bzcat", "bzcmp", "bzdiff", "bzegrep", "bzfgrep", + "bzgrep", "bzip2", "bzip2recover", "bzless", "bzmore", "cat", + "chattr", "chcon", "chgrp", "chmod", "chown", "chvt", + "cksum", "cp", "crontab", "csplit", "date", "dd", + "deallocvt", "df", "dir", "dircolors", "dmesg", "dnsdomainname", + "domainname", "du", "dumpkeys", "ed", "egrep", "expand", + "false", "fgconsole", "fgrep", "fold", "fuser", "gawk", + "getkeycodes", "gocr", "grep", "groff", "groups", "gunzip", + "gzexe", "gzip", "hostid", "hostname", "iconv", "igawk", + "install", "kbd_mode", "kbdrate", "killall", "last", "lastb", + "link", "ln", "loadkeys", "loadunimap", "login", "ls", + "lsattr", "lsmod", "lsmod.old", "lzcat", "lzcmp", "lzdiff", + "lzegrep", "lzfgrep", "lzgrep", "lzless", "lzma", "lzmainfo", + "lzmore", "mapscrn", "md5sum", "mesg", "mkdir", "mkfifo", + "mknod", "mktemp", "more", "mount", "mv", "nano", + "netstat", "nisdomainname", "nproc", "nroff", "numfmt", "openvt", + "paste", "pathchk", "pgawk", "pidof", "ping", "pinky", + "printenv", "ps", "pstree", "ptx", "rbash", "readlink", + "realpath", "red", "resizecons", "rm", "rmdir", "run-parts", + "runcon", "sash", "sed", "setfont", "setkeycodes", "setleds", + "setmetamode", "setserial", "sh", "sha1sum", "sha224sum", "sha256sum", + "sha384sum", "sha512sum", "showkey", "shred", "shuf", "sleep", + "ssed", "stat", "stdbuf", "stty", "su", "sync", + "tar", "tempfile", "timeout", "touch", "tput", "troff", + "true", "truncate", "tty", "umount", "uname", "unexpand", + "unicode_start", "unicode_stop", "unlink", "unlzma", "unxz", "utmpdump", + "uuidgen", "vdir", "vi", "wall", "wc", "xz", + "xzcat", "ypdomainname", "zcat", "zcmp", "zdiff", "zegrep", + "zfgrep", "zforce", "zgrep", "zless", "zmore", "znew", + "zsh", "aclocal", "aconnect", "aplay", "apm", "apmsleep", + "apropos", "ar", "arecord", "as", "as86", "autoconf", + "autoheader", "automake", "basename", "bc", "bison", "c++", + "cal", "cc", "cdda2wav", "cdparanoia", "cdrdao", "cd-read", + "cdrecord", "chfn", "chroot", "chsh", "clear", "cmp", + "co", "col", "comm", "cpio", "cpp", "cut", + "dc", "diff", "diff3", "directomatic", "dirname", "env", + "expr", "fbset", "file", "find", "flex", "flex++", + "fmt", "free", "ftp", "funzip", "g++", "gc", + "gcc", "clang", "clang++", "valgrind", "xdg-open", "cmake", + "qmake", "svn", "git", "rsync", "gdb", "getent", + "getopt", "gettext", "gettextize", "gimp", "gimp-remote", "gimptool", + "gmake", "gs", "head", "hexdump", "id", "join", + "ld", "ld86", "ldd", "less", "lex", "locate", + "lockfile", "logname", "lp", "lpr", "lynx", "m4", + "make", "man", "msgfmt", "namei", "nasm", "nawk", + "nice", "nl", "nm", "nm86", "nmap", "nohup", + "nop", "od", "passwd", "patch", "pcregrep", "pcretest", + "perl", "perror", "pr", "procmail", "prune", "ps2ascii", + "ps2epsi", "ps2frag", "ps2pdf", "ps2ps", "psbook", "psmerge", + "psnup", "psresize", "psselect", "pstops", "rcs", "rev", + "scp", "seq", "setterm", "size", "size86", "skill", + "slogin", "snice", "sort", "sox", "split", "ssh", + "ssh-add", "ssh-agent", "ssh-keygen", "ssh-keyscan", "strings", "strip", + "sudo", "suidperl", "sum", "tac", "tail", "tee", + "tr", "tsort", "uniq", "unzip", "updatedb", "updmap", + "uptime", "users", "vmstat", "w", "wget", "whatis", + "whereis", "which", "who", "whoami", "write", "xargs", + "yacc", "yes", "zip", "zsoelim", "dcop", "kdialog", + "kfile", "xhost", "xmodmap", "xset" + ] + }, + "item-datas": { + "Normal": "Normal", + "Normal Text": "Normal", + "Command": "Normal", + "OtherCommand": "Normal", + "Path": "Normal", + "Keyword": "Keyword", + "ControlFlow": "ControlFlow", + "Builtin": "BuiltIn", + "Function": "Function", + "Variable": "Variable", + "Parameter Expansion": "Variable", + "Parameter Expansion Operator": "Operator", + "Operator": "Operator", + "Redirection": "Operator", + "Option": "Attribute", + "Glob": "SpecialChar", + "Pattern": "SpecialChar", + "Backquote": "SpecialChar", + "Escape": "SpecialChar", + "String Escape": "SpecialChar", + "String": "String", + "String Transl.": "String", + "Comment": "Comment", + "Decimal": "DecVal", + "Hex": "BaseN", + "Expression": "Operator", + "File Descriptor": "DecVal", + "Error": "Error" + }, + "contexts": { + "Normal": { + "attribute": "Normal", + "line-end-context": "#stay", + "rules": [ + { "type": "DetectSpaces", "attribute": "Normal", "context": "#stay" }, + { "type": "Detect2Chars", "attribute": "Comment", "context": "shebang", "char": "#", "char1": "!", "column": 0 }, + { "type": "DetectChar", "attribute": "Comment", "context": "comment", "char": "#" }, + { "type": "Detect2Chars", "attribute": "Parameter Expansion", "context": "var-brace", "char": "$", "char1": "{" }, + { "type": "Detect2Chars", "attribute": "Parameter Expansion", "context": "subst-command", "char": "$", "char1": "(" }, + { "type": "DetectChar", "attribute": "Variable", "context": "dollar", "char": "$", "look-ahead": true }, + { "type": "DetectChar", "attribute": "String", "context": "string-double", "char": "\"" }, + { "type": "DetectChar", "attribute": "String", "context": "string-single", "char": "'" }, + { "type": "DetectChar", "attribute": "Backquote", "context": "backquote", "char": "`" }, + { "type": "keyword", "attribute": "ControlFlow", "context": "#stay", "String": "keywords", "delimiters": " \t\r\n()[]{}\",'`;\\.:=+-*/%^#~<>&|" }, + { "type": "keyword", "attribute": "Builtin", "context": "#stay", "String": "builtins", "delimiters": " \t\r\n()[]{}\",'`;\\.:=+-*/%^#~<>&|" }, + { "type": "keyword", "attribute": "Builtin", "context": "#stay", "String": "builtins_var", "delimiters": " \t\r\n()[]{}\",'`;\\.:=+-*/%^#~<>&|" }, + { "type": "keyword", "attribute": "Command", "context": "#stay", "String": "unixcommands", "delimiters": " \t\r\n()[]{}\",'`;\\.:=+-*/%^#~<>&|" }, + { "type": "Hex", "attribute": "Hex", "context": "#stay" }, + { "type": "Float", "attribute": "Decimal", "context": "#stay" }, + { "type": "Int", "attribute": "Decimal", "context": "#stay", "delimiters": " \t\r\n()[]{}\",'`;\\.:=+-*/%^#~<>&|" }, + { "type": "Detect2Chars", "attribute": "Operator", "context": "#stay", "char": "&", "char1": "&" }, + { "type": "Detect2Chars", "attribute": "Operator", "context": "#stay", "char": "|", "char1": "|" }, + { "type": "AnyChar", "attribute": "Operator", "context": "#stay", "String": "&|;" }, + { "type": "Detect2Chars", "attribute": "Redirection", "context": "#stay", "char": ">", "char1": ">" }, + { "type": "Detect2Chars", "attribute": "Redirection", "context": "#stay", "char": ">", "char1": "&" }, + { "type": "Detect2Chars", "attribute": "Redirection", "context": "#stay", "char": "<", "char1": "<" }, + { "type": "Detect2Chars", "attribute": "Redirection", "context": "#stay", "char": "<", "char1": ">" }, + { "type": "DetectChar", "attribute": "Redirection", "context": "#stay", "char": ">" }, + { "type": "DetectChar", "attribute": "Redirection", "context": "#stay", "char": "<" }, + { "type": "AnyChar", "attribute": "Operator", "context": "#stay", "String": "+-*/%=!~^" }, + { "type": "AnyChar", "attribute": "Normal", "context": "#stay", "String": "()[]{}.,:" }, + { "type": "DetectIdentifier", "attribute": "Normal", "context": "#stay" } + ] + }, + "shebang": { + "attribute": "Comment", + "line-end-context": "#pop", + "rules": [ + { "type": "DetectSpaces", "attribute": "Comment", "context": "#stay" }, + { "type": "DetectIdentifier", "attribute": "Comment", "context": "#stay" } + ] + }, + "comment": { + "attribute": "Comment", + "line-end-context": "#pop", + "rules": [ + { "type": "DetectSpaces", "attribute": "Comment", "context": "#stay" }, + { "type": "DetectIdentifier", "attribute": "Comment", "context": "#stay" } + ] + }, + "dollar": { + "attribute": "Variable", + "line-end-context": "#pop", + "rules": [ + { "type": "DetectChar", "attribute": "Variable", "context": "#stay", "char": "$" }, + { "type": "DetectIdentifier", "attribute": "Variable", "context": "#pop" }, + { "type": "AnyChar", "attribute": "Variable", "context": "#pop", "String": "*@#?$!0123456789-" } + ] + }, + "var-brace": { + "attribute": "Variable", + "line-end-context": "#stay", + "rules": [ + { "type": "DetectChar", "attribute": "Parameter Expansion", "context": "#pop", "char": "}" }, + { "type": "DetectIdentifier", "attribute": "Variable", "context": "#stay" }, + { "type": "AnyChar", "attribute": "Variable", "context": "#stay", "String": "*@#?$!-_0123456789" }, + { "type": "AnyChar", "attribute": "Parameter Expansion Operator", "context": "#stay", "String": ":-=?+#%/,^@" }, + { "type": "DetectChar", "attribute": "String", "context": "string-double", "char": "\"" }, + { "type": "DetectChar", "attribute": "String", "context": "string-single", "char": "'" } + ] + }, + "subst-command": { + "attribute": "Normal", + "line-end-context": "#stay", + "rules": [ + { "type": "DetectChar", "attribute": "Parameter Expansion", "context": "#pop", "char": ")" }, + { "type": "DetectSpaces", "attribute": "Normal", "context": "#stay" }, + { "type": "DetectChar", "attribute": "Comment", "context": "comment", "char": "#" }, + { "type": "Detect2Chars", "attribute": "Parameter Expansion", "context": "var-brace", "char": "$", "char1": "{" }, + { "type": "DetectChar", "attribute": "Variable", "context": "dollar", "char": "$", "look-ahead": true }, + { "type": "DetectChar", "attribute": "String", "context": "string-double", "char": "\"" }, + { "type": "DetectChar", "attribute": "String", "context": "string-single", "char": "'" }, + { "type": "DetectChar", "attribute": "Backquote", "context": "backquote", "char": "`" }, + { "type": "keyword", "attribute": "ControlFlow", "context": "#stay", "String": "keywords", "delimiters": " \t\r\n()[]{}\",'`;\\.:=+-*/%^#~<>&|" }, + { "type": "keyword", "attribute": "Builtin", "context": "#stay", "String": "builtins", "delimiters": " \t\r\n()[]{}\",'`;\\.:=+-*/%^#~<>&|" }, + { "type": "keyword", "attribute": "Command", "context": "#stay", "String": "unixcommands", "delimiters": " \t\r\n()[]{}\",'`;\\.:=+-*/%^#~<>&|" }, + { "type": "Int", "attribute": "Decimal", "context": "#stay", "delimiters": " \t\r\n()[]{}\",'`;\\.:=+-*/%^#~<>&|" }, + { "type": "AnyChar", "attribute": "Operator", "context": "#stay", "String": "+-*/%=!~^&|;<>" }, + { "type": "AnyChar", "attribute": "Normal", "context": "#stay", "String": "()[]{}" }, + { "type": "DetectIdentifier", "attribute": "Normal", "context": "#stay" } + ] + }, + "string-double": { + "attribute": "String", + "line-end-context": "#stay", + "rules": [ + { "type": "DetectChar", "attribute": "String", "context": "#pop", "char": "\"" }, + { "type": "Detect2Chars", "attribute": "String", "context": "var-brace", "char": "$", "char1": "{" }, + { "type": "Detect2Chars", "attribute": "String", "context": "subst-command", "char": "$", "char1": "(" }, + { "type": "DetectChar", "context": "escape", "char": "\\", "look-ahead": true }, + { "type": "DetectChar", "context": "dollar-in-string", "char": "$", "look-ahead": true }, + { "type": "DetectChar", "attribute": "Backquote", "context": "backquote", "char": "`" } + ] + }, + "string-single": { + "attribute": "String", + "line-end-context": "#stay", + "rules": [ + { "type": "DetectChar", "attribute": "String", "context": "#pop", "char": "'" } + ] + }, + "dollar-in-string": { + "attribute": "String", + "line-end-context": "#pop", + "rules": [ + { "type": "DetectChar", "attribute": "Variable", "context": "#stay", "char": "$" }, + { "type": "DetectIdentifier", "attribute": "Variable", "context": "#pop" }, + { "type": "AnyChar", "attribute": "Variable", "context": "#pop", "String": "*@#?!0123456789-" } + ] + }, + "escape": { + "attribute": "Escape", + "line-end-context": "#pop", + "rules": [ + { "type": "DetectSpaces", "attribute": "Escape", "context": "#pop" }, + { "type": "DetectIdentifier", "attribute": "Escape", "context": "#pop" }, + { "type": "AnyChar", "attribute": "Escape", "context": "#pop", "String": "\"'`$\\" } + ] + }, + "backquote": { + "attribute": "Normal", + "line-end-context": "#stay", + "rules": [ + { "type": "DetectChar", "attribute": "Backquote", "context": "#pop", "char": "`" }, + { "type": "DetectSpaces", "attribute": "Normal", "context": "#stay" }, + { "type": "DetectChar", "attribute": "Comment", "context": "comment", "char": "#" }, + { "type": "DetectChar", "attribute": "Variable", "context": "dollar", "char": "$", "look-ahead": true }, + { "type": "DetectChar", "attribute": "String", "context": "string-double", "char": "\"" }, + { "type": "DetectChar", "attribute": "String", "context": "string-single", "char": "'" }, + { "type": "DetectIdentifier", "attribute": "Normal", "context": "#stay" }, + { "type": "AnyChar", "attribute": "Operator", "context": "#stay", "String": "+-*/%=!~^&|;<>()[]{}" } + ] + } + } +} diff --git a/highlight/resources/syntax/bibtex.json b/highlight/resources/syntax/bibtex.json new file mode 100644 index 0000000..d9357c3 --- /dev/null +++ b/highlight/resources/syntax/bibtex.json @@ -0,0 +1,117 @@ +{ + "metadata": { + "copyright": [ + "SPDX-FileCopyrightText: 2026 The Goldfish Scheme Authors", + "SPDX-FileCopyrightText: BibTeX syntax derived from bibtex.xml by Jeroen Wijnhout and Thomas Braun (KDE syntax-highlighting)" + ], + "license": "SPDX-License-Identifier: LGPL-2.0-or-later", + "name": "BibTeX" + }, + "name": "BibTeX", + "extensions": [ + "*.bib" + ], + "initial-context": "Normal", + "lists": { + "entries": [ + "@article", "@book", "@booklet", "@conference", "@collection", + "@electronic", "@inbook", "@incollection", "@inproceedings", + "@manual", "@mastersthesis", "@misc", "@online", "@patent", + "@periodical", "@proceedings", "@report", "@phdthesis", "@set", + "@thesis", "@techreport", "@unpublished", "@www", "@person", + "@company", "@place" + ] + }, + "item-datas": { + "Normal Text": "Normal", + "Entry": "Variable", + "Command": "Function", + "Field": "DataType", + "Ref Key": "Others", + "LatexCommand": "Char", + "Comment": "Comment", + "Error": "Error", + "String": "String" + }, + "contexts": { + "Normal": { + "attribute": "Comment", + "line-end-context": "#stay", + "rules": [ + { "type": "DetectSpaces", "attribute": "Comment", "context": "#stay" }, + { "type": "keyword", "attribute": "Entry", "context": "Entry", "String": "entries", "delimiters": " \t\r\n{}()," }, + { "type": "StringDetect", "attribute": "Command", "context": "StringCommand", "String": "@string" }, + { "type": "StringDetect", "attribute": "Command", "context": "StringCommand", "String": "@String" }, + { "type": "StringDetect", "attribute": "Command", "context": "PreambleCommand", "String": "@preamble" }, + { "type": "StringDetect", "attribute": "Command", "context": "PreambleCommand", "String": "@Preamble" }, + { "type": "StringDetect", "attribute": "Comment", "context": "#stay", "String": "@comment" }, + { "type": "StringDetect", "attribute": "Comment", "context": "#stay", "String": "@Comment" }, + { "type": "DetectIdentifier", "attribute": "Comment", "context": "#stay" } + ] + }, + "PreambleCommand": { + "attribute": "Normal Text", + "line-end-context": "#pop", + "rules": [ + { "type": "DetectChar", "attribute": "Normal Text", "context": "#pop!CurlyBracket", "char": "{" } + ] + }, + "StringCommand": { + "attribute": "Normal Text", + "line-end-context": "#pop", + "rules": [ + { "type": "DetectChar", "attribute": "Normal Text", "context": "#pop!CurlyBracket", "char": "{" }, + { "type": "DetectIdentifier", "attribute": "String", "context": "#pop!CurlyBracket" } + ] + }, + "Entry": { + "attribute": "Normal Text", + "line-end-context": "#stay", + "rules": [ + { "type": "DetectChar", "attribute": "Normal Text", "context": "#stay", "char": "{" }, + { "type": "DetectChar", "attribute": "Normal Text", "context": "Field", "char": "," }, + { "type": "DetectChar", "attribute": "Normal Text", "context": "#pop", "char": "}" }, + { "type": "DetectIdentifier", "attribute": "Ref Key", "context": "#stay" } + ] + }, + "Field": { + "attribute": "Normal Text", + "line-end-context": "#stay", + "rules": [ + { "type": "DetectSpaces", "attribute": "Normal Text", "context": "#stay" }, + { "type": "DetectIdentifier", "attribute": "Field", "context": "#stay", "first-non-space": true }, + { "type": "DetectChar", "attribute": "Normal Text", "context": "#stay", "char": "=" }, + { "type": "DetectChar", "attribute": "Normal Text", "context": "CurlyBracket", "char": "{" }, + { "type": "DetectChar", "attribute": "Normal Text", "context": "QuotedText", "char": "\"" }, + { "type": "DetectChar", "attribute": "Normal Text", "context": "#pop", "char": "}", "look-ahead": true }, + { "type": "AnyChar", "attribute": "Normal Text", "context": "#stay", "String": ",#" }, + { "type": "Int", "attribute": "Normal Text", "context": "#stay" } + ] + }, + "CurlyBracket": { + "attribute": "Normal Text", + "line-end-context": "#stay", + "rules": [ + { "type": "DetectChar", "attribute": "Normal Text", "context": "CurlyBracket", "char": "{" }, + { "type": "DetectChar", "attribute": "Normal Text", "context": "#pop", "char": "}" }, + { "type": "DetectChar", "attribute": "LatexCommand", "context": "latex-cmd", "char": "\\" } + ] + }, + "QuotedText": { + "attribute": "String", + "line-end-context": "#stay", + "rules": [ + { "type": "DetectChar", "attribute": "Normal Text", "context": "#pop", "char": "\"" }, + { "type": "DetectChar", "attribute": "LatexCommand", "context": "latex-cmd", "char": "\\" } + ] + }, + "latex-cmd": { + "attribute": "LatexCommand", + "line-end-context": "#pop", + "rules": [ + { "type": "DetectIdentifier", "attribute": "LatexCommand", "context": "#pop" }, + { "type": "AnyChar", "attribute": "LatexCommand", "context": "#pop", "String": "()[]{}!.,;:?#$&%_^~ " } + ] + } + } +} diff --git a/highlight/resources/syntax/c.json b/highlight/resources/syntax/c.json new file mode 100644 index 0000000..5fb1de5 --- /dev/null +++ b/highlight/resources/syntax/c.json @@ -0,0 +1,151 @@ +{ + "metadata": { + "copyright": [ + "SPDX-FileCopyrightText: 2026 The Goldfish Scheme Authors", + "SPDX-FileCopyrightText: C syntax derived from c.xml by Sebastian Pipping (KDE syntax-highlighting)" + ], + "license": "SPDX-License-Identifier: MIT", + "name": "C" + }, + "name": "C", + "extensions": [ + "*.c", + "*.C", + "*.h" + ], + "initial-context": "Normal", + "lists": { + "controlflow": [ + "break", "case", "continue", "default", "do", "else", "for", "goto", + "if", "return", "switch", "while" + ], + "keywords": [ + "struct", "union", "enum", "typedef", "sizeof", "typeof", + "typeof_unqual", "alignas", "alignof", "_Alignas", "_Alignof", + "static_assert", "_Static_assert", "_Noreturn", "_Generic", + "true", "false", "nullptr" + ], + "types": [ + "void", "bool", "_Bool", "char", "short", "int", "long", "float", + "double", "signed", "unsigned", "char16_t", "char32_t", "size_t", + "ssize_t", "ptrdiff_t", "int8_t", "int16_t", "int32_t", "int64_t", + "uint8_t", "uint16_t", "uint32_t", "uint64_t", "intptr_t", "uintptr_t", + "intmax_t", "uintmax_t", "FILE", "fpos_t", "time_t", "va_list" + ], + "modifiers": [ + "const", "volatile", "restrict", "static", "extern", "inline", + "_Thread_local", "_Atomic", "register", "auto", "constexpr" + ], + "pp-directives": [ + "include", "define", "ifdef", "ifndef", "endif", "if", "else", + "elif", "elifdef", "elifndef", "pragma", "undef", "line", "error", + "warning", "embed" + ] + }, + "item-datas": { + "Normal": "Normal", + "Keyword": "Keyword", + "ControlFlow": "ControlFlow", + "DataType": "DataType", + "String": "String", + "Char": "Char", + "SpecialChar": "SpecialChar", + "Comment": "Comment", + "Preprocessor": "Preprocessor", + "DecVal": "DecVal", + "BaseN": "BaseN", + "Float": "Float", + "Operator": "Operator", + "Error": "Error" + }, + "contexts": { + "Normal": { + "attribute": "Normal", + "line-end-context": "#stay", + "rules": [ + { "type": "DetectSpaces", "attribute": "Normal", "context": "#stay" }, + { "type": "DetectChar", "attribute": "Preprocessor", "context": "preprocessor", "char": "#", "first-non-space": true }, + { "type": "Detect2Chars", "attribute": "Comment", "context": "comment-block", "char": "/", "char1": "*" }, + { "type": "Detect2Chars", "attribute": "Comment", "context": "comment-line", "char": "/", "char1": "/" }, + { "type": "DetectChar", "attribute": "String", "context": "string", "char": "\"" }, + { "type": "DetectChar", "attribute": "Char", "context": "char", "char": "'" }, + { "type": "Hex", "attribute": "BaseN", "context": "#stay" }, + { "type": "Float", "attribute": "Float", "context": "#stay" }, + { "type": "Int", "attribute": "DecVal", "context": "#stay" }, + { "type": "keyword", "attribute": "ControlFlow", "context": "#stay", "String": "controlflow" }, + { "type": "keyword", "attribute": "DataType", "context": "#stay", "String": "types" }, + { "type": "keyword", "attribute": "DataType", "context": "#stay", "String": "modifiers" }, + { "type": "keyword", "attribute": "Keyword", "context": "#stay", "String": "keywords" }, + { "type": "Detect2Chars", "attribute": "Operator", "context": "#stay", "char": "-", "char1": ">" }, + { "type": "AnyChar", "attribute": "Operator", "context": "#stay", "String": "+-*/%=<>!&|^~?:." }, + { "type": "AnyChar", "attribute": "Normal", "context": "#stay", "String": "{}[](),;" }, + { "type": "DetectIdentifier", "attribute": "Normal", "context": "#stay" } + ] + }, + "preprocessor": { + "attribute": "Preprocessor", + "line-end-context": "#pop", + "rules": [ + { "type": "Detect2Chars", "attribute": "Comment", "context": "comment-block", "char": "/", "char1": "*" }, + { "type": "Detect2Chars", "attribute": "Comment", "context": "comment-line", "char": "/", "char1": "/" }, + { "type": "DetectChar", "attribute": "String", "context": "string", "char": "\"" }, + { "type": "DetectChar", "attribute": "String", "context": "include-angle", "char": "<" }, + { "type": "keyword", "attribute": "Preprocessor", "context": "#stay", "String": "pp-directives" }, + { "type": "DetectSpaces", "attribute": "Preprocessor", "context": "#stay" }, + { "type": "Hex", "attribute": "BaseN", "context": "#stay" }, + { "type": "Int", "attribute": "DecVal", "context": "#stay" }, + { "type": "DetectIdentifier", "attribute": "Preprocessor", "context": "#stay" } + ] + }, + "include-angle": { + "attribute": "String", + "line-end-context": "#pop", + "rules": [ + { "type": "DetectChar", "attribute": "String", "context": "#pop", "char": ">" } + ] + }, + "comment-line": { + "attribute": "Comment", + "line-end-context": "#pop", + "rules": [ + { "type": "DetectSpaces", "attribute": "Comment", "context": "#stay" }, + { "type": "DetectIdentifier", "attribute": "Comment", "context": "#stay" } + ] + }, + "comment-block": { + "attribute": "Comment", + "line-end-context": "#stay", + "rules": [ + { "type": "Detect2Chars", "attribute": "Comment", "context": "#pop", "char": "*", "char1": "/" }, + { "type": "DetectSpaces", "attribute": "Comment", "context": "#stay" }, + { "type": "DetectIdentifier", "attribute": "Comment", "context": "#stay" } + ] + }, + "string": { + "attribute": "String", + "line-end-context": "#pop", + "rules": [ + { "type": "DetectChar", "attribute": "String", "context": "#pop", "char": "\"" }, + { "type": "Detect2Chars", "attribute": "SpecialChar", "context": "#stay", "char": "\\", "char1": "\\" }, + { "type": "Detect2Chars", "attribute": "SpecialChar", "context": "#stay", "char": "\\", "char1": "\"" }, + { "type": "Detect2Chars", "attribute": "SpecialChar", "context": "#stay", "char": "\\", "char1": "n" }, + { "type": "Detect2Chars", "attribute": "SpecialChar", "context": "#stay", "char": "\\", "char1": "t" }, + { "type": "Detect2Chars", "attribute": "SpecialChar", "context": "#stay", "char": "\\", "char1": "r" }, + { "type": "Detect2Chars", "attribute": "SpecialChar", "context": "#stay", "char": "\\", "char1": "0" } + ] + }, + "char": { + "attribute": "Char", + "line-end-context": "#pop", + "rules": [ + { "type": "DetectChar", "attribute": "Char", "context": "#pop", "char": "'" }, + { "type": "Detect2Chars", "attribute": "SpecialChar", "context": "#stay", "char": "\\", "char1": "\\" }, + { "type": "Detect2Chars", "attribute": "SpecialChar", "context": "#stay", "char": "\\", "char1": "'" }, + { "type": "Detect2Chars", "attribute": "SpecialChar", "context": "#stay", "char": "\\", "char1": "n" }, + { "type": "Detect2Chars", "attribute": "SpecialChar", "context": "#stay", "char": "\\", "char1": "t" }, + { "type": "Detect2Chars", "attribute": "SpecialChar", "context": "#stay", "char": "\\", "char1": "r" }, + { "type": "Detect2Chars", "attribute": "SpecialChar", "context": "#stay", "char": "\\", "char1": "0" } + ] + } + } +} diff --git a/highlight/resources/syntax/cmake.json b/highlight/resources/syntax/cmake.json new file mode 100644 index 0000000..9d39c8d --- /dev/null +++ b/highlight/resources/syntax/cmake.json @@ -0,0 +1,2236 @@ +{ + "metadata": { + "copyright": [ + "SPDX-FileCopyrightText: 2026 The Goldfish Scheme Authors", + "SPDX-FileCopyrightText: CMake syntax derived from cmake.xml by Alexander Neundorf, Dominik Haumann, Matthew Woehlke and Alex Turbov (KDE syntax-highlighting)" + ], + "license": "SPDX-License-Identifier: LGPL-2.0-or-later", + "name": "CMake" + }, + "name": "CMake", + "extensions": [ + "CMakeLists.txt", + "*.cmake", + "*.cmake.in" + ], + "initial-context": "Normal Text", + "lists": { + "controlflow": [ + "break", + "continue", + "elseif", + "else", + "endforeach", + "endif", + "endwhile", + "foreach", + "if", + "return", + "while" + ], + "commands": [ + "block", + "cmake_diagnostic", + "cmake_host_system_information", + "cmake_language", + "cmake_minimum_required", + "cmake_parse_arguments", + "cmake_path", + "cmake_pkg_config", + "cmake_policy", + "configure_file", + "endblock", + "endfunction", + "endmacro", + "execute_process", + "file", + "find_file", + "find_library", + "find_package", + "find_path", + "find_program", + "function", + "get_cmake_property", + "get_directory_property", + "get_filename_component", + "get_property", + "include", + "include_guard", + "list", + "macro", + "mark_as_advanced", + "math", + "message", + "option", + "separate_arguments", + "set_directory_properties", + "set_property", + "set", + "site_name", + "string", + "unset", + "variable_watch", + "add_compile_definitions", + "add_compile_options", + "add_custom_command", + "add_custom_rule", + "add_custom_target", + "add_definitions", + "add_dependencies", + "add_executable", + "add_library", + "add_link_options", + "add_subdirectory", + "add_test", + "aux_source_directory", + "build_command", + "cmake_file_api", + "cmake_instrumentation", + "create_test_sourcelist", + "define_property", + "discover_tests", + "enable_language", + "enable_testing", + "export", + "fltk_wrap_ui", + "get_source_file_property", + "get_target_property", + "get_test_property", + "include_directories", + "include_external_msproject", + "include_regular_expression", + "install", + "link_directories", + "link_libraries", + "load_cache", + "project", + "qt_wrap_cpp", + "qt_wrap_ui", + "remove_definitions", + "set_source_files_properties", + "set_target_properties", + "set_tests_properties", + "source_group", + "target_compile_definitions", + "target_compile_features", + "target_compile_options", + "target_include_directories", + "target_link_directories", + "target_link_libraries", + "target_link_options", + "target_precompile_headers", + "target_sources", + "try_compile", + "try_run", + "ctest_build", + "ctest_configure", + "ctest_coverage", + "ctest_empty_binary_directory", + "ctest_memcheck", + "ctest_read_custom_files", + "ctest_run_script", + "ctest_sleep", + "ctest_start", + "ctest_submit", + "ctest_test", + "ctest_update", + "ctest_upload" + ], + "provided": [ + "android_add_test_data", + "fixup_bundle", + "copy_and_fixup_bundle", + "verify_app", + "get_bundle_main_executable", + "get_dotapp_dir", + "get_bundle_and_executable", + "get_bundle_all_executables", + "get_item_key", + "get_item_rpaths", + "clear_bundle_keys", + "set_bundle_key_values", + "get_bundle_keys", + "copy_resolved_item_into_bundle", + "copy_resolved_framework_into_bundle", + "fixup_bundle_item", + "verify_bundle_prerequisites", + "verify_bundle_symlinks", + "check_c_compiler_flag", + "check_compiler_flag", + "check_c_source_compiles", + "check_c_source_runs", + "check_cxx_compiler_flag", + "check_cxx_source_compiles", + "check_cxx_source_runs", + "check_cxx_symbol_exists", + "check_fortran_compiler_flag", + "check_fortran_function_exists", + "check_fortran_source_compiles", + "check_fortran_source_runs", + "check_function_exists", + "check_include_file_cxx", + "check_include_file", + "check_include_files", + "check_ipo_supported", + "check_language", + "check_library_exists", + "check_linker_flag", + "check_objc_compiler_flag", + "check_objc_source_compiles", + "check_objc_source_runs", + "check_objcxx_compiler_flag", + "check_objcxx_source_compiles", + "check_objcxx_source_runs", + "check_pie_supported", + "check_prototype_definition", + "check_source_compiles", + "check_source_runs", + "check_struct_has_member", + "check_symbol_exists", + "check_type_size", + "check_variable_exists", + "cmake_add_fortran_subdirectory", + "cmake_dependent_option", + "find_dependency", + "configure_package_config_file", + "write_basic_package_version_file", + "generate_apple_platform_selection_file", + "generate_apple_architecture_selection_file", + "cmake_print_properties", + "cmake_push_check_state", + "cmake_pop_check_state", + "cmake_reset_check_state", + "cpack_add_component", + "cpack_add_component_group", + "cpack_add_install_type", + "cpack_configure_downloads", + "cpack_ifw_configure_component", + "cpack_ifw_configure_component_group", + "cpack_ifw_add_repository", + "cpack_ifw_update_repository", + "cpack_ifw_add_package_resources", + "cpack_ifw_configure_file", + "csharp_set_windows_forms_properties", + "csharp_set_designer_cs_properties", + "csharp_set_xaml_cs_properties", + "csharp_get_filename_keys", + "csharp_get_filename_key_base", + "csharp_get_dependentupon_name", + "ctest_coverage_collect_gcov", + "write_qt4_conf", + "resolve_qt4_paths", + "fixup_qt4_executable", + "install_qt4_plugin_path", + "install_qt4_plugin", + "install_qt4_executable", + "ExternalData_Expand_Arguments", + "ExternalData_Add_Test", + "ExternalData_Add_Target", + "ExternalProject_Add", + "ExternalProject_Get_Property", + "ExternalProject_Add_Step", + "ExternalProject_Add_StepTargets", + "ExternalProject_Add_StepDependencies", + "feature_summary", + "set_package_properties", + "add_feature_info", + "set_package_info", + "set_feature_info", + "print_enabled_features", + "print_disabled_features", + "FetchContent_Declare", + "FetchContent_Populate", + "FetchContent_GetProperties", + "FetchContent_MakeAvailable", + "find_package_handle_standard_args", + "find_package_check_version", + "find_package_message", + "FortranCInterface_HEADER", + "FortranCInterface_VERIFY", + "generate_export_header", + "GNUInstallDirs_get_absolute_install_dir", + "gtest_add_tests", + "gtest_discover_tests", + "processorcount", + "select_library_configurations", + "test_big_endian", + "ecos_add_include_directories", + "ecos_add_executable", + "ecos_add_target_lib", + "ecos_adjust_directory", + "ecos_use_arm_elf_tools", + "ecos_use_i386_elf_tools", + "ecos_use_ppc_eabi_tools", + "add_jar", + "install_jar", + "install_jni_symlink", + "create_javah", + "install_jar_exports", + "export_jars", + "find_jar", + "create_javadoc", + "swig_add_library", + "swig_link_libraries", + "squish_add_test", + "bison_target", + "cxxtest_add_test", + "doxygen_add_docs", + "env_module", + "env_module_swap", + "env_module_list", + "env_module_avail", + "flex_target", + "add_flex_bison_dependency", + "gettext_create_translations", + "gettext_process_pot_file", + "gettext_process_po_files", + "hg_wc_info", + "matlab_get_version_from_release_name", + "matlab_get_release_name_from_version", + "matlab_extract_all_installed_versions_from_registry", + "matlab_get_all_valid_matlab_roots_from_registry", + "matlab_get_mex_suffix", + "matlab_get_version_from_matlab_run", + "matlab_add_unit_test", + "matlab_add_mex", + "pkg_check_modules", + "pkg_search_module", + "pkg_get_variable", + "protobuf_generate_cpp", + "protobuf_generate_python", + "protobuf_generate", + "Python_add_library", + "Python3_add_library", + "Subversion_WC_INFO", + "Subversion_WC_LOG", + "xctest_add_bundle", + "xctest_add_test" + ], + "variables": [ + "AIX", + "ALSA_LIBRARY", + "ANDROID", + "APPLE", + "ARGC", + "ARGN", + "ARGNC", + "ARGV", + "ASPELL_DEFINITIONS", + "ASPELL_EXECUTABLE", + "AVIFILE_DEFINITIONS", + "BIBER_COMPILER", + "BIBTEX_COMPILER", + "BISON_EXECUTABLE", + "BLAS_LINKER_FLAGS", + "BLA_F95", + "BLA_PREFER_PKGCONFIG", + "BLA_SIZEOF_INTEGER", + "BLA_STATIC", + "BLA_VENDOR", + "BOOSTROOT", + "BOOST_INCLUDEDIR", + "BOOST_LIBRARYDIR", + "BORLAND", + "BSD", + "BUILD_SHARED_LIBS", + "BUILD_TESTING", + "BU_CHMOD_BUNDLE_ITEMS", + "BZIP2_INCLUDE_DIR", + "BZIP2_NEED_PREFIX", + "Backtrace_HEADER", + "Backtrace_LIBRARY", + "Boost_ADDITIONAL_VERSIONS", + "Boost_ARCHITECTURE", + "Boost_COMPILER", + "Boost_DEBUG", + "Boost_INCLUDE_DIR", + "Boost_LIBRARY_DIR_DEBUG", + "Boost_LIBRARY_DIR_RELEASE", + "Boost_LIB_PREFIX", + "Boost_NAMESPACE", + "Boost_NO_SYSTEM_PATHS", + "Boost_NO_WARN_NEW_VERSIONS", + "Boost_REALPATH", + "Boost_THREADAPI", + "Boost_USE_DEBUG_LIBS", + "Boost_USE_DEBUG_PYTHON", + "Boost_USE_DEBUG_RUNTIME", + "Boost_USE_MULTITHREADED", + "Boost_USE_RELEASE_LIBS", + "Boost_USE_STATIC_LIBS", + "Boost_USE_STATIC_RUNTIME", + "Boost_USE_STLPORT", + "Boost_USE_STLPORT_DEPRECATED_NATIVE_IOSTREAMS", + "Boost_VERSION_COUNT", + "Boost_VERSION_MACRO", + "CABLE", + "CABLE_INCLUDE_DIR", + "CABLE_TCL_LIBRARY", + "CMAKE_ABSOLUTE_DESTINATION_FILES", + "CMAKE_ADD_CUSTOM_COMMAND_DEPENDS_EXPLICIT_ONLY", + "CMAKE_ADSP_ROOT", + "CMAKE_AIX_EXPORT_ALL_SYMBOLS", + "CMAKE_AIX_SHARED_LIBRARY_ARCHIVE", + "CMAKE_ANDROID_ANT_ADDITIONAL_OPTIONS", + "CMAKE_ANDROID_API", + "CMAKE_ANDROID_API_MIN", + "CMAKE_ANDROID_ARCH", + "CMAKE_ANDROID_ARCH_ABI", + "CMAKE_ANDROID_ARM_MODE", + "CMAKE_ANDROID_ARM_NEON", + "CMAKE_ANDROID_ASSETS_DIRECTORIES", + "CMAKE_ANDROID_GUI", + "CMAKE_ANDROID_JAR_DEPENDENCIES", + "CMAKE_ANDROID_JAR_DIRECTORIES", + "CMAKE_ANDROID_JAVA_SOURCE_DIR", + "CMAKE_ANDROID_NATIVE_LIB_DEPENDENCIES", + "CMAKE_ANDROID_NATIVE_LIB_DIRECTORIES", + "CMAKE_ANDROID_NDK", + "CMAKE_ANDROID_NDK_DEPRECATED_HEADERS", + "CMAKE_ANDROID_NDK_TOOLCHAIN_HOST_TAG", + "CMAKE_ANDROID_NDK_TOOLCHAIN_VERSION", + "CMAKE_ANDROID_NDK_VERSION", + "CMAKE_ANDROID_PROCESS_MAX", + "CMAKE_ANDROID_PROGUARD", + "CMAKE_ANDROID_PROGUARD_CONFIG_PATH", + "CMAKE_ANDROID_SECURE_PROPS_PATH", + "CMAKE_ANDROID_SKIP_ANT_STEP", + "CMAKE_ANDROID_STANDALONE_TOOLCHAIN", + "CMAKE_ANDROID_STL_TYPE", + "CMAKE_ANSI_CXXFLAGS", + "CMAKE_APPBUNDLE_PATH", + "CMAKE_APPLE_SILICON_PROCESSOR", + "CMAKE_AR", + "CMAKE_ARCHIVE_OUTPUT_DIRECTORY", + "CMAKE_ARGC", + "CMAKE_AUTOGEN_BETTER_GRAPH_MULTI_CONFIG", + "CMAKE_AUTOGEN_COMMAND_LINE_LENGTH_MAX", + "CMAKE_AUTOGEN_INTERMEDIATE_DIR_STRATEGY", + "CMAKE_AUTOGEN_ORIGIN_DEPENDS", + "CMAKE_AUTOGEN_PARALLEL", + "CMAKE_AUTOGEN_USE_SYSTEM_INCLUDE", + "CMAKE_AUTOGEN_VERBOSE", + "CMAKE_AUTOMOC", + "CMAKE_AUTOMOC_DEPEND_FILTERS", + "CMAKE_AUTOMOC_EXECUTABLE", + "CMAKE_AUTOMOC_INCLUDE_DIRECTORIES", + "CMAKE_AUTOMOC_MACRO_NAMES", + "CMAKE_AUTOMOC_MOC_OPTIONS", + "CMAKE_AUTOMOC_PATH_PREFIX", + "CMAKE_AUTORCC", + "CMAKE_AUTORCC_EXECUTABLE", + "CMAKE_AUTORCC_OPTIONS", + "CMAKE_AUTOUIC", + "CMAKE_AUTOUIC_EXECUTABLE", + "CMAKE_AUTOUIC_OPTIONS", + "CMAKE_AUTOUIC_SEARCH_PATHS", + "CMAKE_BINARY_DIR", + "CMAKE_BUILD_RPATH", + "CMAKE_BUILD_RPATH_USE_ORIGIN", + "CMAKE_BUILD_TYPE", + "CMAKE_BUILD_WITH_INSTALL_NAME_DIR", + "CMAKE_BUILD_WITH_INSTALL_RPATH", + "CMAKE_CACHEFILE_DIR", + "CMAKE_CACHE_MAJOR_VERSION", + "CMAKE_CACHE_MINOR_VERSION", + "CMAKE_CACHE_PATCH_VERSION", + "CMAKE_CFG_INTDIR", + "CMAKE_CLANG_VFS_OVERLAY", + "CMAKE_CL_64", + "CMAKE_CODEBLOCKS_COMPILER_ID", + "CMAKE_CODEBLOCKS_EXCLUDE_EXTERNAL_FILES", + "CMAKE_CODELITE_USE_TARGETS", + "CMAKE_COLOR_DIAGNOSTICS", + "CMAKE_COLOR_MAKEFILE", + "CMAKE_COMMAND", + "CMAKE_COMPILER_2005", + "CMAKE_COMPILE_PDB_OUTPUT_DIRECTORY", + "CMAKE_COMPILE_WARNING_AS_ERROR", + "CMAKE_CONFIGURATION_TYPES", + "CMAKE_CROSSCOMPILING", + "CMAKE_CROSSCOMPILING_EMULATOR", + "CMAKE_CROSS_CONFIGS", + "CMAKE_CTEST_ARGUMENTS", + "CMAKE_CTEST_COMMAND", + "CMAKE_CUDA_ARCHITECTURES", + "CMAKE_CUDA_COMPILE_FEATURES", + "CMAKE_CUDA_EXTENSIONS", + "CMAKE_CUDA_LINK_NO_PIE_SUPPORTED", + "CMAKE_CUDA_LINK_PIE_SUPPORTED", + "CMAKE_CUDA_RESOLVE_DEVICE_SYMBOLS", + "CMAKE_CUDA_RUNTIME_LIBRARY", + "CMAKE_CUDA_SEPARABLE_COMPILATION", + "CMAKE_CUDA_STANDARD", + "CMAKE_CUDA_STANDARD_REQUIRED", + "CMAKE_CUDA_TOOLKIT_INCLUDE_DIRECTORIES", + "CMAKE_CURRENT_BINARY_DIR", + "CMAKE_CURRENT_FUNCTION", + "CMAKE_CURRENT_FUNCTION_LIST_DIR", + "CMAKE_CURRENT_FUNCTION_LIST_FILE", + "CMAKE_CURRENT_FUNCTION_LIST_LINE", + "CMAKE_CURRENT_LIST_DIR", + "CMAKE_CURRENT_LIST_FILE", + "CMAKE_CURRENT_LIST_LINE", + "CMAKE_CURRENT_SOURCE_DIR", + "CMAKE_CXX_COMPILE_BMI", + "CMAKE_CXX_COMPILE_FEATURES", + "CMAKE_CXX_EXTENSIONS", + "CMAKE_CXX_LINK_NO_PIE_SUPPORTED", + "CMAKE_CXX_LINK_PIE_SUPPORTED", + "CMAKE_CXX_MODULE_BMI_ONLY_FLAG", + "CMAKE_CXX_MODULE_MAP_FLAG", + "CMAKE_CXX_MODULE_MAP_FORMAT", + "CMAKE_CXX_SCAN_FOR_MODULES", + "CMAKE_CXX_STANDARD", + "CMAKE_CXX_STANDARD_REQUIRED", + "CMAKE_CXX_STDLIB_MODULES_JSON", + "CMAKE_C_COMPILE_FEATURES", + "CMAKE_C_EXTENSIONS", + "CMAKE_C_LINK_NO_PIE_SUPPORTED", + "CMAKE_C_LINK_PIE_SUPPORTED", + "CMAKE_C_STANDARD", + "CMAKE_C_STANDARD_REQUIRED", + "CMAKE_DEBUGGER_WORKING_DIRECTORY", + "CMAKE_DEBUG_POSTFIX", + "CMAKE_DEBUG_TARGET_PROPERTIES", + "CMAKE_DEFAULT_BUILD_TYPE", + "CMAKE_DEFAULT_CONFIGS", + "CMAKE_DEPENDS_IN_PROJECT_ONLY", + "CMAKE_DIRECTORY_LABELS", + "CMAKE_DISABLE_PRECOMPILE_HEADERS", + "CMAKE_DLL_NAME_WITH_SOVERSION", + "CMAKE_DL_LIBS", + "CMAKE_DOTNET_SDK", + "CMAKE_DOTNET_TARGET_FRAMEWORK", + "CMAKE_DOTNET_TARGET_FRAMEWORK_VERSION", + "CMAKE_ECLIPSE_GENERATE_LINKED_RESOURCES", + "CMAKE_ECLIPSE_GENERATE_SOURCE_PROJECT", + "CMAKE_ECLIPSE_MAKE_ARGUMENTS", + "CMAKE_ECLIPSE_RESOURCE_ENCODING", + "CMAKE_ECLIPSE_VERSION", + "CMAKE_EDIT_COMMAND", + "CMAKE_ERROR_DEPRECATED", + "CMAKE_ERROR_ON_ABSOLUTE_INSTALL_DESTINATION", + "CMAKE_EXECUTABLE_ENABLE_EXPORTS", + "CMAKE_EXECUTABLE_SUFFIX", + "CMAKE_EXECUTE_PROCESS_COMMAND_ECHO", + "CMAKE_EXECUTE_PROCESS_COMMAND_ERROR_IS_FATAL", + "CMAKE_EXE_LINKER_FLAGS", + "CMAKE_EXE_LINKER_FLAGS_INIT", + "CMAKE_EXPORT_BUILD_DATABASE", + "CMAKE_EXPORT_COMPILE_COMMANDS", + "CMAKE_EXPORT_NO_PACKAGE_REGISTRY", + "CMAKE_EXPORT_PACKAGE_REGISTRY", + "CMAKE_EXTRA_INCLUDE_FILES", + "CMAKE_EXTRA_SHARED_LIBRARY_SUFFIXES", + "CMAKE_FIND_APPBUNDLE", + "CMAKE_FIND_DEBUG_MODE", + "CMAKE_FIND_DEBUG_MODE_NO_IMPLICIT_CONFIGURE_LOG", + "CMAKE_FIND_FRAMEWORK", + "CMAKE_FIND_FRAMEWORK_EXTRA_LOCATIONS", + "CMAKE_FIND_LIBRARY_CUSTOM_LIB_SUFFIX", + "CMAKE_FIND_LIBRARY_PREFIXES", + "CMAKE_FIND_LIBRARY_SUFFIXES", + "CMAKE_FIND_NO_INSTALL_PREFIX", + "CMAKE_FIND_PACKAGE_NAME", + "CMAKE_FIND_PACKAGE_PREFER_CONFIG", + "CMAKE_FIND_PACKAGE_REDIRECTS_DIR", + "CMAKE_FIND_PACKAGE_RESOLVE_SYMLINKS", + "CMAKE_FIND_PACKAGE_SORT_DIRECTION", + "CMAKE_FIND_PACKAGE_SORT_ORDER", + "CMAKE_FIND_PACKAGE_TARGETS_GLOBAL", + "CMAKE_FIND_PACKAGE_WARN_NO_MODULE", + "CMAKE_FIND_REQUIRED", + "CMAKE_FIND_ROOT_PATH", + "CMAKE_FIND_ROOT_PATH_MODE_INCLUDE", + "CMAKE_FIND_ROOT_PATH_MODE_LIBRARY", + "CMAKE_FIND_ROOT_PATH_MODE_PACKAGE", + "CMAKE_FIND_ROOT_PATH_MODE_PROGRAM", + "CMAKE_FIND_USE_CMAKE_ENVIRONMENT_PATH", + "CMAKE_FIND_USE_CMAKE_PATH", + "CMAKE_FIND_USE_CMAKE_SYSTEM_PATH", + "CMAKE_FIND_USE_INSTALL_PREFIX", + "CMAKE_FIND_USE_PACKAGE_REGISTRY", + "CMAKE_FIND_USE_PACKAGE_ROOT_PATH", + "CMAKE_FIND_USE_SYSTEM_ENVIRONMENT_PATH", + "CMAKE_FIND_USE_SYSTEM_PACKAGE_REGISTRY", + "CMAKE_FOLDER", + "CMAKE_FRAMEWORK", + "CMAKE_FRAMEWORK_PATH", + "CMAKE_Fortran_FORMAT", + "CMAKE_Fortran_LINK_NO_PIE_SUPPORTED", + "CMAKE_Fortran_LINK_PIE_SUPPORTED", + "CMAKE_Fortran_MODDIR_DEFAULT", + "CMAKE_Fortran_MODDIR_FLAG", + "CMAKE_Fortran_MODOUT_FLAG", + "CMAKE_Fortran_MODULE_DIRECTORY", + "CMAKE_Fortran_PREPROCESS", + "CMAKE_GENERATOR", + "CMAKE_GENERATOR_INSTANCE", + "CMAKE_GENERATOR_NO_COMPILER_ENV", + "CMAKE_GENERATOR_PLATFORM", + "CMAKE_GENERATOR_TOOLSET", + "CMAKE_GET_OS_RELEASE_FALLBACK_RESULT", + "CMAKE_GET_OS_RELEASE_FALLBACK_SCRIPTS", + "CMAKE_GET_RUNTIME_DEPENDENCIES_COMMAND", + "CMAKE_GET_RUNTIME_DEPENDENCIES_PLATFORM", + "CMAKE_GET_RUNTIME_DEPENDENCIES_TOOL", + "CMAKE_GLOBAL_AUTOGEN_TARGET", + "CMAKE_GLOBAL_AUTOGEN_TARGET_NAME", + "CMAKE_GLOBAL_AUTORCC_TARGET", + "CMAKE_GLOBAL_AUTORCC_TARGET_NAME", + "CMAKE_GNUtoMS", + "CMAKE_GTEST_DISCOVER_TESTS_DISCOVERY_MODE", + "CMAKE_HAS_ANSI_STRING_STREAM", + "CMAKE_HIP_ARCHITECTURES", + "CMAKE_HIP_EXTENSIONS", + "CMAKE_HIP_LINK_NO_PIE_SUPPORTED", + "CMAKE_HIP_LINK_PIE_SUPPORTED", + "CMAKE_HIP_PLATFORM", + "CMAKE_HIP_STANDARD", + "CMAKE_HIP_STANDARD_REQUIRED", + "CMAKE_HOST_AIX", + "CMAKE_HOST_APPLE", + "CMAKE_HOST_BSD", + "CMAKE_HOST_EXECUTABLE_SUFFIX", + "CMAKE_HOST_LINUX", + "CMAKE_HOST_SOLARIS", + "CMAKE_HOST_SYSTEM", + "CMAKE_HOST_SYSTEM_NAME", + "CMAKE_HOST_SYSTEM_PROCESSOR", + "CMAKE_HOST_SYSTEM_VERSION", + "CMAKE_HOST_UNIX", + "CMAKE_HOST_WIN32", + "CMAKE_HP_PTHREADS_INIT", + "CMAKE_IGNORE_PATH", + "CMAKE_IGNORE_PREFIX_PATH", + "CMAKE_IMPORT_LIBRARY_PREFIX", + "CMAKE_IMPORT_LIBRARY_SUFFIX", + "CMAKE_INCLUDE_CURRENT_DIR", + "CMAKE_INCLUDE_CURRENT_DIR_IN_INTERFACE", + "CMAKE_INCLUDE_DIRECTORIES_BEFORE", + "CMAKE_INCLUDE_DIRECTORIES_PROJECT_BEFORE", + "CMAKE_INCLUDE_PATH", + "CMAKE_INSTALL_BINDIR", + "CMAKE_INSTALL_DATADIR", + "CMAKE_INSTALL_DATAROOTDIR", + "CMAKE_INSTALL_DEBUG_LIBRARIES", + "CMAKE_INSTALL_DEBUG_LIBRARIES_ONLY", + "CMAKE_INSTALL_DEFAULT_COMPONENT_NAME", + "CMAKE_INSTALL_DEFAULT_DIRECTORY_PERMISSIONS", + "CMAKE_INSTALL_DOCDIR", + "CMAKE_INSTALL_FULL_BINDIR", + "CMAKE_INSTALL_FULL_DATADIR", + "CMAKE_INSTALL_FULL_DATAROOTDIR", + "CMAKE_INSTALL_FULL_DOCDIR", + "CMAKE_INSTALL_FULL_INCLUDEDIR", + "CMAKE_INSTALL_FULL_INFODIR", + "CMAKE_INSTALL_FULL_LIBDIR", + "CMAKE_INSTALL_FULL_LIBEXECDIR", + "CMAKE_INSTALL_FULL_LOCALEDIR", + "CMAKE_INSTALL_FULL_LOCALSTATEDIR", + "CMAKE_INSTALL_FULL_MANDIR", + "CMAKE_INSTALL_FULL_OLDINCLUDEDIR", + "CMAKE_INSTALL_FULL_RUNSTATEDIR", + "CMAKE_INSTALL_FULL_SBINDIR", + "CMAKE_INSTALL_FULL_SHAREDSTATEDIR", + "CMAKE_INSTALL_FULL_SYSCONFDIR", + "CMAKE_INSTALL_INCLUDEDIR", + "CMAKE_INSTALL_INFODIR", + "CMAKE_INSTALL_LIBDIR", + "CMAKE_INSTALL_LIBEXECDIR", + "CMAKE_INSTALL_LOCALEDIR", + "CMAKE_INSTALL_LOCALSTATEDIR", + "CMAKE_INSTALL_MANDIR", + "CMAKE_INSTALL_MESSAGE", + "CMAKE_INSTALL_MFC_LIBRARIES", + "CMAKE_INSTALL_NAME_DIR", + "CMAKE_INSTALL_OLDINCLUDEDIR", + "CMAKE_INSTALL_OPENMP_LIBRARIES", + "CMAKE_INSTALL_PREFIX", + "CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT", + "CMAKE_INSTALL_REMOVE_ENVIRONMENT_RPATH", + "CMAKE_INSTALL_RPATH", + "CMAKE_INSTALL_RPATH_USE_LINK_PATH", + "CMAKE_INSTALL_RUNSTATEDIR", + "CMAKE_INSTALL_SBINDIR", + "CMAKE_INSTALL_SBOM_FORMATS", + "CMAKE_INSTALL_SHAREDSTATEDIR", + "CMAKE_INSTALL_SYSCONFDIR", + "CMAKE_INSTALL_SYSTEM_RUNTIME_COMPONENT", + "CMAKE_INSTALL_SYSTEM_RUNTIME_DESTINATION", + "CMAKE_INSTALL_SYSTEM_RUNTIME_LIBS", + "CMAKE_INSTALL_SYSTEM_RUNTIME_LIBS_NO_WARNINGS", + "CMAKE_INSTALL_SYSTEM_RUNTIME_LIBS_SKIP", + "CMAKE_INSTALL_UCRT_LIBRARIES", + "CMAKE_INTERMEDIATE_DIR_STRATEGY", + "CMAKE_INTERPROCEDURAL_OPTIMIZATION", + "CMAKE_ISPC_HEADER_DIRECTORY", + "CMAKE_ISPC_HEADER_SUFFIX", + "CMAKE_ISPC_INSTRUCTION_SETS", + "CMAKE_JAR_CLASSES_PREFIX", + "CMAKE_JAVA_COMPILE_FLAGS", + "CMAKE_JAVA_INCLUDE_PATH", + "CMAKE_JNI_TARGET", + "CMAKE_JOB_POOLS", + "CMAKE_JOB_POOL_COMPILE", + "CMAKE_JOB_POOL_LINK", + "CMAKE_LIBRARY_ARCHITECTURE", + "CMAKE_LIBRARY_ARCHITECTURE_REGEX", + "CMAKE_LIBRARY_OUTPUT_DIRECTORY", + "CMAKE_LIBRARY_PATH", + "CMAKE_LIBRARY_PATH_FLAG", + "CMAKE_LINKER_TYPE", + "CMAKE_LINK_DEF_FILE_FLAG", + "CMAKE_LINK_DEPENDS_NO_SHARED", + "CMAKE_LINK_DEPENDS_USE_LINKER", + "CMAKE_LINK_DIRECTORIES_BEFORE", + "CMAKE_LINK_INTERFACE_LIBRARIES", + "CMAKE_LINK_LIBRARIES_ONLY_TARGETS", + "CMAKE_LINK_LIBRARIES_STRATEGY", + "CMAKE_LINK_LIBRARY_FILE_FLAG", + "CMAKE_LINK_LIBRARY_FLAG", + "CMAKE_LINK_LIBRARY_SUFFIX", + "CMAKE_LINK_SEARCH_END_STATIC", + "CMAKE_LINK_SEARCH_START_STATIC", + "CMAKE_LINK_WARNING_AS_ERROR", + "CMAKE_LINK_WHAT_YOU_USE", + "CMAKE_LINK_WHAT_YOU_USE_CHECK", + "CMAKE_MACOSX_BUNDLE", + "CMAKE_MACOSX_RPATH", + "CMAKE_MAJOR_VERSION", + "CMAKE_MAKE_PROGRAM", + "CMAKE_MATCH_COUNT", + "CMAKE_MAXIMUM_RECURSION_DEPTH", + "CMAKE_MESSAGE_CONTEXT", + "CMAKE_MESSAGE_CONTEXT_SHOW", + "CMAKE_MESSAGE_INDENT", + "CMAKE_MESSAGE_LOG_LEVEL", + "CMAKE_MFC_FLAG", + "CMAKE_MINIMUM_REQUIRED_VERSION", + "CMAKE_MINOR_VERSION", + "CMAKE_MODULE_LINKER_FLAGS", + "CMAKE_MODULE_LINKER_FLAGS_INIT", + "CMAKE_MODULE_PATH", + "CMAKE_MSVCIDE_RUN_PATH", + "CMAKE_MSVC_DEBUG_INFORMATION_FORMAT", + "CMAKE_MSVC_RUNTIME_CHECKS", + "CMAKE_MSVC_RUNTIME_LIBRARY", + "CMAKE_NETRC", + "CMAKE_NETRC_FILE", + "CMAKE_NINJA_OUTPUT_PATH_PREFIX", + "CMAKE_NO_ANSI_FOR_SCOPE", + "CMAKE_NO_ANSI_STREAM_HEADERS", + "CMAKE_NO_ANSI_STRING_STREAM", + "CMAKE_NO_BUILTIN_CHRPATH", + "CMAKE_NO_STD_NAMESPACE", + "CMAKE_NO_SYSTEM_FROM_IMPORTED", + "CMAKE_OBJCXX_EXTENSIONS", + "CMAKE_OBJCXX_LINK_NO_PIE_SUPPORTED", + "CMAKE_OBJCXX_LINK_PIE_SUPPORTED", + "CMAKE_OBJCXX_STANDARD", + "CMAKE_OBJCXX_STANDARD_REQUIRED", + "CMAKE_OBJC_EXTENSIONS", + "CMAKE_OBJC_LINK_NO_PIE_SUPPORTED", + "CMAKE_OBJC_LINK_PIE_SUPPORTED", + "CMAKE_OBJC_STANDARD", + "CMAKE_OBJC_STANDARD_REQUIRED", + "CMAKE_OBJECT_PATH_MAX", + "CMAKE_OPTIMIZE_DEPENDENCIES", + "CMAKE_OSX_ARCHITECTURES", + "CMAKE_OSX_DEPLOYMENT_TARGET", + "CMAKE_OSX_SYSROOT", + "CMAKE_PARENT_LIST_FILE", + "CMAKE_PATCH_VERSION", + "CMAKE_PCH_INSTANTIATE_TEMPLATES", + "CMAKE_PCH_WARN_INVALID", + "CMAKE_PDB_OUTPUT_DIRECTORY", + "CMAKE_PKG_CONFIG_ALLOW_SYS_INCLUDES", + "CMAKE_PKG_CONFIG_ALLOW_SYS_LIBS", + "CMAKE_PKG_CONFIG_CFLAGS", + "CMAKE_PKG_CONFIG_COMPILE_OPTIONS", + "CMAKE_PKG_CONFIG_CONFLICTS", + "CMAKE_PKG_CONFIG_DESCRIPTION", + "CMAKE_PKG_CONFIG_DISABLE_UNINSTALLED", + "CMAKE_PKG_CONFIG_INCLUDES", + "CMAKE_PKG_CONFIG_LIBDIRS", + "CMAKE_PKG_CONFIG_LIBNAMES", + "CMAKE_PKG_CONFIG_LIBS", + "CMAKE_PKG_CONFIG_LINK_OPTIONS", + "CMAKE_PKG_CONFIG_NAME", + "CMAKE_PKG_CONFIG_PC_LIB_DIRS", + "CMAKE_PKG_CONFIG_PC_PATH", + "CMAKE_PKG_CONFIG_PKGCONF_INCLUDES", + "CMAKE_PKG_CONFIG_PROVIDES", + "CMAKE_PKG_CONFIG_REQUIRES", + "CMAKE_PKG_CONFIG_SYSROOT_DIR", + "CMAKE_PKG_CONFIG_SYS_INCLUDE_DIRS", + "CMAKE_PKG_CONFIG_SYS_LIB_DIRS", + "CMAKE_PKG_CONFIG_TOP_BUILD_DIR", + "CMAKE_PLATFORM_NO_VERSIONED_SONAME", + "CMAKE_POLICY_VERSION_MINIMUM", + "CMAKE_POSITION_INDEPENDENT_CODE", + "CMAKE_PREFIX_PATH", + "CMAKE_PROGRAM_PATH", + "CMAKE_PROJECT_COMPAT_VERSION", + "CMAKE_PROJECT_DESCRIPTION", + "CMAKE_PROJECT_HOMEPAGE_URL", + "CMAKE_PROJECT_INCLUDE", + "CMAKE_PROJECT_INCLUDE_BEFORE", + "CMAKE_PROJECT_NAME", + "CMAKE_PROJECT_SPDX_LICENSE", + "CMAKE_PROJECT_TOP_LEVEL_INCLUDES", + "CMAKE_PROJECT_VERSION", + "CMAKE_PROJECT_VERSION_MAJOR", + "CMAKE_PROJECT_VERSION_MINOR", + "CMAKE_PROJECT_VERSION_PATCH", + "CMAKE_PROJECT_VERSION_TWEAK", + "CMAKE_RANLIB", + "CMAKE_REQUIRED_DEFINITIONS", + "CMAKE_REQUIRED_FLAGS", + "CMAKE_REQUIRED_INCLUDES", + "CMAKE_REQUIRED_LIBRARIES", + "CMAKE_REQUIRED_LINK_DIRECTORIES", + "CMAKE_REQUIRED_LINK_OPTIONS", + "CMAKE_REQUIRED_QUIET", + "CMAKE_ROOT", + "CMAKE_RULE_MESSAGES", + "CMAKE_RUNTIME_OUTPUT_DIRECTORY", + "CMAKE_SCRIPT_MODE_FILE", + "CMAKE_SHARED_LIBRARY_ENABLE_EXPORTS", + "CMAKE_SHARED_LIBRARY_PREFIX", + "CMAKE_SHARED_LIBRARY_SUFFIX", + "CMAKE_SHARED_LINKER_FLAGS", + "CMAKE_SHARED_LINKER_FLAGS_INIT", + "CMAKE_SHARED_MODULE_PREFIX", + "CMAKE_SHARED_MODULE_SUFFIX", + "CMAKE_SIZEOF_VOID_P", + "CMAKE_SKIP_BUILD_RPATH", + "CMAKE_SKIP_INSTALL_ALL_DEPENDENCY", + "CMAKE_SKIP_INSTALL_PREP_TARGETS", + "CMAKE_SKIP_INSTALL_RPATH", + "CMAKE_SKIP_INSTALL_RULES", + "CMAKE_SKIP_LINTING", + "CMAKE_SKIP_RPATH", + "CMAKE_SKIP_TEST_ALL_DEPENDENCY", + "CMAKE_SKIP_TEST_PREP_TARGETS", + "CMAKE_SOURCE_DIR", + "CMAKE_STAGING_PREFIX", + "CMAKE_STATIC_LIBRARY_PREFIX", + "CMAKE_STATIC_LIBRARY_SUFFIX", + "CMAKE_STATIC_LINKER_FLAGS", + "CMAKE_STATIC_LINKER_FLAGS_INIT", + "CMAKE_SUBLIME_TEXT_2_ENV_SETTINGS", + "CMAKE_SUBLIME_TEXT_2_EXCLUDE_BUILD_TREE", + "CMAKE_SUPPRESS_REGENERATION", + "CMAKE_SWIG_FLAGS", + "CMAKE_SWIG_OUTDIR", + "CMAKE_SYSROOT", + "CMAKE_SYSROOT_COMPILE", + "CMAKE_SYSROOT_LINK", + "CMAKE_SYSTEM", + "CMAKE_SYSTEM_APPBUNDLE_PATH", + "CMAKE_SYSTEM_FRAMEWORK_PATH", + "CMAKE_SYSTEM_IGNORE_PATH", + "CMAKE_SYSTEM_IGNORE_PREFIX_PATH", + "CMAKE_SYSTEM_INCLUDE_PATH", + "CMAKE_SYSTEM_LIBRARY_PATH", + "CMAKE_SYSTEM_NAME", + "CMAKE_SYSTEM_PREFIX_PATH", + "CMAKE_SYSTEM_PROCESSOR", + "CMAKE_SYSTEM_PROGRAM_PATH", + "CMAKE_SYSTEM_VERSION", + "CMAKE_Swift_COMPILATION_MODE", + "CMAKE_Swift_LANGUAGE_VERSION", + "CMAKE_Swift_MODULE_DIRECTORY", + "CMAKE_Swift_NUM_THREADS", + "CMAKE_Swift_SEPARATE_MODULE_EMISSION", + "CMAKE_TARGET_MESSAGES", + "CMAKE_TASKING_TOOLSET", + "CMAKE_TEST_LAUNCHER", + "CMAKE_THREAD_LIBS_INIT", + "CMAKE_THREAD_PREFER_PTHREAD", + "CMAKE_TOOLCHAIN_FILE", + "CMAKE_TRY_COMPILE_CONFIGURATION", + "CMAKE_TRY_COMPILE_NO_PLATFORM_VARIABLES", + "CMAKE_TRY_COMPILE_PLATFORM_VARIABLES", + "CMAKE_TRY_COMPILE_TARGET_TYPE", + "CMAKE_TWEAK_VERSION", + "CMAKE_UNITY_BUILD", + "CMAKE_UNITY_BUILD_BATCH_SIZE", + "CMAKE_UNITY_BUILD_RELOCATABLE", + "CMAKE_UNITY_BUILD_UNIQUE_ID", + "CMAKE_USER_MAKE_RULES_OVERRIDE", + "CMAKE_USE_PTHREADS_INIT", + "CMAKE_USE_SPROC_INIT", + "CMAKE_USE_WIN32_THREADS_INIT", + "CMAKE_VERBOSE_MAKEFILE", + "CMAKE_VERIFY_INTERFACE_HEADER_SETS", + "CMAKE_VERIFY_PRIVATE_HEADER_SETS", + "CMAKE_VERSION", + "CMAKE_VISIBILITY_INLINES_HIDDEN", + "CMAKE_VS_DEBUGGER_COMMAND", + "CMAKE_VS_DEBUGGER_COMMAND_ARGUMENTS", + "CMAKE_VS_DEBUGGER_ENVIRONMENT", + "CMAKE_VS_DEBUGGER_WORKING_DIRECTORY", + "CMAKE_VS_DEVENV_COMMAND", + "CMAKE_VS_GLOBALS", + "CMAKE_VS_INCLUDE_INSTALL_TO_DEFAULT_BUILD", + "CMAKE_VS_INCLUDE_PACKAGE_TO_DEFAULT_BUILD", + "CMAKE_VS_JUST_MY_CODE_DEBUGGING", + "CMAKE_VS_MSBUILD_COMMAND", + "CMAKE_VS_NUGET_PACKAGE_RESTORE", + "CMAKE_VS_NsightTegra_VERSION", + "CMAKE_VS_PLATFORM_NAME", + "CMAKE_VS_PLATFORM_NAME_DEFAULT", + "CMAKE_VS_PLATFORM_TOOLSET", + "CMAKE_VS_PLATFORM_TOOLSET_CUDA", + "CMAKE_VS_PLATFORM_TOOLSET_CUDA_CUSTOM_DIR", + "CMAKE_VS_PLATFORM_TOOLSET_HOST_ARCHITECTURE", + "CMAKE_VS_PLATFORM_TOOLSET_VERSION", + "CMAKE_VS_SDK_EXCLUDE_DIRECTORIES", + "CMAKE_VS_SDK_EXECUTABLE_DIRECTORIES", + "CMAKE_VS_SDK_INCLUDE_DIRECTORIES", + "CMAKE_VS_SDK_LIBRARY_DIRECTORIES", + "CMAKE_VS_SDK_LIBRARY_WINRT_DIRECTORIES", + "CMAKE_VS_SDK_REFERENCE_DIRECTORIES", + "CMAKE_VS_SDK_SOURCE_DIRECTORIES", + "CMAKE_VS_TARGET_FRAMEWORK_IDENTIFIER", + "CMAKE_VS_TARGET_FRAMEWORK_TARGETS_VERSION", + "CMAKE_VS_TARGET_FRAMEWORK_VERSION", + "CMAKE_VS_USE_DEBUG_LIBRARIES", + "CMAKE_VS_VERSION_BUILD_NUMBER", + "CMAKE_VS_WINDOWS_TARGET_PLATFORM_MIN_VERSION", + "CMAKE_VS_WINDOWS_TARGET_PLATFORM_VERSION", + "CMAKE_VS_WINDOWS_TARGET_PLATFORM_VERSION_MAXIMUM", + "CMAKE_VS_WINRT_BY_DEFAULT", + "CMAKE_WARN_ON_ABSOLUTE_INSTALL_DESTINATION", + "CMAKE_WATCOM_RUNTIME_LIBRARY", + "CMAKE_WIN32_EXECUTABLE", + "CMAKE_WINDOWS_EXPORT_ALL_SYMBOLS", + "CMAKE_XCODE_BUILD_SYSTEM", + "CMAKE_XCODE_GENERATE_SCHEME", + "CMAKE_XCODE_GENERATE_TOP_LEVEL_PROJECT_ONLY", + "CMAKE_XCODE_LINK_BUILD_PHASE_MODE", + "CMAKE_XCODE_PLATFORM_TOOLSET", + "CMAKE_XCODE_SCHEME_ADDRESS_SANITIZER", + "CMAKE_XCODE_SCHEME_ADDRESS_SANITIZER_USE_AFTER_RETURN", + "CMAKE_XCODE_SCHEME_DEBUG_DOCUMENT_VERSIONING", + "CMAKE_XCODE_SCHEME_DISABLE_MAIN_THREAD_CHECKER", + "CMAKE_XCODE_SCHEME_DYNAMIC_LIBRARY_LOADS", + "CMAKE_XCODE_SCHEME_DYNAMIC_LINKER_API_USAGE", + "CMAKE_XCODE_SCHEME_ENABLE_GPU_API_VALIDATION", + "CMAKE_XCODE_SCHEME_ENABLE_GPU_FRAME_CAPTURE_MODE", + "CMAKE_XCODE_SCHEME_ENABLE_GPU_SHADER_VALIDATION", + "CMAKE_XCODE_SCHEME_ENVIRONMENT", + "CMAKE_XCODE_SCHEME_GUARD_MALLOC", + "CMAKE_XCODE_SCHEME_LAUNCH_CONFIGURATION", + "CMAKE_XCODE_SCHEME_LAUNCH_MODE", + "CMAKE_XCODE_SCHEME_LLDB_INIT_FILE", + "CMAKE_XCODE_SCHEME_MAIN_THREAD_CHECKER_STOP", + "CMAKE_XCODE_SCHEME_MALLOC_GUARD_EDGES", + "CMAKE_XCODE_SCHEME_MALLOC_SCRIBBLE", + "CMAKE_XCODE_SCHEME_MALLOC_STACK", + "CMAKE_XCODE_SCHEME_TEST_CONFIGURATION", + "CMAKE_XCODE_SCHEME_THREAD_SANITIZER", + "CMAKE_XCODE_SCHEME_THREAD_SANITIZER_STOP", + "CMAKE_XCODE_SCHEME_UNDEFINED_BEHAVIOUR_SANITIZER", + "CMAKE_XCODE_SCHEME_UNDEFINED_BEHAVIOUR_SANITIZER_STOP", + "CMAKE_XCODE_SCHEME_WORKING_DIRECTORY", + "CMAKE_XCODE_SCHEME_ZOMBIE_OBJECTS", + "CMAKE_XCODE_XCCONFIG", + "CPACK_ABSOLUTE_DESTINATION_FILES", + "CPACK_APK_AAPT2_EXECUTABLE", + "CPACK_APK_AAPT2_LINK_EXTRA_OPTIONS", + "CPACK_APK_ABI", + "CPACK_APK_APKSIGNER_EXECUTABLE", + "CPACK_APK_APKSIGNER_EXTRA_OPTIONS", + "CPACK_APK_ASSET_DIRECTORIES", + "CPACK_APK_D8_EXECUTABLE", + "CPACK_APK_D8_EXTRA_OPTIONS", + "CPACK_APK_DEBUG", + "CPACK_APK_JARS", + "CPACK_APK_JAR_EXECUTABLE", + "CPACK_APK_JAVAC_EXTRA_OPTIONS", + "CPACK_APK_JAVA_HOME", + "CPACK_APK_JAVA_SOURCE_DIRECTORIES", + "CPACK_APK_KEEP_DEBUG_SYMBOLS", + "CPACK_APK_KEYSTORE", + "CPACK_APK_KEYSTORE_PASSWORD", + "CPACK_APK_KEYTOOL_EXECUTABLE", + "CPACK_APK_KEY_ALIAS", + "CPACK_APK_KEY_PASSWORD", + "CPACK_APK_MANIFEST", + "CPACK_APK_MANIFEST_PLACEHOLDERS", + "CPACK_APK_MAVEN_CACHE_DIRECTORY", + "CPACK_APK_MAVEN_DEPENDENCIES", + "CPACK_APK_MAVEN_REPOSITORIES", + "CPACK_APK_NO_COMPRESS_EXTENSIONS", + "CPACK_APK_PACKAGE", + "CPACK_APK_RESOURCE_DIRECTORIES", + "CPACK_APK_SIGN", + "CPACK_APK_STRIP_EXECUTABLE", + "CPACK_APK_VERSION_CODE", + "CPACK_APK_VERSION_NAME", + "CPACK_APK_ZIPALIGN_EXECUTABLE", + "CPACK_APK_ZIPALIGN_OPTIONS", + "CPACK_APPIMAGE_COMPRESSOR", + "CPACK_APPIMAGE_DESKTOP_FILE", + "CPACK_APPIMAGE_EXCLUDE_FILE", + "CPACK_APPIMAGE_GUESS_UPDATE_INFORMATION", + "CPACK_APPIMAGE_MKSQUASHFS_OPTIONS", + "CPACK_APPIMAGE_NO_APPSTREAM", + "CPACK_APPIMAGE_PATCHELF_EXECUTABLE", + "CPACK_APPIMAGE_RUNTIME_FILE", + "CPACK_APPIMAGE_SIGN", + "CPACK_APPIMAGE_SIGN_KEY", + "CPACK_APPIMAGE_TOOL_EXECUTABLE", + "CPACK_APPIMAGE_UPDATE_INFORMATION", + "CPACK_ARCHIVE_COMPONENT_INSTALL", + "CPACK_ARCHIVE_COMPRESSION_LEVEL", + "CPACK_ARCHIVE_ENCODING", + "CPACK_ARCHIVE_FILE_EXTENSION", + "CPACK_ARCHIVE_FILE_NAME", + "CPACK_ARCHIVE_GID", + "CPACK_ARCHIVE_THREADS", + "CPACK_ARCHIVE_UID", + "CPACK_BUILD_SOURCE_DIRS", + "CPACK_BUNDLE_APPLE_CERT_APP", + "CPACK_BUNDLE_APPLE_CODESIGN_FILES", + "CPACK_BUNDLE_APPLE_CODESIGN_PARAMETER", + "CPACK_BUNDLE_APPLE_ENTITLEMENTS", + "CPACK_BUNDLE_ICON", + "CPACK_BUNDLE_NAME", + "CPACK_BUNDLE_PLIST", + "CPACK_BUNDLE_STARTUP_COMMAND", + "CPACK_CMAKE_GENERATOR", + "CPACK_COMMAND_CODESIGN", + "CPACK_COMMAND_HDIUTIL", + "CPACK_COMMAND_PKGBUILD", + "CPACK_COMMAND_PRODUCTBUILD", + "CPACK_COMMAND_REZ", + "CPACK_COMMAND_SETFILE", + "CPACK_COMPONENTS_ALL", + "CPACK_COMPONENTS_GROUPING", + "CPACK_COMPONENT_INCLUDE_TOPLEVEL_DIRECTORY", + "CPACK_COMPRESSION_LEVEL", + "CPACK_CREATE_DESKTOP_LINKS", + "CPACK_CUSTOM_INSTALL_VARIABLES", + "CPACK_CYGWIN_BUILD_SCRIPT", + "CPACK_CYGWIN_PATCH_FILE", + "CPACK_CYGWIN_PATCH_NUMBER", + "CPACK_DEBIAN_ARCHIVE_TYPE", + "CPACK_DEBIAN_COMPRESSION_LEVEL", + "CPACK_DEBIAN_COMPRESSION_TYPE", + "CPACK_DEBIAN_DEBUGINFO_PACKAGE", + "CPACK_DEBIAN_ENABLE_COMPONENT_DEPENDS", + "CPACK_DEBIAN_FILE_NAME", + "CPACK_DEBIAN_PACKAGE_ARCHITECTURE", + "CPACK_DEBIAN_PACKAGE_BREAKS", + "CPACK_DEBIAN_PACKAGE_CONFLICTS", + "CPACK_DEBIAN_PACKAGE_CONTROL_EXTRA", + "CPACK_DEBIAN_PACKAGE_CONTROL_STRICT_PERMISSION", + "CPACK_DEBIAN_PACKAGE_DEBUG", + "CPACK_DEBIAN_PACKAGE_DEPENDS", + "CPACK_DEBIAN_PACKAGE_DESCRIPTION", + "CPACK_DEBIAN_PACKAGE_ENHANCES", + "CPACK_DEBIAN_PACKAGE_EPOCH", + "CPACK_DEBIAN_PACKAGE_GENERATE_SHLIBS", + "CPACK_DEBIAN_PACKAGE_GENERATE_SHLIBS_POLICY", + "CPACK_DEBIAN_PACKAGE_HOMEPAGE", + "CPACK_DEBIAN_PACKAGE_MAINTAINER", + "CPACK_DEBIAN_PACKAGE_MULTIARCH", + "CPACK_DEBIAN_PACKAGE_NAME", + "CPACK_DEBIAN_PACKAGE_PREDEPENDS", + "CPACK_DEBIAN_PACKAGE_PRIORITY", + "CPACK_DEBIAN_PACKAGE_PROVIDES", + "CPACK_DEBIAN_PACKAGE_RECOMMENDS", + "CPACK_DEBIAN_PACKAGE_RELEASE", + "CPACK_DEBIAN_PACKAGE_REPLACES", + "CPACK_DEBIAN_PACKAGE_SECTION", + "CPACK_DEBIAN_PACKAGE_SHLIBDEPS", + "CPACK_DEBIAN_PACKAGE_SHLIBDEPS_PRIVATE_DIRS", + "CPACK_DEBIAN_PACKAGE_SOURCE", + "CPACK_DEBIAN_PACKAGE_SUGGESTS", + "CPACK_DEBIAN_PACKAGE_VERSION", + "CPACK_DEB_COMPONENT_INSTALL", + "CPACK_DMG_BACKGROUND_IMAGE", + "CPACK_DMG_DISABLE_APPLICATIONS_SYMLINK", + "CPACK_DMG_DS_STORE", + "CPACK_DMG_DS_STORE_SETUP_SCRIPT", + "CPACK_DMG_FILESYSTEM", + "CPACK_DMG_FORMAT", + "CPACK_DMG_SLA_DIR", + "CPACK_DMG_SLA_LANGUAGES", + "CPACK_DMG_SLA_USE_RESOURCE_FILE_LICENSE", + "CPACK_DMG_VOLUME_NAME", + "CPACK_ERROR_ON_ABSOLUTE_INSTALL_DESTINATION", + "CPACK_EXTERNAL_BUILT_PACKAGES", + "CPACK_EXTERNAL_ENABLE_STAGING", + "CPACK_EXTERNAL_PACKAGE_SCRIPT", + "CPACK_EXTERNAL_REQUESTED_VERSIONS", + "CPACK_FREEBSD_PACKAGE_CATEGORIES", + "CPACK_FREEBSD_PACKAGE_COMMENT", + "CPACK_FREEBSD_PACKAGE_DEPS", + "CPACK_FREEBSD_PACKAGE_DESCRIPTION", + "CPACK_FREEBSD_PACKAGE_LICENSE", + "CPACK_FREEBSD_PACKAGE_LICENSE_LOGIC", + "CPACK_FREEBSD_PACKAGE_MAINTAINER", + "CPACK_FREEBSD_PACKAGE_NAME", + "CPACK_FREEBSD_PACKAGE_ORIGIN", + "CPACK_FREEBSD_PACKAGE_WWW", + "CPACK_GENERATOR", + "CPACK_IFW_ADMIN_TARGET_DIRECTORY", + "CPACK_IFW_ARCHIVE_COMPRESSION", + "CPACK_IFW_ARCHIVE_FORMAT", + "CPACK_IFW_BINARYCREATOR_EXECUTABLE", + "CPACK_IFW_DEVTOOL_EXECUTABLE", + "CPACK_IFW_DOWNLOAD_ALL", + "CPACK_IFW_FRAMEWORK_VERSION", + "CPACK_IFW_INSTALLERBASE_EXECUTABLE", + "CPACK_IFW_PACKAGES_DIRECTORIES", + "CPACK_IFW_PACKAGE_ALLOW_NON_ASCII_CHARACTERS", + "CPACK_IFW_PACKAGE_ALLOW_SPACE_IN_PATH", + "CPACK_IFW_PACKAGE_BACKGROUND", + "CPACK_IFW_PACKAGE_BANNER", + "CPACK_IFW_PACKAGE_CONTROL_SCRIPT", + "CPACK_IFW_PACKAGE_DISABLE_COMMAND_LINE_INTERFACE", + "CPACK_IFW_PACKAGE_GROUP", + "CPACK_IFW_PACKAGE_ICON", + "CPACK_IFW_PACKAGE_LOGO", + "CPACK_IFW_PACKAGE_MAINTENANCE_TOOL_INI_FILE", + "CPACK_IFW_PACKAGE_MAINTENANCE_TOOL_NAME", + "CPACK_IFW_PACKAGE_NAME", + "CPACK_IFW_PACKAGE_PRODUCT_IMAGES", + "CPACK_IFW_PACKAGE_PRODUCT_IMAGE_URLS", + "CPACK_IFW_PACKAGE_PUBLISHER", + "CPACK_IFW_PACKAGE_REMOVE_TARGET_DIR", + "CPACK_IFW_PACKAGE_RESOURCES", + "CPACK_IFW_PACKAGE_RUN_PROGRAM", + "CPACK_IFW_PACKAGE_RUN_PROGRAM_ARGUMENTS", + "CPACK_IFW_PACKAGE_RUN_PROGRAM_DESCRIPTION", + "CPACK_IFW_PACKAGE_SIGNING_IDENTITY", + "CPACK_IFW_PACKAGE_START_MENU_DIRECTORY", + "CPACK_IFW_PACKAGE_STYLE_SHEET", + "CPACK_IFW_PACKAGE_TITLE", + "CPACK_IFW_PACKAGE_TITLE_COLOR", + "CPACK_IFW_PACKAGE_WATERMARK", + "CPACK_IFW_PACKAGE_WINDOW_ICON", + "CPACK_IFW_PACKAGE_WIZARD_DEFAULT_HEIGHT", + "CPACK_IFW_PACKAGE_WIZARD_DEFAULT_WIDTH", + "CPACK_IFW_PACKAGE_WIZARD_SHOW_PAGE_LIST", + "CPACK_IFW_PACKAGE_WIZARD_STYLE", + "CPACK_IFW_PRODUCT_URL", + "CPACK_IFW_REPOGEN_EXECUTABLE", + "CPACK_IFW_REPOSITORIES_ALL", + "CPACK_IFW_RESOLVE_DUPLICATE_NAMES", + "CPACK_IFW_ROOT", + "CPACK_IFW_TARGET_DIRECTORY", + "CPACK_IFW_VERBOSE", + "CPACK_INCLUDE_TOPLEVEL_DIRECTORY", + "CPACK_INNOSETUP_ALLOW_CUSTOM_DIRECTORY", + "CPACK_INNOSETUP_ARCHITECTURE", + "CPACK_INNOSETUP_CODE_FILES", + "CPACK_INNOSETUP_CREATE_UNINSTALL_LINK", + "CPACK_INNOSETUP_CUSTOM_INSTALL_INSTRUCTIONS", + "CPACK_INNOSETUP_EXECUTABLE", + "CPACK_INNOSETUP_EXECUTABLE_ARGUMENTS", + "CPACK_INNOSETUP_EXTRA_SCRIPTS", + "CPACK_INNOSETUP_ICON_FILE", + "CPACK_INNOSETUP_IGNORE_LICENSE_PAGE", + "CPACK_INNOSETUP_IGNORE_README_PAGE", + "CPACK_INNOSETUP_INSTALL_ROOT", + "CPACK_INNOSETUP_LANGUAGES", + "CPACK_INNOSETUP_MENU_LINKS", + "CPACK_INNOSETUP_PASSWORD", + "CPACK_INNOSETUP_PROGRAM_MENU_FOLDER", + "CPACK_INNOSETUP_RUN_EXECUTABLES", + "CPACK_INNOSETUP_USE_CMAKE_BOOL_FORMAT", + "CPACK_INNOSETUP_USE_MODERN_WIZARD", + "CPACK_INNOSETUP_VERIFY_DOWNLOADS", + "CPACK_INSTALLED_DIRECTORIES", + "CPACK_INSTALL_CMAKE_PROJECTS", + "CPACK_INSTALL_COMMANDS", + "CPACK_INSTALL_DEFAULT_DIRECTORY_PERMISSIONS", + "CPACK_INSTALL_SCRIPTS", + "CPACK_MONOLITHIC_INSTALL", + "CPACK_NSIS_BRANDING_TEXT", + "CPACK_NSIS_BRANDING_TEXT_TRIM_POSITION", + "CPACK_NSIS_COMPRESSOR", + "CPACK_NSIS_CONTACT", + "CPACK_NSIS_CRC_CHECK", + "CPACK_NSIS_CREATE_ICONS_EXTRA", + "CPACK_NSIS_DELETE_ICONS_EXTRA", + "CPACK_NSIS_DISPLAY_NAME", + "CPACK_NSIS_ENABLE_UNINSTALL_BEFORE_INSTALL", + "CPACK_NSIS_EXECUTABLE", + "CPACK_NSIS_EXECUTABLES_DIRECTORY", + "CPACK_NSIS_EXECUTABLE_POST_ARGUMENTS", + "CPACK_NSIS_EXECUTABLE_PRE_ARGUMENTS", + "CPACK_NSIS_EXTRA_INSTALL_COMMANDS", + "CPACK_NSIS_EXTRA_PREINSTALL_COMMANDS", + "CPACK_NSIS_EXTRA_UNINSTALL_COMMANDS", + "CPACK_NSIS_FINISH_TITLE", + "CPACK_NSIS_FINISH_TITLE_3LINES", + "CPACK_NSIS_HELP_LINK", + "CPACK_NSIS_IGNORE_COMPONENTS_PAGE", + "CPACK_NSIS_IGNORE_LICENSE_PAGE", + "CPACK_NSIS_INSTALLED_ICON_NAME", + "CPACK_NSIS_INSTALLER_MUI_ICON_CODE", + "CPACK_NSIS_INSTALL_ROOT", + "CPACK_NSIS_MANIFEST_DPI_AWARE", + "CPACK_NSIS_MENU_LINKS", + "CPACK_NSIS_MODIFY_PATH", + "CPACK_NSIS_MUI_FINISHPAGE_RUN", + "CPACK_NSIS_MUI_HEADERIMAGE", + "CPACK_NSIS_MUI_ICON", + "CPACK_NSIS_MUI_UNIICON", + "CPACK_NSIS_MUI_UNWELCOMEFINISHPAGE_BITMAP", + "CPACK_NSIS_MUI_WELCOMEFINISHPAGE_BITMAP", + "CPACK_NSIS_PACKAGE_NAME", + "CPACK_NSIS_UNINSTALL_NAME", + "CPACK_NSIS_URL_INFO_ABOUT", + "CPACK_NSIS_WELCOME_TITLE", + "CPACK_NSIS_WELCOME_TITLE_3LINES", + "CPACK_NUGET_COMPONENT_INSTALL", + "CPACK_NUGET_PACKAGE_AUTHORS", + "CPACK_NUGET_PACKAGE_COPYRIGHT", + "CPACK_NUGET_PACKAGE_DEBUG", + "CPACK_NUGET_PACKAGE_DEPENDENCIES", + "CPACK_NUGET_PACKAGE_DESCRIPTION", + "CPACK_NUGET_PACKAGE_DESCRIPTION_SUMMARY", + "CPACK_NUGET_PACKAGE_HOMEPAGE_URL", + "CPACK_NUGET_PACKAGE_ICON", + "CPACK_NUGET_PACKAGE_ICONURL", + "CPACK_NUGET_PACKAGE_LANGUAGE", + "CPACK_NUGET_PACKAGE_LICENSEURL", + "CPACK_NUGET_PACKAGE_LICENSE_EXPRESSION", + "CPACK_NUGET_PACKAGE_LICENSE_FILE_NAME", + "CPACK_NUGET_PACKAGE_NAME", + "CPACK_NUGET_PACKAGE_OWNERS", + "CPACK_NUGET_PACKAGE_README", + "CPACK_NUGET_PACKAGE_RELEASE_NOTES", + "CPACK_NUGET_PACKAGE_REPOSITORY_BRANCH", + "CPACK_NUGET_PACKAGE_REPOSITORY_COMMIT", + "CPACK_NUGET_PACKAGE_REPOSITORY_TYPE", + "CPACK_NUGET_PACKAGE_REPOSITORY_URL", + "CPACK_NUGET_PACKAGE_TAGS", + "CPACK_NUGET_PACKAGE_TFMS", + "CPACK_NUGET_PACKAGE_TITLE", + "CPACK_NUGET_SYMBOL_PACKAGE", + "CPACK_OBJCOPY_EXECUTABLE", + "CPACK_OBJDUMP_EXECUTABLE", + "CPACK_OUTPUT_CONFIG_FILE", + "CPACK_PACKAGE_CHECKSUM", + "CPACK_PACKAGE_DESCRIPTION", + "CPACK_PACKAGE_DESCRIPTION_FILE", + "CPACK_PACKAGE_DESCRIPTION_SUMMARY", + "CPACK_PACKAGE_DIRECTORY", + "CPACK_PACKAGE_EXECUTABLES", + "CPACK_PACKAGE_FILES", + "CPACK_PACKAGE_FILE_NAME", + "CPACK_PACKAGE_HOMEPAGE_URL", + "CPACK_PACKAGE_ICON", + "CPACK_PACKAGE_INSTALL_DIRECTORY", + "CPACK_PACKAGE_INSTALL_REGISTRY_KEY", + "CPACK_PACKAGE_NAME", + "CPACK_PACKAGE_VENDOR", + "CPACK_PACKAGE_VERSION", + "CPACK_PACKAGE_VERSION_MAJOR", + "CPACK_PACKAGE_VERSION_MINOR", + "CPACK_PACKAGE_VERSION_PATCH", + "CPACK_PACKAGING_INSTALL_PREFIX", + "CPACK_PKGBUILD_IDENTITY_NAME", + "CPACK_PKGBUILD_KEYCHAIN_PATH", + "CPACK_POST_BUILD_SCRIPTS", + "CPACK_PRE_BUILD_SCRIPTS", + "CPACK_PRODUCTBUILD_BACKGROUND", + "CPACK_PRODUCTBUILD_BACKGROUND_ALIGNMENT", + "CPACK_PRODUCTBUILD_BACKGROUND_DARKAQUA", + "CPACK_PRODUCTBUILD_BACKGROUND_DARKAQUA_ALIGNMENT", + "CPACK_PRODUCTBUILD_BACKGROUND_DARKAQUA_MIME_TYPE", + "CPACK_PRODUCTBUILD_BACKGROUND_DARKAQUA_SCALING", + "CPACK_PRODUCTBUILD_BACKGROUND_DARKAQUA_UTI", + "CPACK_PRODUCTBUILD_BACKGROUND_MIME_TYPE", + "CPACK_PRODUCTBUILD_BACKGROUND_SCALING", + "CPACK_PRODUCTBUILD_BACKGROUND_UTI", + "CPACK_PRODUCTBUILD_DOMAINS", + "CPACK_PRODUCTBUILD_DOMAINS_ANYWHERE", + "CPACK_PRODUCTBUILD_DOMAINS_ROOT", + "CPACK_PRODUCTBUILD_DOMAINS_USER", + "CPACK_PRODUCTBUILD_IDENTIFIER", + "CPACK_PRODUCTBUILD_IDENTITY_NAME", + "CPACK_PRODUCTBUILD_KEYCHAIN_PATH", + "CPACK_PRODUCTBUILD_RESOURCES_DIR", + "CPACK_PROJECT_CONFIG_FILE", + "CPACK_READELF_EXECUTABLE", + "CPACK_RESOURCE_FILE_LICENSE", + "CPACK_RESOURCE_FILE_README", + "CPACK_RESOURCE_FILE_WELCOME", + "CPACK_RPM_ADDITIONAL_MAN_DIRS", + "CPACK_RPM_BUILDREQUIRES", + "CPACK_RPM_BUILD_SOURCE_DIRS_PREFIX", + "CPACK_RPM_CHANGELOG_FILE", + "CPACK_RPM_COMPONENT_INSTALL", + "CPACK_RPM_COMPRESSION_TYPE", + "CPACK_RPM_DEBUGINFO_EXCLUDE_DIRS", + "CPACK_RPM_DEBUGINFO_EXCLUDE_DIRS_ADDITION", + "CPACK_RPM_DEBUGINFO_FILE_NAME", + "CPACK_RPM_DEBUGINFO_PACKAGE", + "CPACK_RPM_DEBUGINFO_SINGLE_PACKAGE", + "CPACK_RPM_DEFAULT_DIR_PERMISSIONS", + "CPACK_RPM_DEFAULT_FILE_PERMISSIONS", + "CPACK_RPM_DEFAULT_GROUP", + "CPACK_RPM_DEFAULT_USER", + "CPACK_RPM_EXCLUDE_FROM_AUTO_FILELIST", + "CPACK_RPM_EXCLUDE_FROM_AUTO_FILELIST_ADDITION", + "CPACK_RPM_FILE_NAME", + "CPACK_RPM_GENERATE_USER_BINARY_SPECFILE_TEMPLATE", + "CPACK_RPM_INSTALL_WITH_EXEC", + "CPACK_RPM_MAIN_COMPONENT", + "CPACK_RPM_NO_INSTALL_PREFIX_RELOCATION", + "CPACK_RPM_PACKAGE_ARCHITECTURE", + "CPACK_RPM_PACKAGE_AUTOPROV", + "CPACK_RPM_PACKAGE_AUTOREQ", + "CPACK_RPM_PACKAGE_AUTOREQPROV", + "CPACK_RPM_PACKAGE_CONFLICTS", + "CPACK_RPM_PACKAGE_DEBUG", + "CPACK_RPM_PACKAGE_DESCRIPTION", + "CPACK_RPM_PACKAGE_ENHANCES", + "CPACK_RPM_PACKAGE_EPOCH", + "CPACK_RPM_PACKAGE_GROUP", + "CPACK_RPM_PACKAGE_LICENSE", + "CPACK_RPM_PACKAGE_NAME", + "CPACK_RPM_PACKAGE_OBSOLETES", + "CPACK_RPM_PACKAGE_PROVIDES", + "CPACK_RPM_PACKAGE_RELEASE", + "CPACK_RPM_PACKAGE_RELEASE_DIST", + "CPACK_RPM_PACKAGE_RELOCATABLE", + "CPACK_RPM_PACKAGE_REQUIRES", + "CPACK_RPM_PACKAGE_REQUIRES_POST", + "CPACK_RPM_PACKAGE_REQUIRES_POSTUN", + "CPACK_RPM_PACKAGE_REQUIRES_PRE", + "CPACK_RPM_PACKAGE_REQUIRES_PREUN", + "CPACK_RPM_PACKAGE_SOURCES", + "CPACK_RPM_PACKAGE_SUGGESTS", + "CPACK_RPM_PACKAGE_SUMMARY", + "CPACK_RPM_PACKAGE_SUPPLEMENTS", + "CPACK_RPM_PACKAGE_URL", + "CPACK_RPM_PACKAGE_VENDOR", + "CPACK_RPM_PACKAGE_VERSION", + "CPACK_RPM_POST_INSTALL_SCRIPT_FILE", + "CPACK_RPM_POST_TRANS_SCRIPT_FILE", + "CPACK_RPM_POST_UNINSTALL_SCRIPT_FILE", + "CPACK_RPM_PRE_INSTALL_SCRIPT_FILE", + "CPACK_RPM_PRE_TRANS_SCRIPT_FILE", + "CPACK_RPM_PRE_UNINSTALL_SCRIPT_FILE", + "CPACK_RPM_RELOCATION_PATHS", + "CPACK_RPM_REQUIRES_EXCLUDE_FROM", + "CPACK_RPM_SOURCE_PKG_BUILD_PARAMS", + "CPACK_RPM_SOURCE_PKG_PACKAGING_INSTALL_PREFIX", + "CPACK_RPM_SPEC_INSTALL_POST", + "CPACK_RPM_SPEC_MORE_DEFINE", + "CPACK_RPM_USER_BINARY_SPECFILE", + "CPACK_RPM_USER_FILELIST", + "CPACK_SET_DESTDIR", + "CPACK_SOURCE_GENERATOR", + "CPACK_SOURCE_IGNORE_FILES", + "CPACK_SOURCE_OUTPUT_CONFIG_FILE", + "CPACK_SOURCE_PACKAGE_FILE_NAME", + "CPACK_SOURCE_STRIP_FILES", + "CPACK_STRIP_FILES", + "CPACK_SYSTEM_NAME", + "CPACK_THREADS", + "CPACK_TOPLEVEL_TAG", + "CPACK_VERBATIM_VARIABLES", + "CPACK_WARN_ON_ABSOLUTE_INSTALL_DESTINATION", + "CPACK_WIX_ARCHITECTURE", + "CPACK_WIX_CMAKE_PACKAGE_REGISTRY", + "CPACK_WIX_CULTURES", + "CPACK_WIX_CUSTOM_XMLNS", + "CPACK_WIX_EXTENSIONS", + "CPACK_WIX_EXTRA_OBJECTS", + "CPACK_WIX_EXTRA_SOURCES", + "CPACK_WIX_INSTALL_SCOPE", + "CPACK_WIX_LICENSE_RTF", + "CPACK_WIX_PATCH_FILE", + "CPACK_WIX_PRODUCT_GUID", + "CPACK_WIX_PRODUCT_ICON", + "CPACK_WIX_PROGRAM_MENU_FOLDER", + "CPACK_WIX_ROOT", + "CPACK_WIX_ROOT_FEATURE_DESCRIPTION", + "CPACK_WIX_ROOT_FEATURE_TITLE", + "CPACK_WIX_ROOT_FOLDER_ID", + "CPACK_WIX_SKIP_PROGRAM_FOLDER", + "CPACK_WIX_SKIP_WIX_UI_EXTENSION", + "CPACK_WIX_TEMPLATE", + "CPACK_WIX_UI_BANNER", + "CPACK_WIX_UI_DIALOG", + "CPACK_WIX_UI_REF", + "CPACK_WIX_UPGRADE_GUID", + "CTEST_BINARY_DIRECTORY", + "CTEST_BUILD_COMMAND", + "CTEST_BUILD_NAME", + "CTEST_BUILD_PRESET", + "CTEST_BZR_COMMAND", + "CTEST_BZR_UPDATE_OPTIONS", + "CTEST_CHANGE_ID", + "CTEST_CHECKOUT_COMMAND", + "CTEST_CONFIGURATION_TYPE", + "CTEST_CONFIGURE_COMMAND", + "CTEST_CONFIGURE_PRESET", + "CTEST_COVERAGE_COMMAND", + "CTEST_COVERAGE_EXTRA_FLAGS", + "CTEST_CURL_OPTIONS", + "CTEST_CUSTOM_COVERAGE_EXCLUDE", + "CTEST_CUSTOM_ERROR_EXCEPTION", + "CTEST_CUSTOM_ERROR_MATCH", + "CTEST_CUSTOM_ERROR_POST_CONTEXT", + "CTEST_CUSTOM_ERROR_PRE_CONTEXT", + "CTEST_CUSTOM_MAXIMUM_FAILED_TEST_OUTPUT_SIZE", + "CTEST_CUSTOM_MAXIMUM_NUMBER_OF_ERRORS", + "CTEST_CUSTOM_MAXIMUM_NUMBER_OF_WARNINGS", + "CTEST_CUSTOM_MAXIMUM_PASSED_TEST_OUTPUT_SIZE", + "CTEST_CUSTOM_MEMCHECK_IGNORE", + "CTEST_CUSTOM_POST_MEMCHECK", + "CTEST_CUSTOM_POST_TEST", + "CTEST_CUSTOM_PRE_MEMCHECK", + "CTEST_CUSTOM_PRE_TEST", + "CTEST_CUSTOM_TEST_IGNORE", + "CTEST_CUSTOM_TEST_OUTPUT_TRUNCATION", + "CTEST_CUSTOM_WARNING_EXCEPTION", + "CTEST_CUSTOM_WARNING_MATCH", + "CTEST_CVS_COMMAND", + "CTEST_CVS_UPDATE_OPTIONS", + "CTEST_DROP_LOCATION", + "CTEST_DROP_METHOD", + "CTEST_DROP_SITE", + "CTEST_DROP_SITE_CDASH", + "CTEST_DROP_SITE_PASSWORD", + "CTEST_DROP_SITE_USER", + "CTEST_EXTRA_COVERAGE_GLOB", + "CTEST_GIT_COMMAND", + "CTEST_GIT_INIT_SUBMODULES", + "CTEST_GIT_UPDATE_CUSTOM", + "CTEST_GIT_UPDATE_OPTIONS", + "CTEST_HG_COMMAND", + "CTEST_HG_UPDATE_OPTIONS", + "CTEST_LABELS_FOR_SUBPROJECTS", + "CTEST_MEMORYCHECK_COMMAND", + "CTEST_MEMORYCHECK_COMMAND_OPTIONS", + "CTEST_MEMORYCHECK_SANITIZER_OPTIONS", + "CTEST_MEMORYCHECK_SUPPRESSIONS_FILE", + "CTEST_MEMORYCHECK_TYPE", + "CTEST_NIGHTLY_START_TIME", + "CTEST_P4_CLIENT", + "CTEST_P4_COMMAND", + "CTEST_P4_OPTIONS", + "CTEST_P4_UPDATE_OPTIONS", + "CTEST_PRESET", + "CTEST_PRESETS_FILE", + "CTEST_RESOURCE_ERROR_ACTION", + "CTEST_RESOURCE_SPEC_FILE", + "CTEST_RUN_CURRENT_SCRIPT", + "CTEST_SITE", + "CTEST_SOURCE_DIRECTORY", + "CTEST_SUBMIT_INACTIVITY_TIMEOUT", + "CTEST_SUBMIT_PARTS", + "CTEST_SUBMIT_URL", + "CTEST_SVN_COMMAND", + "CTEST_SVN_OPTIONS", + "CTEST_SVN_UPDATE_OPTIONS", + "CTEST_TEST_COVERAGE_TOOL", + "CTEST_TEST_LOAD", + "CTEST_TEST_PRESET", + "CTEST_TEST_TIMEOUT", + "CTEST_TLS_VERIFY", + "CTEST_TLS_VERSION", + "CTEST_UPDATE_COMMAND", + "CTEST_UPDATE_OPTIONS", + "CTEST_UPDATE_VERSION_ONLY", + "CTEST_UPDATE_VERSION_OVERRIDE", + "CTEST_USE_LAUNCHERS", + "CUDAToolkit_NVCC_EXECUTABLE", + "CUPS_INCLUDE_DIR", + "CURL_NO_CURL_CMAKE", + "CURL_USE_STATIC_LIBS", + "CURSES_CFLAGS", + "CURSES_HAVE_CURSES_H", + "CURSES_HAVE_NCURSES_CURSES_H", + "CURSES_HAVE_NCURSES_H", + "CURSES_HAVE_NCURSES_NCURSES_H", + "CURSES_NEED_NCURSES", + "CURSES_NEED_WIDE", + "CVS_EXECUTABLE", + "CXXTEST_PERL_TESTGEN_EXECUTABLE", + "CXXTEST_PYTHON_TESTGEN_EXECUTABLE", + "CXXTEST_TESTGEN_ARGS", + "CXXTEST_TESTGEN_EXECUTABLE", + "CXXTEST_TESTGEN_INTERPRETER", + "CXXTEST_USE_PYTHON", + "CYGWIN", + "DVIPDF_CONVERTER", + "DVIPS_CONVERTER", + "EXECUTABLE_OUTPUT_PATH", + "EXPAT_USE_STATIC_LIBS", + "EnvModules_COMMAND", + "ExternalData_BINARY_ROOT", + "ExternalData_CUSTOM_ERROR", + "ExternalData_CUSTOM_FILE", + "ExternalData_CUSTOM_LOCATION", + "ExternalData_HTTPHEADERS", + "ExternalData_LINK_CONTENT", + "ExternalData_LINK_MODE", + "ExternalData_NO_SYMLINKS", + "ExternalData_OBJECT_STORES", + "ExternalData_SERIES_MATCH", + "ExternalData_SERIES_PARSE", + "ExternalData_SERIES_PARSE_NUMBER", + "ExternalData_SERIES_PARSE_PREFIX", + "ExternalData_SERIES_PARSE_SUFFIX", + "ExternalData_SOURCE_ROOT", + "ExternalData_STATE_ROOT", + "ExternalData_TIMEOUT_ABSOLUTE", + "ExternalData_TIMEOUT_INACTIVITY", + "ExternalData_URL_TEMPLATES", + "FETCHCONTENT_FULLY_DISCONNECTED", + "FETCHCONTENT_QUIET", + "FETCHCONTENT_TRY_FIND_PACKAGE_MODE", + "FETCHCONTENT_UPDATES_DISCONNECTED", + "FLEX_EXECUTABLE", + "FLTK2_BASE_LIBRARY", + "FLTK2_FLUID_EXECUTABLE", + "FLTK2_GL_LIBRARY", + "FLTK2_IMAGES_LIBRARY", + "FLTK2_WRAP_UI", + "FLTK_BASE_LIBRARY_DEBUG", + "FLTK_BASE_LIBRARY_RELEASE", + "FLTK_FLUID_EXECUTABLE", + "FLTK_FORMS_LIBRARY_DEBUG", + "FLTK_FORMS_LIBRARY_RELEASE", + "FLTK_GL_LIBRARY_DEBUG", + "FLTK_GL_LIBRARY_RELEASE", + "FLTK_IMAGES_LIBRARY_DEBUG", + "FLTK_IMAGES_LIBRARY_RELEASE", + "FLTK_SKIP_FLUID", + "FLTK_SKIP_FORMS", + "FLTK_SKIP_IMAGES", + "FLTK_SKIP_OPENGL", + "FLTK_WRAP_UI", + "FREETYPE_INCLUDE_DIR_freetype2", + "FREETYPE_INCLUDE_DIR_ft2build", + "FindGDAL_SKIP_GDAL_CONFIG", + "Fontconfig_COMPILE_OPTIONS", + "FortranCInterface_GLOBAL_CASE", + "FortranCInterface_GLOBAL_PREFIX", + "FortranCInterface_GLOBAL_SUFFIX", + "FortranCInterface_GLOBAL_SYMBOLS", + "FortranCInterface_GLOBAL__CASE", + "FortranCInterface_GLOBAL__PREFIX", + "FortranCInterface_GLOBAL__SUFFIX", + "FortranCInterface_MODULE_CASE", + "FortranCInterface_MODULE_MIDDLE", + "FortranCInterface_MODULE_PREFIX", + "FortranCInterface_MODULE_SUFFIX", + "FortranCInterface_MODULE_SYMBOLS", + "FortranCInterface_MODULE__CASE", + "FortranCInterface_MODULE__MIDDLE", + "FortranCInterface_MODULE__PREFIX", + "FortranCInterface_MODULE__SUFFIX", + "FortranCInterface_VERIFIED_C", + "FortranCInterface_VERIFIED_CXX", + "GCCXML", + "GDAL_ADDITIONAL_LIBRARY_VERSIONS", + "GDAL_LIBRARY", + "GETTEXT_MSGFMT_EXECUTABLE", + "GETTEXT_MSGMERGE_EXECUTABLE", + "GHSMULTI", + "GIF_LIBRARY", + "GIT_EXECUTABLE", + "GLEW_USE_STATIC_LIBS", + "GLEW_VERBOSE", + "GLUT_Xi_LIBRARY", + "GLUT_Xmu_LIBRARY", + "GLUT_glut_LIBRARY", + "GNUPLOT_EXECUTABLE", + "GNUTLS_DEFINITIONS", + "GRAPHVIZ_EXECUTABLES", + "GRAPHVIZ_EXTERNAL_LIBS", + "GRAPHVIZ_GENERATE_PER_TARGET", + "GRAPHVIZ_GRAPH_HEADER", + "GRAPHVIZ_GRAPH_NAME", + "GRAPHVIZ_GRAPH_TYPE", + "GRAPHVIZ_IGNORE_TARGETS", + "GRAPHVIZ_MODULE_LIBS", + "GRAPHVIZ_NODE_PREFIX", + "GRAPHVIZ_SHARED_LIBS", + "GRAPHVIZ_STATIC_LIBS", + "GSL_CBLAS_LIBRARY", + "GSL_CBLAS_LIBRARY_DEBUG", + "GSL_CONFIG_EXECUTABLE", + "GSL_LIBRARY", + "GSL_LIBRARY_DEBUG", + "GTEST_MSVC_SEARCH", + "GTK2_ADDITIONAL_SUFFIXES", + "GTK2_DEBUG", + "GTK2_DEFINITIONS", + "GTK2_TARGETS", + "GTK2_USE_IMPORTED_TARGETS", + "HDF5_CXX_COMPILER_EXECUTABLE", + "HDF5_CXX_COMPILER_EXECUTABLE_NO_INTERROGATE", + "HDF5_CXX_DEFINITIONS", + "HDF5_C_COMPILER_EXECUTABLE", + "HDF5_C_COMPILER_EXECUTABLE_NO_INTERROGATE", + "HDF5_C_DEFINITIONS", + "HDF5_DEFINITIONS", + "HDF5_DIFF_EXECUTABLE", + "HDF5_FIND_DEBUG", + "HDF5_Fortran_COMPILER_EXECUTABLE", + "HDF5_Fortran_COMPILER_EXECUTABLE_NO_INTERROGATE", + "HDF5_Fortran_DEFINITIONS", + "HDF5_IS_PARALLEL", + "HDF5_NO_FIND_PACKAGE_CONFIG_FILE", + "HDF5_PREFER_PARALLEL", + "HG_EXECUTABLE", + "HTLATEX_COMPILER", + "HTML_HELP_COMPILER", + "HTML_HELP_LIBRARY", + "ICOTOOL_EXECUTABLE", + "ICU_DEBUG", + "ICU_MAKEFILE_INC", + "ICU_PKGDATA_INC", + "IOS", + "Iconv_IS_BUILT_IN", + "Iconv_LIBRARY", + "Intl_IS_BUILT_IN", + "Intl_LIBRARY", + "JASPER_LIBARRY_DEBUG", + "JASPER_LIBRARY_RELEASE", + "JAVA_AWT_INCLUDE_PATH", + "JAVA_AWT_LIBRARY", + "JAVA_INCLUDE_PATH", + "JAVA_INCLUDE_PATH2", + "JAVA_JVM_LIBRARY", + "JPEG_LIBRARY", + "JPEG_LIBRARY_DEBUG", + "JPEG_LIBRARY_RELEASE", + "Java_IDLJ_EXECUTABLE", + "Java_JARSIGNER_EXECUTABLE", + "Java_JAR_EXECUTABLE", + "Java_JAVAC_EXECUTABLE", + "Java_JAVADOC_EXECUTABLE", + "Java_JAVAH_EXECUTABLE", + "Java_JAVA_EXECUTABLE", + "LAPACK_LINKER_FLAGS", + "LATEX2HTML_CONVERTER", + "LATEX_COMPILER", + "LIBLZMA_HAS_AUTO_DECODER", + "LIBLZMA_HAS_EASY_ENCODER", + "LIBLZMA_HAS_LZMA_PRESET", + "LIBRARY_OUTPUT_PATH", + "LIBXML2_DEFINITIONS", + "LIBXML2_LIBRARY", + "LIBXML2_XMLLINT_EXECUTABLE", + "LIBXSLT_DEFINITIONS", + "LIBXSLT_XSLTPROC_EXECUTABLE", + "LINUX", + "LTTNGUST_HAS_TRACEF", + "LTTNGUST_HAS_TRACELOG", + "LUALATEX_COMPILER", + "LibXml2_USE_STATIC_LIBS", + "Libinput_COMPILE_OPTIONS", + "MAKEINDEX_COMPILER", + "MATLAB_ADDITIONAL_VERSIONS", + "MATLAB_FIND_DEBUG", + "MINGW", + "MPEG2_mpeg2_LIBRARY", + "MPEG2_vo_LIBRARY", + "MPEG_mpeg2_LIBRARY", + "MPEG_vo_LIBRARY", + "MPIEXEC_EXECUTABLE", + "MPIEXEC_MAX_NUMPROCS", + "MPIEXEC_NUMPROC_FLAG", + "MPIEXEC_POSTFLAGS", + "MPIEXEC_PREFLAGS", + "MPI_ASSUME_NO_BUILTIN_MPI", + "MPI_ASYNC_PROTECTS_NONBLOCKING", + "MPI_COMPILER_FLAGS", + "MPI_CXX_SKIP_MPICXX", + "MPI_DETERMINE_Fortran_CAPABILITIES", + "MPI_EXECUTABLE_SUFFIX", + "MPI_Fortran_F08_MODULE_ASYNCPROT", + "MPI_Fortran_F08_MODULE_SUBARRAYS", + "MPI_Fortran_F77_HEADER_ASYNCPROT", + "MPI_Fortran_F77_HEADER_SUBARRAYS", + "MPI_Fortran_F90_MODULE_ASYNCPROT", + "MPI_Fortran_F90_MODULE_SUBARRAYS", + "MPI_Fortran_HAVE_F08_MODULE", + "MPI_Fortran_HAVE_F77_HEADER", + "MPI_Fortran_HAVE_F90_MODULE", + "MPI_GUESS_LIBRARY_NAME", + "MPI_HOME", + "MPI_SKIP_COMPILER_WRAPPER", + "MPI_SKIP_GUESSING", + "MPI_SUBARRAYS_SUPPORTED", + "MSVC", + "MSVC_IDE", + "MSVC_TOOLSET_VERSION", + "MSVC_VERSION", + "Matlab_DATAARRAY_LIBRARY", + "Matlab_ENGINE_LIBRARY", + "Matlab_ENG_LIBRARY", + "Matlab_MAIN_PROGRAM", + "Matlab_MAT_LIBRARY", + "Matlab_MCC_COMPILER", + "Matlab_MEX_COMPILER", + "Matlab_MEX_EXTENSION", + "Matlab_MEX_LIBRARY", + "Matlab_MX_LIBRARY", + "ODBC_CONFIG", + "ODBC_LIBRARY", + "OPENAL_LIBRARY", + "OPENGL_egl_LIBRARY", + "OPENGL_gl_LIBRARY", + "OPENGL_glu_LIBRARY", + "OPENGL_glx_LIBRARY", + "OPENGL_opengl_LIBRARY", + "OPENSSL_APPLINK_SOURCE", + "OPENSSL_CRYPTO_LIBRARY", + "OPENSSL_MSVC_STATIC_RT", + "OPENSSL_SSL_LIBRARY", + "OPENSSL_USE_STATIC_LIBS", + "OpenACC_ACCEL_TARGET", + "OpenCL_LIBRARY", + "OpenGL_GL_PREFERENCE", + "OpenMP_Fortran_HAVE_OMPLIB_HEADER", + "OpenMP_Fortran_HAVE_OMPLIB_MODULE", + "OpenMP_RUNTIME_MSVC", + "PACKAGE_FIND_NAME", + "PACKAGE_FIND_VERSION_COMPLETE", + "PACKAGE_FIND_VERSION_COUNT", + "PACKAGE_FIND_VERSION_MAX", + "PACKAGE_FIND_VERSION_MAX_COUNT", + "PACKAGE_FIND_VERSION_MAX_MAJOR", + "PACKAGE_FIND_VERSION_MAX_MINOR", + "PACKAGE_FIND_VERSION_MAX_PATCH", + "PACKAGE_FIND_VERSION_MAX_TWEAK", + "PACKAGE_FIND_VERSION_MIN", + "PACKAGE_FIND_VERSION_MIN_COUNT", + "PACKAGE_FIND_VERSION_MIN_MAJOR", + "PACKAGE_FIND_VERSION_MIN_MINOR", + "PACKAGE_FIND_VERSION_MIN_PATCH", + "PACKAGE_FIND_VERSION_MIN_TWEAK", + "PACKAGE_FIND_VERSION_RANGE", + "PACKAGE_FIND_VERSION_RANGE_MAX", + "PACKAGE_FIND_VERSION_RANGE_MIN", + "PACKAGE_VERSION", + "PACKAGE_VERSION_COMPATIBLE", + "PACKAGE_VERSION_EXACT", + "PACKAGE_VERSION_UNSUITABLE", + "PDFLATEX_COMPILER", + "PDFTOPS_CONVERTER", + "PERL_ARCHLIB", + "PERL_EXECUTABLE", + "PERL_EXTRA_C_FLAGS", + "PERL_PRIVLIB", + "PERL_SITEARCH", + "PERL_SITELIB", + "PERL_SITESEARCH", + "PERL_UPDATE_ARCHLIB", + "PERL_UPDATE_PRIVLIB", + "PERL_VENDORARCH", + "PERL_VENDORLIB", + "PHP4_EXECUTABLE", + "PHP4_INCLUDE_PATH", + "PHYSFS_LIBRARY", + "PIKE_EXECUTABLE", + "PIKE_INCLUDE_PATH", + "PKG_CONFIG_EXECUTABLE", + "PKG_CONFIG_USE_CMAKE_PREFIX_PATH", + "PKG_CONFIG_VERSION_STRING", + "PNG_DEFINITIONS", + "PNG_LIBRARY", + "PROJECT_BINARY_DIR", + "PROJECT_COMPAT_VERSION", + "PROJECT_DESCRIPTION", + "PROJECT_HOMEPAGE_URL", + "PROJECT_IS_TOP_LEVEL", + "PROJECT_NAME", + "PROJECT_SOURCE_DIR", + "PROJECT_SPDX_LICENSE", + "PROJECT_VERSION", + "PROJECT_VERSION_MAJOR", + "PROJECT_VERSION_MINOR", + "PROJECT_VERSION_PATCH", + "PROJECT_VERSION_TWEAK", + "PS2PDF_CONVERTER", + "Patch_EXECUTABLE", + "Protobuf_DEBUG", + "Protobuf_IMPORT_DIRS", + "Protobuf_LIBRARY", + "Protobuf_LIBRARY_DEBUG", + "Protobuf_LITE_LIBRARY", + "Protobuf_LITE_LIBRARY_DEBUG", + "Protobuf_PROTOC_EXECUTABLE", + "Protobuf_PROTOC_LIBRARY", + "Protobuf_PROTOC_LIBRARY_DEBUG", + "Protobuf_SRC_ROOT_FOLDER", + "Protobuf_USE_STATIC_LIBS", + "Python2_ARTIFACTS_INTERACTIVE", + "Python2_ARTIFACTS_PREFIX", + "Python2_COMPILER", + "Python2_COMPILER_ID", + "Python2_CROSSCOMPILING_EMULATOR", + "Python2_DEBUG_POSTFIX", + "Python2_DOTNET_LAUNCHER", + "Python2_Development.Embed_FOUND", + "Python2_Development.Module_FOUND", + "Python2_Development_FOUND", + "Python2_EXECUTABLE", + "Python2_EXECUTABLE_DEBUG", + "Python2_FIND_ABI", + "Python2_FIND_FRAMEWORK", + "Python2_FIND_IMPLEMENTATIONS", + "Python2_FIND_REGISTRY", + "Python2_FIND_STRATEGY", + "Python2_FIND_UNVERSIONED_NAMES", + "Python2_FIND_VIRTUALENV", + "Python2_INCLUDE_DIR", + "Python2_INTERPRETER", + "Python2_INTERPRETER_ID", + "Python2_LIBRARY", + "Python2_LINK_OPTIONS", + "Python2_NumPy_INCLUDE_DIR", + "Python2_SITEARCH", + "Python2_SITELIB", + "Python2_SOABI", + "Python2_STDARCH", + "Python2_STDLIB", + "Python2_USE_STATIC_LIBS", + "Python3_ARTIFACTS_INTERACTIVE", + "Python3_ARTIFACTS_PREFIX", + "Python3_COMPILER", + "Python3_COMPILER_ID", + "Python3_CROSSCOMPILING_EMULATOR", + "Python3_DEBUG_POSTFIX", + "Python3_DOTNET_LAUNCHER", + "Python3_EXECUTABLE", + "Python3_EXECUTABLE_DEBUG", + "Python3_FIND_ABI", + "Python3_FIND_FRAMEWORK", + "Python3_FIND_IMPLEMENTATIONS", + "Python3_FIND_REGISTRY", + "Python3_FIND_STRATEGY", + "Python3_FIND_UNVERSIONED_NAMES", + "Python3_FIND_VIRTUALENV", + "Python3_FREE_THREADED", + "Python3_INCLUDE_DIR", + "Python3_INTERPRETER", + "Python3_INTERPRETER_ID", + "Python3_LIBRARY", + "Python3_LINK_OPTIONS", + "Python3_NumPy_INCLUDE_DIR", + "Python3_SABI_LIBRARY", + "Python3_SITEARCH", + "Python3_SITELIB", + "Python3_SOABI", + "Python3_SOSABI", + "Python3_SOSABI_PLATFORM", + "Python3_STDARCH", + "Python3_STDLIB", + "Python3_USE_STATIC_LIBS", + "Python_ARTIFACTS_INTERACTIVE", + "Python_ARTIFACTS_PREFIX", + "Python_COMPILER", + "Python_COMPILER_ID", + "Python_CROSSCOMPILING_EMULATOR", + "Python_DEBUG_POSTFIX", + "Python_DOTNET_LAUNCHER", + "Python_EXECUTABLE", + "Python_EXECUTABLE_DEBUG", + "Python_FIND_ABI", + "Python_FIND_FRAMEWORK", + "Python_FIND_IMPLEMENTATIONS", + "Python_FIND_REGISTRY", + "Python_FIND_STRATEGY", + "Python_FIND_UNVERSIONED_NAMES", + "Python_FIND_VIRTUALENV", + "Python_INCLUDE_DIR", + "Python_INTERPRETER", + "Python_INTERPRETER_ID", + "Python_LIBRARY", + "Python_LINK_OPTIONS", + "Python_NumPy_INCLUDE_DIR", + "Python_SABI_LIBRARY", + "Python_SITEARCH", + "Python_SITELIB", + "Python_SOABI", + "Python_SOSABI", + "Python_SOSABI_PLATFORM", + "Python_STDARCH", + "Python_STDLIB", + "Python_USE_STATIC_LIBS", + "QTIFWDIR", + "RTI_DEFINITIONS", + "Ruby_EXECUTABLE", + "Ruby_FIND_VIRTUALENV", + "SDLIMAGE_LIBRARY", + "SDLMIXER_LIBRARY", + "SDLNET_LIBRARY", + "SDLTTF_LIBRARY", + "SDL_BUILDING_LIBRARY", + "SDL_LIBRARY", + "SDL_SOUND_LIBRARY", + "SQUISH_CLIENT_EXECUTABLE", + "SQUISH_SERVER_EXECUTABLE", + "SWIG_EXECUTABLE", + "SWIG_OUTFILE_DIR", + "SWIG_SOURCE_FILE_EXTENSIONS", + "SWIG_USE_SWIG_DEPENDENCIES", + "Subversion_SVN_EXECUTABLE", + "Subversion_VERSION_SVN", + "TCL_INCLUDE_PATH", + "TCL_STUB_LIBRARY", + "TCL_TCLSH", + "THREADS_PREFER_PTHREAD_FLAG", + "TIFFXX_LIBRARY_DEBUG", + "TIFFXX_LIBRARY_RELEASE", + "TIFF_LIBRARY_DEBUG", + "TIFF_LIBRARY_RELEASE", + "TK_INCLUDE_PATH", + "TK_LIBRARY", + "TK_STUB_LIBRARY", + "TK_WISH", + "TTK_STUB_LIBRARY", + "UNIX", + "UseSWIG_MODULE_VERSION", + "Vulkan_GLSLANG_VALIDATOR_EXECUTABLE", + "Vulkan_GLSLC_EXECUTABLE", + "Vulkan_LIBRARY", + "WGET_EXECUTABLE", + "WIN32", + "WINCE", + "WINDOWS_PHONE", + "WINDOWS_STORE", + "XCODE", + "XCODE_VERSION", + "XCTest_EXECUTABLE", + "XELATEX_COMPILER", + "XINDY_COMPILER", + "XalanC_LIBRARY", + "XercesC_LIBRARY", + "ZLIB_USE_STATIC_LIBS", + "wxWidgets_CONFIGURATION", + "wxWidgets_CXX_FLAGS", + "wxWidgets_DEFINITIONS", + "wxWidgets_DEFINITIONS_DEBUG", + "wxWidgets_EXCLUDE_COMMON_LIBRARIES", + "wxWidgets_USE_DEBUG", + "wxWidgets_USE_STATIC", + "wxWidgets_USE_UNICODE", + "wxWidgets_USE_UNIVERSAL" + ] + }, + "item-datas": { + "Normal Text": "Normal", + "Comment": "Comment", + "Command": "Keyword", + "Control Flow": "ControlFlow", + "CMake Provided Function/Macro": "Function", + "User Function/Macro": "Function", + "Strings": "String", + "Escapes": "SpecialChar", + "Builtin Variable": "DecVal", + "CMake Internal Variable": "Variable", + "Internal Name": "Variable", + "Variable Substitution": "DecVal", + "@Variable Substitution": "BaseN", + "Cache Variable Substitution": "Float", + "Environment Variable Substitution": "Float", + "Generator Expression": "Others", + "Generator Expression Keyword": "Keyword", + "Special Args": "Others", + "Named Args": "Others", + "Property": "Others", + "Error": "Error" + }, + "contexts": { + "Normal Text": { + "attribute": "Normal Text", + "line-end-context": "#stay", + "rules": [ + { + "type": "DetectSpaces", + "attribute": "Normal Text", + "context": "#stay" + }, + { + "type": "DetectChar", + "attribute": "Comment", + "context": "comment", + "char": "#" + }, + { + "type": "DetectChar", + "attribute": "Strings", + "context": "string", + "char": "\"" + }, + { + "type": "Detect2Chars", + "attribute": "Variable Substitution", + "context": "var-subst", + "char": "$", + "char1": "{" + }, + { + "type": "StringDetect", + "attribute": "Cache Variable Substitution", + "context": "cache-var-subst", + "String": "$CACHE{" + }, + { + "type": "StringDetect", + "attribute": "Cache Variable Substitution", + "context": "cache-var-subst", + "String": "CACHE{" + }, + { + "type": "StringDetect", + "attribute": "Environment Variable Substitution", + "context": "env-var-subst", + "String": "$ENV{" + }, + { + "type": "StringDetect", + "attribute": "Environment Variable Substitution", + "context": "env-var-subst", + "String": "ENV{" + }, + { + "type": "Detect2Chars", + "attribute": "Generator Expression", + "context": "genexpr", + "char": "$", + "char1": "<" + }, + { + "type": "keyword", + "attribute": "Control Flow", + "context": "#stay", + "String": "controlflow", + "delimiters": " \t\r\n()[]{}\";" + }, + { + "type": "keyword", + "attribute": "Command", + "context": "#stay", + "String": "commands", + "delimiters": " \t\r\n()[]{}\";" + }, + { + "type": "keyword", + "attribute": "CMake Provided Function/Macro", + "context": "#stay", + "String": "provided", + "delimiters": " \t\r\n()[]{}\";" + }, + { + "type": "keyword", + "attribute": "Builtin Variable", + "context": "#stay", + "String": "variables", + "delimiters": " \t\r\n()[]{}\";.:-+/" + }, + { + "type": "DetectChar", + "attribute": "Normal Text", + "context": "#stay", + "char": "(" + }, + { + "type": "DetectChar", + "attribute": "Normal Text", + "context": "#stay", + "char": ")" + }, + { + "type": "DetectIdentifier", + "attribute": "User Function/Macro", + "context": "#stay" + } + ] + }, + "comment": { + "attribute": "Comment", + "line-end-context": "#pop", + "rules": [ + { + "type": "DetectSpaces", + "attribute": "Comment", + "context": "#stay" + }, + { + "type": "DetectIdentifier", + "attribute": "Comment", + "context": "#stay" + }, + { + "type": "AnyChar", + "attribute": "Comment", + "context": "#stay", + "String": "+-*/%=<>!&|^~?:;.,()[]{}#@$.\"'\\" + } + ] + }, + "string": { + "attribute": "Strings", + "line-end-context": "#stay", + "rules": [ + { + "type": "DetectChar", + "attribute": "Strings", + "context": "#pop", + "char": "\"" + }, + { + "type": "Detect2Chars", + "attribute": "Escapes", + "context": "#stay", + "char": "\\", + "char1": "\\" + }, + { + "type": "Detect2Chars", + "attribute": "Escapes", + "context": "#stay", + "char": "\\", + "char1": "\"" + }, + { + "type": "Detect2Chars", + "attribute": "Escapes", + "context": "#stay", + "char": "\\", + "char1": "n" + }, + { + "type": "Detect2Chars", + "attribute": "Escapes", + "context": "#stay", + "char": "\\", + "char1": "t" + }, + { + "type": "Detect2Chars", + "attribute": "Escapes", + "context": "#stay", + "char": "\\", + "char1": "r" + }, + { + "type": "Detect2Chars", + "attribute": "Escapes", + "context": "#stay", + "char": "\\", + "char1": "$" + }, + { + "type": "Detect2Chars", + "attribute": "Variable Substitution", + "context": "var-subst", + "char": "$", + "char1": "{" + } + ] + }, + "var-subst": { + "attribute": "Variable Substitution", + "line-end-context": "#stay", + "rules": [ + { + "type": "DetectChar", + "attribute": "Variable Substitution", + "context": "#pop", + "char": "}" + }, + { + "type": "keyword", + "attribute": "Builtin Variable", + "context": "#stay", + "String": "variables", + "delimiters": " \t\r\n()[]{}\";.:-+/}" + }, + { + "type": "DetectIdentifier", + "attribute": "Variable Substitution", + "context": "#stay" + } + ] + }, + "cache-var-subst": { + "attribute": "Cache Variable Substitution", + "line-end-context": "#stay", + "rules": [ + { + "type": "DetectChar", + "attribute": "Cache Variable Substitution", + "context": "#pop", + "char": "}" + }, + { + "type": "DetectIdentifier", + "attribute": "Cache Variable Substitution", + "context": "#stay" + } + ] + }, + "env-var-subst": { + "attribute": "Environment Variable Substitution", + "line-end-context": "#stay", + "rules": [ + { + "type": "DetectChar", + "attribute": "Environment Variable Substitution", + "context": "#pop", + "char": "}" + }, + { + "type": "DetectIdentifier", + "attribute": "Environment Variable Substitution", + "context": "#stay" + } + ] + }, + "genexpr": { + "attribute": "Generator Expression", + "line-end-context": "#stay", + "rules": [ + { + "type": "DetectChar", + "attribute": "Generator Expression", + "context": "#pop", + "char": ">" + }, + { + "type": "Detect2Chars", + "attribute": "Generator Expression", + "context": "genexpr", + "char": "$", + "char1": "<" + }, + { + "type": "DetectIdentifier", + "attribute": "Generator Expression Keyword", + "context": "#stay" + }, + { + "type": "AnyChar", + "attribute": "Generator Expression", + "context": "#stay", + "String": ":;,-" + } + ] + } + } +} \ No newline at end of file diff --git a/highlight/resources/syntax/cpp.json b/highlight/resources/syntax/cpp.json new file mode 100644 index 0000000..58893bb --- /dev/null +++ b/highlight/resources/syntax/cpp.json @@ -0,0 +1,170 @@ +{ + "metadata": { + "copyright": [ + "SPDX-FileCopyrightText: 2026 The Goldfish Scheme Authors", + "SPDX-FileCopyrightText: C++ syntax derived from isocpp.xml by Alex Turbov (KDE syntax-highlighting)" + ], + "license": "SPDX-License-Identifier: MIT", + "name": "C++" + }, + "name": "C++", + "extensions": [ + "*.cpp", + "*.cxx", + "*.cc", + "*.c++", + "*.hpp", + "*.hxx", + "*.hh", + "*.h++", + "*.h", + "*.c" + ], + "initial-context": "Normal", + "lists": { + "controlflow": [ + "if", "else", "for", "while", "do", "switch", "case", "default", + "return", "break", "continue", "goto", "try", "catch", "throw", + "co_await", "co_yield", "co_return" + ], + "keywords": [ + "class", "struct", "union", "enum", "public", "private", "protected", + "virtual", "override", "final", "friend", "template", "typename", + "namespace", "using", "new", "delete", "this", "nullptr", "true", + "false", "sizeof", "alignas", "alignof", "decltype", "static_assert", + "noexcept", "explicit", "operator", "concept", "requires", + "static_cast", "dynamic_cast", "reinterpret_cast", "const_cast", + "typeid", "asm", "import", "module", "export" + ], + "types": [ + "void", "bool", "char", "int", "short", "long", "float", "double", + "signed", "unsigned", "wchar_t", "char8_t", "char16_t", "char32_t", + "size_t", "ssize_t", "int8_t", "int16_t", "int32_t", "int64_t", + "uint8_t", "uint16_t", "uint32_t", "uint64_t", "intptr_t", "uintptr_t", + "ptrdiff_t", "intmax_t", "uintmax_t", "time_t", "auto" + ], + "modifiers": [ + "const", "static", "extern", "mutable", "volatile", "thread_local", + "register", "inline", "constexpr", "consteval", "constinit" + ], + "pp-directives": [ + "include", "define", "ifdef", "ifndef", "endif", "if", "else", + "elif", "pragma", "undef", "error", "warning" + ] + }, + "item-datas": { + "Normal": "Normal", + "Keyword": "Keyword", + "ControlFlow": "ControlFlow", + "DataType": "DataType", + "String": "String", + "Char": "Char", + "SpecialChar": "SpecialChar", + "Comment": "Comment", + "Preprocessor": "Preprocessor", + "DecVal": "DecVal", + "BaseN": "BaseN", + "Float": "Float", + "Operator": "Operator", + "Error": "Error" + }, + "contexts": { + "Normal": { + "attribute": "Normal", + "line-end-context": "#stay", + "rules": [ + { "type": "DetectSpaces", "attribute": "Normal", "context": "#stay" }, + { "type": "DetectChar", "attribute": "Preprocessor", "context": "preprocessor", "char": "#", "first-non-space": true }, + { "type": "Detect2Chars", "attribute": "Comment", "context": "comment-block", "char": "/", "char1": "*" }, + { "type": "Detect2Chars", "attribute": "Comment", "context": "comment-line", "char": "/", "char1": "/" }, + { "type": "StringDetect", "attribute": "String", "context": "raw-string", "String": "R\"(" }, + { "type": "DetectChar", "attribute": "String", "context": "string", "char": "\"" }, + { "type": "DetectChar", "attribute": "Char", "context": "char", "char": "'" }, + { "type": "Hex", "attribute": "BaseN", "context": "#stay" }, + { "type": "Float", "attribute": "Float", "context": "#stay" }, + { "type": "Int", "attribute": "DecVal", "context": "#stay" }, + { "type": "keyword", "attribute": "ControlFlow", "context": "#stay", "String": "controlflow" }, + { "type": "keyword", "attribute": "DataType", "context": "#stay", "String": "types" }, + { "type": "keyword", "attribute": "DataType", "context": "#stay", "String": "modifiers" }, + { "type": "keyword", "attribute": "Keyword", "context": "#stay", "String": "keywords" }, + { "type": "Detect2Chars", "attribute": "Operator", "context": "#stay", "char": ":", "char1": ":" }, + { "type": "Detect2Chars", "attribute": "Operator", "context": "#stay", "char": "-", "char1": ">" }, + { "type": "AnyChar", "attribute": "Operator", "context": "#stay", "String": "+-*/%=<>!&|^~?:." }, + { "type": "AnyChar", "attribute": "Normal", "context": "#stay", "String": "{}[](),;" }, + { "type": "DetectIdentifier", "attribute": "Normal", "context": "#stay" } + ] + }, + "preprocessor": { + "attribute": "Preprocessor", + "line-end-context": "#pop", + "rules": [ + { "type": "Detect2Chars", "attribute": "Comment", "context": "comment-block", "char": "/", "char1": "*" }, + { "type": "Detect2Chars", "attribute": "Comment", "context": "comment-line", "char": "/", "char1": "/" }, + { "type": "DetectChar", "attribute": "String", "context": "string", "char": "\"" }, + { "type": "DetectChar", "attribute": "String", "context": "include-angle", "char": "<" }, + { "type": "keyword", "attribute": "Preprocessor", "context": "#stay", "String": "pp-directives" }, + { "type": "DetectSpaces", "attribute": "Preprocessor", "context": "#stay" }, + { "type": "Hex", "attribute": "BaseN", "context": "#stay" }, + { "type": "Int", "attribute": "DecVal", "context": "#stay" }, + { "type": "DetectIdentifier", "attribute": "Preprocessor", "context": "#stay" } + ] + }, + "include-angle": { + "attribute": "String", + "line-end-context": "#pop", + "rules": [ + { "type": "DetectChar", "attribute": "String", "context": "#pop", "char": ">" } + ] + }, + "comment-line": { + "attribute": "Comment", + "line-end-context": "#pop", + "rules": [ + { "type": "DetectSpaces", "attribute": "Comment", "context": "#stay" }, + { "type": "DetectIdentifier", "attribute": "Comment", "context": "#stay" } + ] + }, + "comment-block": { + "attribute": "Comment", + "line-end-context": "#stay", + "rules": [ + { "type": "Detect2Chars", "attribute": "Comment", "context": "#pop", "char": "*", "char1": "/" }, + { "type": "DetectSpaces", "attribute": "Comment", "context": "#stay" }, + { "type": "DetectIdentifier", "attribute": "Comment", "context": "#stay" } + ] + }, + "string": { + "attribute": "String", + "line-end-context": "#pop", + "rules": [ + { "type": "DetectChar", "attribute": "String", "context": "#pop", "char": "\"" }, + { "type": "Detect2Chars", "attribute": "SpecialChar", "context": "#stay", "char": "\\", "char1": "\\" }, + { "type": "Detect2Chars", "attribute": "SpecialChar", "context": "#stay", "char": "\\", "char1": "\"" }, + { "type": "Detect2Chars", "attribute": "SpecialChar", "context": "#stay", "char": "\\", "char1": "n" }, + { "type": "Detect2Chars", "attribute": "SpecialChar", "context": "#stay", "char": "\\", "char1": "t" }, + { "type": "Detect2Chars", "attribute": "SpecialChar", "context": "#stay", "char": "\\", "char1": "r" }, + { "type": "Detect2Chars", "attribute": "SpecialChar", "context": "#stay", "char": "\\", "char1": "0" } + ] + }, + "char": { + "attribute": "Char", + "line-end-context": "#pop", + "rules": [ + { "type": "DetectChar", "attribute": "Char", "context": "#pop", "char": "'" }, + { "type": "Detect2Chars", "attribute": "SpecialChar", "context": "#stay", "char": "\\", "char1": "\\" }, + { "type": "Detect2Chars", "attribute": "SpecialChar", "context": "#stay", "char": "\\", "char1": "'" }, + { "type": "Detect2Chars", "attribute": "SpecialChar", "context": "#stay", "char": "\\", "char1": "n" }, + { "type": "Detect2Chars", "attribute": "SpecialChar", "context": "#stay", "char": "\\", "char1": "t" }, + { "type": "Detect2Chars", "attribute": "SpecialChar", "context": "#stay", "char": "\\", "char1": "r" }, + { "type": "Detect2Chars", "attribute": "SpecialChar", "context": "#stay", "char": "\\", "char1": "0" } + ] + }, + "raw-string": { + "attribute": "String", + "line-end-context": "#stay", + "rules": [ + { "type": "StringDetect", "attribute": "String", "context": "#pop", "String": ")\"" } + ] + } + } +} diff --git a/highlight/resources/syntax/css.json b/highlight/resources/syntax/css.json new file mode 100644 index 0000000..e8ffa10 --- /dev/null +++ b/highlight/resources/syntax/css.json @@ -0,0 +1,292 @@ +{ + "metadata": { + "copyright": [ + "SPDX-FileCopyrightText: 2026 The Goldfish Scheme Authors", + "SPDX-FileCopyrightText: CSS syntax derived from css.xml by Dominik Haumann and others (KDE syntax-highlighting)" + ], + "license": "SPDX-License-Identifier: MIT", + "name": "CSS" + }, + "name": "CSS", + "extensions": [ + "*.css" + ], + "initial-context": "Base", + "lists": { + "properties": [ + "accent-color", "align-content", "align-items", "align-self", + "animation", "animation-delay", "animation-direction", + "animation-duration", "animation-fill-mode", + "animation-iteration-count", "animation-name", + "animation-play-state", "animation-timing-function", "aspect-ratio", + "background", "background-attachment", "background-blend-mode", + "background-clip", "background-color", "background-image", + "background-origin", "background-position", "background-repeat", + "background-size", "border", "border-collapse", "border-color", + "border-image", "border-radius", "border-spacing", "border-style", + "border-width", "bottom", "box-shadow", "box-sizing", "break-inside", + "clear", "clip", "clip-path", "color", "columns", "column-count", + "column-fill", "column-gap", "column-rule", "column-rule-color", + "column-rule-style", "column-rule-width", "column-span", + "column-width", "content", "cursor", "direction", "display", + "empty-cells", "filter", "flex", "flex-basis", "flex-direction", + "flex-flow", "flex-grow", "flex-shrink", "flex-wrap", "float", + "font", "font-family", "font-feature-settings", "font-kerning", + "font-size", "font-size-adjust", "font-stretch", "font-style", + "font-synthesis", "font-variant", "font-variant-caps", + "font-variant-position", "font-weight", "gap", "grid", + "grid-area", "grid-auto-columns", "grid-auto-flow", + "grid-auto-rows", "grid-column", "grid-column-end", + "grid-column-start", "grid-row", "grid-row-end", + "grid-row-start", "grid-template", "grid-template-areas", + "grid-template-columns", "grid-template-rows", "height", + "hyphens", "justify-content", "justify-items", "justify-self", + "left", "letter-spacing", "line-break", "line-height", + "list-style", "list-style-image", "list-style-position", + "list-style-type", "margin", "margin-bottom", "margin-left", + "margin-right", "margin-top", "max-height", "max-width", + "min-height", "min-width", "mix-blend-mode", "object-fit", + "object-position", "opacity", "order", "orphans", "outline", + "outline-color", "outline-offset", "outline-style", + "outline-width", "overflow", "overflow-wrap", "overflow-x", + "overflow-y", "padding", "padding-bottom", "padding-left", + "padding-right", "padding-top", "page-break-after", + "page-break-before", "page-break-inside", "perspective", + "perspective-origin", "place-content", "place-items", + "place-self", "position", "quotes", "resize", "right", + "rotate", "row-gap", "scale", "scroll-behavior", + "table-layout", "text-align", "text-align-last", + "text-combine-upright", "text-decoration", + "text-decoration-color", "text-decoration-line", + "text-decoration-skip", "text-decoration-style", + "text-emphasis", "text-indent", "text-justify", + "text-orientation", "text-overflow", "text-rendering", + "text-shadow", "text-transform", "text-underline-position", + "top", "transform", "transform-origin", "transform-style", + "transition", "transition-delay", "transition-duration", + "transition-property", "transition-timing-function", + "translate", "unicode-bidi", "vertical-align", "visibility", + "white-space", "widows", "width", "will-change", "word-break", + "word-spacing", "word-wrap", "writing-mode", "z-index" + ], + "valuekeywords": [ + "auto", "inherit", "initial", "revert", "revert-layer", "unset", + "none", "normal", "block", "inline", "inline-block", "flex", + "grid", "absolute", "relative", "fixed", "sticky", "static", + "bold", "italic", "underline", "overline", "line-through", + "left", "right", "center", "justify", "top", "bottom", "middle", + "hidden", "visible", "scroll", "auto", "wrap", "nowrap", + "row", "column", "row-reverse", "column-reverse", "stretch", + "baseline", "space-between", "space-around", "space-evenly" + ], + "colors": [ + "aliceblue", "antiquewhite", "aqua", "aquamarine", "azure", "beige", + "bisque", "black", "blanchedalmond", "blue", "blueviolet", "brown", + "burlywood", "cadetblue", "chartreuse", "chocolate", "coral", + "cornflowerblue", "cornsilk", "crimson", "cyan", "darkblue", + "darkcyan", "darkgoldenrod", "darkgray", "darkgreen", "darkgrey", + "darkkhaki", "darkmagenta", "darkolivegreen", "darkorange", + "darkorchid", "darkred", "darksalmon", "darkseagreen", + "darkslateblue", "darkslategray", "darkslategrey", "darkturquoise", + "darkviolet", "deeppink", "deepskyblue", "dimgray", "dimgrey", + "dodgerblue", "firebrick", "floralwhite", "forestgreen", "fuchsia", + "gainsboro", "ghostwhite", "gold", "goldenrod", "gray", "green", + "greenyellow", "grey", "honeydew", "hotpink", "indianred", + "indigo", "ivory", "khaki", "lavender", "lavenderblush", + "lawngreen", "lemonchiffon", "lightblue", "lightcoral", + "lightcyan", "lightgoldenrodyellow", "lightgray", "lightgreen", + "lightgrey", "lightpink", "lightsalmon", "lightseagreen", + "lightskyblue", "lightslategray", "lightslategrey", + "lightsteelblue", "lightyellow", "lime", "limegreen", "linen", + "magenta", "maroon", "mediumaquamarine", "mediumblue", + "mediumorchid", "mediumpurple", "mediumseagreen", + "mediumslateblue", "mediumspringgreen", "mediumturquoise", + "mediumvioletred", "midnightblue", "mintcream", "mistyrose", + "moccasin", "navajowhite", "navy", "oldlace", "olive", + "olivedrab", "orange", "orangered", "orchid", "palegoldenrod", + "palegreen", "paleturquoise", "palevioletred", "papayawhip", + "peachpuff", "peru", "pink", "plum", "powderblue", "purple", + "rebeccapurple", "red", "rosybrown", "royalblue", "saddlebrown", + "salmon", "sandybrown", "seagreen", "seashell", "sienna", + "silver", "skyblue", "slateblue", "slategray", "slategrey", + "snow", "springgreen", "steelblue", "tan", "teal", "thistle", + "tomato", "turquoise", "violet", "wheat", "white", "whitesmoke", + "yellow", "yellowgreen", "transparent", "currentColor" + ], + "units": [ + "px", "em", "rem", "ex", "ch", "vw", "vh", "vmin", "vmax", + "cm", "mm", "in", "pt", "pc", "q", "fr", "%", + "deg", "rad", "grad", "turn", "s", "ms", "Hz", "kHz", "dpi", + "dpcm", "dppx" + ], + "atrules": [ + "media", "keyframes", "import", "font-face", "page", "supports", + "charset", "namespace", "container", "layer", "scope", "starting-style" + ], + "pseudo-classes": [ + "active", "hover", "focus", "visited", "link", "checked", + "disabled", "enabled", "empty", "first-child", "last-child", + "only-child", "first-of-type", "last-of-type", "only-of-type", + "nth-child", "nth-last-child", "nth-of-type", "nth-last-of-type", + "not", "is", "where", "has", "root", "target", "lang", "dir", + "valid", "invalid", "required", "optional", "placeholder-shown", + "read-only", "read-write", "in-range", "out-of-range", "default", + "indeterminate", "fullscreen", "focus-within", "focus-visible", + "any-link", "local-link", "scope", "host" + ], + "pseudo-elements": [ + "before", "after", "first-line", "first-letter", "selection", + "placeholder", "marker", "backdrop", "cue", "grammar-error", + "spelling-error", "part", "slotted" + ] + }, + "item-datas": { + "Normal": "Normal", + "Comment": "Comment", + "String": "String", + "SpecialChar": "SpecialChar", + "AtRule": "Import", + "Property": "Keyword", + "ValueKeyword": "BuiltIn", + "Color": "Constant", + "Number": "DecVal", + "Unit": "DataType", + "Function": "Function", + "Variable": "Variable", + "Selector": "Attribute", + "PseudoClass": "Attribute", + "PseudoElement": "Attribute", + "Operator": "Operator", + "PropertySep": "Char", + "BlockSym": "Normal", + "Error": "Error" + }, + "contexts": { + "Base": { + "attribute": "Normal", + "line-end-context": "#stay", + "rules": [ + { "type": "DetectSpaces", "attribute": "Normal", "context": "#stay" }, + { "type": "Detect2Chars", "attribute": "Comment", "context": "comment", "char": "/", "char1": "*" }, + { "type": "Detect2Chars", "attribute": "Comment", "context": "comment-line", "char": "/", "char1": "/" }, + { "type": "DetectChar", "attribute": "AtRule", "context": "at-rule", "char": "@" }, + { "type": "DetectChar", "attribute": "String", "context": "string-double", "char": "\"" }, + { "type": "DetectChar", "attribute": "String", "context": "string-single", "char": "'" }, + { "type": "DetectChar", "attribute": "Variable", "context": "variable", "char": "-" }, + { "type": "DetectChar", "attribute": "BlockSym", "context": "rule-body", "char": "{" }, + { "type": "DetectChar", "attribute": "BlockSym", "context": "#stay", "char": "}" }, + { "type": "DetectChar", "attribute": "PseudoClass", "context": "pseudo", "char": ":" }, + { "type": "DetectChar", "attribute": "Operator", "context": "#stay", "char": "&" }, + { "type": "Detect2Chars", "attribute": "Operator", "context": "#stay", "char": ">", "char1": ">" }, + { "type": "AnyChar", "attribute": "Operator", "context": "#stay", "String": ">~+*," }, + { "type": "DetectIdentifier", "attribute": "Selector", "context": "#stay" } + ] + }, + "rule-body": { + "attribute": "Normal", + "line-end-context": "#stay", + "rules": [ + { "type": "DetectSpaces", "attribute": "Normal", "context": "#stay" }, + { "type": "Detect2Chars", "attribute": "Comment", "context": "comment", "char": "/", "char1": "*" }, + { "type": "Detect2Chars", "attribute": "Comment", "context": "comment-line", "char": "/", "char1": "/" }, + { "type": "DetectChar", "attribute": "String", "context": "string-double", "char": "\"" }, + { "type": "DetectChar", "attribute": "String", "context": "string-single", "char": "'" }, + { "type": "DetectChar", "attribute": "BlockSym", "context": "#stay", "char": "}" }, + { "type": "DetectChar", "attribute": "BlockSym", "context": "#stay", "char": "{" }, + { "type": "DetectChar", "attribute": "PropertySep", "context": "#stay", "char": ":" }, + { "type": "DetectChar", "attribute": "PropertySep", "context": "#stay", "char": ";" }, + { "type": "DetectChar", "attribute": "Variable", "context": "variable", "char": "-" }, + { "type": "CharsetRun", "attribute": "Number", "context": "value-suffix", "String": "0123456789.", "min": 1 }, + { "type": "keyword", "attribute": "Property", "context": "#stay", "String": "properties", "delimiters": " \t\r\n()[]{}\",'`;:.,+/*=~^!?" }, + { "type": "keyword", "attribute": "ValueKeyword", "context": "#stay", "String": "valuekeywords", "delimiters": " \t\r\n()[]{}\",'`;:.,+/*=~^!?" }, + { "type": "keyword", "attribute": "Color", "context": "#stay", "String": "colors", "delimiters": " \t\r\n()[]{}\",'`;:.,+/*=~^!?" }, + { "type": "DetectIdentifier", "attribute": "Function", "context": "#stay" } + ] + }, + "value-suffix": { + "attribute": "Normal", + "line-end-context": "#pop", + "fallthrough-context": "#pop", + "rules": [ + { "type": "keyword", "attribute": "Unit", "context": "#pop", "String": "units", "delimiters": " \t\r\n()[]{}\",'`;:.,0123456789" }, + { "type": "DetectIdentifier", "attribute": "Unit", "context": "#pop" } + ] + }, + "at-rule": { + "attribute": "AtRule", + "line-end-context": "#stay", + "rules": [ + { "type": "keyword", "attribute": "AtRule", "context": "#stay", "String": "atrules" }, + { "type": "DetectChar", "attribute": "BlockSym", "context": "#pop!rule-body", "char": "{" }, + { "type": "DetectIdentifier", "attribute": "AtRule", "context": "#stay" }, + { "type": "DetectSpaces", "attribute": "AtRule", "context": "#stay" } + ] + }, + "pseudo": { + "attribute": "PseudoClass", + "line-end-context": "#pop", + "fallthrough-context": "#pop", + "rules": [ + { "type": "Detect2Chars", "attribute": "PseudoElement", "context": "pseudo-element", "char": ":", "char1": ":" }, + { "type": "keyword", "attribute": "PseudoClass", "context": "#pop", "String": "pseudo-classes", "delimiters": " \t\r\n()[]{}\",'`;:.,+/*=~^!?-" }, + { "type": "DetectIdentifier", "attribute": "PseudoClass", "context": "#pop" } + ] + }, + "pseudo-element": { + "attribute": "PseudoElement", + "line-end-context": "#pop", + "fallthrough-context": "#pop", + "rules": [ + { "type": "keyword", "attribute": "PseudoElement", "context": "#pop", "String": "pseudo-elements", "delimiters": " \t\r\n()[]{}\",'`;:.,+/*=~^!?-" }, + { "type": "DetectIdentifier", "attribute": "PseudoElement", "context": "#pop" } + ] + }, + "variable": { + "attribute": "Variable", + "line-end-context": "#pop", + "fallthrough-context": "#pop", + "rules": [ + { "type": "DetectIdentifier", "attribute": "Variable", "context": "#pop" } + ] + }, + "string-double": { + "attribute": "String", + "line-end-context": "#pop", + "rules": [ + { "type": "DetectChar", "attribute": "String", "context": "#pop", "char": "\"" }, + { "type": "Detect2Chars", "attribute": "SpecialChar", "context": "#stay", "char": "\\", "char1": "\\" }, + { "type": "Detect2Chars", "attribute": "SpecialChar", "context": "#stay", "char": "\\", "char1": "\"" }, + { "type": "Detect2Chars", "attribute": "SpecialChar", "context": "#stay", "char": "\\", "char1": "n" }, + { "type": "Detect2Chars", "attribute": "SpecialChar", "context": "#stay", "char": "\\", "char1": "t" } + ] + }, + "string-single": { + "attribute": "String", + "line-end-context": "#pop", + "rules": [ + { "type": "DetectChar", "attribute": "String", "context": "#pop", "char": "'" }, + { "type": "Detect2Chars", "attribute": "SpecialChar", "context": "#stay", "char": "\\", "char1": "\\" }, + { "type": "Detect2Chars", "attribute": "SpecialChar", "context": "#stay", "char": "\\", "char1": "'" }, + { "type": "Detect2Chars", "attribute": "SpecialChar", "context": "#stay", "char": "\\", "char1": "n" }, + { "type": "Detect2Chars", "attribute": "SpecialChar", "context": "#stay", "char": "\\", "char1": "t" } + ] + }, + "comment": { + "attribute": "Comment", + "line-end-context": "#stay", + "rules": [ + { "type": "Detect2Chars", "attribute": "Comment", "context": "#pop", "char": "*", "char1": "/" }, + { "type": "DetectSpaces", "attribute": "Comment", "context": "#stay" }, + { "type": "DetectIdentifier", "attribute": "Comment", "context": "#stay" } + ] + }, + "comment-line": { + "attribute": "Comment", + "line-end-context": "#pop", + "rules": [ + { "type": "DetectSpaces", "attribute": "Comment", "context": "#stay" }, + { "type": "DetectIdentifier", "attribute": "Comment", "context": "#stay" } + ] + } + } +} diff --git a/highlight/resources/syntax/diff.json b/highlight/resources/syntax/diff.json new file mode 100644 index 0000000..1c698ed --- /dev/null +++ b/highlight/resources/syntax/diff.json @@ -0,0 +1,76 @@ +{ + "metadata": { + "copyright": [ + "SPDX-FileCopyrightText: 2026 The Goldfish Scheme Authors", + "SPDX-FileCopyrightText: Diff syntax derived from diff.xml by Matthew Woehlke & Eduardo Robles Elvira (KDE syntax-highlighting)" + ], + "license": "SPDX-License-Identifier: MIT", + "name": "Diff" + }, + "name": "Diff", + "extensions": [ + "*.diff", + "*.patch", + "*.rej" + ], + "initial-context": "Normal", + "lists": {}, + "item-datas": { + "Normal": "Normal", + "File": "Keyword", + "Header": "DataType", + "Added": "Variable", + "Removed": "String", + "ChangedOld": "String", + "ChangedNew": "Variable" + }, + "contexts": { + "Normal": { + "attribute": "Normal", + "line-end-context": "#stay", + "rules": [ + { "type": "StringDetect", "attribute": "Header", "context": "line-Header", "String": "@@", "column": 0 }, + { "type": "StringDetect", "attribute": "Header", "context": "line-Header", "String": "+++", "column": 0 }, + { "type": "StringDetect", "attribute": "File", "context": "line-File", "String": "---", "column": 0 }, + { "type": "StringDetect", "attribute": "File", "context": "line-File", "String": "***", "column": 0 }, + { "type": "StringDetect", "attribute": "File", "context": "line-File", "String": "diff", "column": 0 }, + { "type": "StringDetect", "attribute": "File", "context": "line-File", "String": "Only in", "column": 0 }, + { "type": "StringDetect", "attribute": "File", "context": "line-File", "String": "Index:", "column": 0 }, + { "type": "DetectChar", "attribute": "Added", "context": "line-Added", "char": "+", "column": 0 }, + { "type": "DetectChar", "attribute": "Removed", "context": "line-Removed", "char": "-", "column": 0 }, + { "type": "DetectChar", "attribute": "ChangedOld", "context": "line-ChangedOld", "char": "!", "column": 0 }, + { "type": "DetectChar", "attribute": "Normal", "context": "line-Normal", "char": "\\", "column": 0 } + ] + }, + "line-Header": { + "attribute": "Header", + "line-end-context": "#pop", + "rules": [] + }, + "line-File": { + "attribute": "File", + "line-end-context": "#pop", + "rules": [] + }, + "line-Added": { + "attribute": "Added", + "line-end-context": "#pop", + "rules": [] + }, + "line-Removed": { + "attribute": "Removed", + "line-end-context": "#pop", + "rules": [] + }, + "line-ChangedOld": { + "attribute": "ChangedOld", + "line-end-context": "#pop", + "rules": [] + }, + "line-Normal": { + "attribute": "Normal", + "line-end-context": "#pop", + "rules": [] + } + } +} diff --git a/highlight/resources/syntax/go.json b/highlight/resources/syntax/go.json new file mode 100644 index 0000000..feebf3f --- /dev/null +++ b/highlight/resources/syntax/go.json @@ -0,0 +1,153 @@ +{ + "metadata": { + "copyright": [ + "SPDX-FileCopyrightText: 2026 The Goldfish Scheme Authors", + "SPDX-FileCopyrightText: Go syntax derived from go.xml by Miquel Sabaté (KDE syntax-highlighting)" + ], + "license": "SPDX-License-Identifier: MIT", + "name": "Go" + }, + "name": "Go", + "extensions": [ + "*.go" + ], + "initial-context": "Normal", + "lists": { + "keywords": [ + "chan", "const", "func", "import", "interface", "map", "package", + "range", "struct", "type", "var" + ], + "controlflow": [ + "break", "case", "continue", "default", "defer", "else", "fallthrough", + "for", "go", "goto", "if", "return", "select", "switch" + ], + "types": [ + "bool", "byte", "complex64", "complex128", "error", "float32", + "float64", "int", "int8", "int16", "int32", "int64", "rune", "string", + "uint", "uintptr", "uint8", "uint16", "uint32", "uint64", "any", + "comparable" + ], + "builtin": [ + "append", "cap", "close", "complex", "copy", "delete", "imag", "len", + "make", "new", "panic", "print", "println", "real", "recover" + ], + "predeclared": [ + "false", "nil", "true", "iota" + ] + }, + "item-datas": { + "Normal": "Normal", + "Keyword": "Keyword", + "ControlFlow": "ControlFlow", + "Predeclared": "Constant", + "Builtin": "BuiltIn", + "DataType": "DataType", + "String": "String", + "RawString": "VerbatimString", + "Char": "Char", + "SpecialChar": "SpecialChar", + "Comment": "Comment", + "DecVal": "DecVal", + "BaseN": "BaseN", + "Float": "Float", + "Operator": "Operator", + "Error": "Error" + }, + "contexts": { + "Normal": { + "attribute": "Normal", + "line-end-context": "#stay", + "rules": [ + { "type": "DetectSpaces", "attribute": "Normal", "context": "#stay" }, + { "type": "Detect2Chars", "attribute": "Comment", "context": "comment-line", "char": "/", "char1": "/" }, + { "type": "Detect2Chars", "attribute": "Comment", "context": "comment-block", "char": "/", "char1": "*" }, + { "type": "DetectChar", "attribute": "RawString", "context": "raw-string", "char": "`" }, + { "type": "DetectChar", "attribute": "String", "context": "string", "char": "\"" }, + { "type": "DetectChar", "attribute": "Char", "context": "char", "char": "'" }, + { "type": "Hex", "attribute": "BaseN", "context": "#stay" }, + { "type": "Float", "attribute": "Float", "context": "#stay" }, + { "type": "Int", "attribute": "DecVal", "context": "#stay" }, + { "type": "keyword", "attribute": "ControlFlow", "context": "#stay", "String": "controlflow" }, + { "type": "keyword", "attribute": "Keyword", "context": "#stay", "String": "keywords" }, + { "type": "keyword", "attribute": "DataType", "context": "#stay", "String": "types" }, + { "type": "keyword", "attribute": "Builtin", "context": "#stay", "String": "builtin" }, + { "type": "keyword", "attribute": "Predeclared", "context": "#stay", "String": "predeclared" }, + { "type": "Detect2Chars", "attribute": "Operator", "context": "#stay", "char": "<", "char1": "-" }, + { "type": "Detect2Chars", "attribute": "Operator", "context": "#stay", "char": ":", "char1": "=" }, + { "type": "Detect2Chars", "attribute": "Operator", "context": "#stay", "char": "=", "char1": "=" }, + { "type": "Detect2Chars", "attribute": "Operator", "context": "#stay", "char": "!", "char1": "=" }, + { "type": "Detect2Chars", "attribute": "Operator", "context": "#stay", "char": "<", "char1": "=" }, + { "type": "Detect2Chars", "attribute": "Operator", "context": "#stay", "char": ">", "char1": "=" }, + { "type": "Detect2Chars", "attribute": "Operator", "context": "#stay", "char": "&", "char1": "&" }, + { "type": "Detect2Chars", "attribute": "Operator", "context": "#stay", "char": "|", "char1": "|" }, + { "type": "Detect2Chars", "attribute": "Operator", "context": "#stay", "char": "+", "char1": "+" }, + { "type": "Detect2Chars", "attribute": "Operator", "context": "#stay", "char": "-", "char1": "-" }, + { "type": "Detect2Chars", "attribute": "Operator", "context": "#stay", "char": "<", "char1": "<" }, + { "type": "Detect2Chars", "attribute": "Operator", "context": "#stay", "char": ">", "char1": ">" }, + { "type": "AnyChar", "attribute": "Operator", "context": "#stay", "String": "+-*/%=<>!&|^~?:.," }, + { "type": "AnyChar", "attribute": "Normal", "context": "#stay", "String": "()[]{};" }, + { "type": "DetectIdentifier", "attribute": "Normal", "context": "#stay" } + ] + }, + "comment-line": { + "attribute": "Comment", + "line-end-context": "#pop", + "rules": [ + { "type": "DetectSpaces", "attribute": "Comment", "context": "#stay" }, + { "type": "DetectIdentifier", "attribute": "Comment", "context": "#stay" }, + { "type": "AnyChar", "attribute": "Comment", "context": "#stay", "String": "+-*/%=<>!&|^~?:;.,()[]{}#@$&'\"\\" } + ] + }, + "comment-block": { + "attribute": "Comment", + "line-end-context": "#stay", + "rules": [ + { "type": "Detect2Chars", "attribute": "Comment", "context": "#pop", "char": "*", "char1": "/" }, + { "type": "DetectSpaces", "attribute": "Comment", "context": "#stay" }, + { "type": "DetectIdentifier", "attribute": "Comment", "context": "#stay" }, + { "type": "AnyChar", "attribute": "Comment", "context": "#stay", "String": "+-*/%=<>!&|^~?:;.,()[]{}#@$&'\"\\" } + ] + }, + "raw-string": { + "attribute": "RawString", + "line-end-context": "#stay", + "rules": [ + { "type": "DetectChar", "attribute": "RawString", "context": "#pop", "char": "`" } + ] + }, + "string": { + "attribute": "String", + "line-end-context": "#pop", + "rules": [ + { "type": "DetectChar", "attribute": "String", "context": "#pop", "char": "\"" }, + { "type": "Detect2Chars", "attribute": "SpecialChar", "context": "#stay", "char": "\\", "char1": "\\" }, + { "type": "Detect2Chars", "attribute": "SpecialChar", "context": "#stay", "char": "\\", "char1": "\"" }, + { "type": "Detect2Chars", "attribute": "SpecialChar", "context": "#stay", "char": "\\", "char1": "n" }, + { "type": "Detect2Chars", "attribute": "SpecialChar", "context": "#stay", "char": "\\", "char1": "t" }, + { "type": "Detect2Chars", "attribute": "SpecialChar", "context": "#stay", "char": "\\", "char1": "r" }, + { "type": "Detect2Chars", "attribute": "SpecialChar", "context": "#stay", "char": "\\", "char1": "a" }, + { "type": "Detect2Chars", "attribute": "SpecialChar", "context": "#stay", "char": "\\", "char1": "b" }, + { "type": "Detect2Chars", "attribute": "SpecialChar", "context": "#stay", "char": "\\", "char1": "f" }, + { "type": "Detect2Chars", "attribute": "SpecialChar", "context": "#stay", "char": "\\", "char1": "v" }, + { "type": "Detect2Chars", "attribute": "SpecialChar", "context": "#stay", "char": "\\", "char1": "0" } + ] + }, + "char": { + "attribute": "Char", + "line-end-context": "#pop", + "rules": [ + { "type": "DetectChar", "attribute": "Char", "context": "#pop", "char": "'" }, + { "type": "Detect2Chars", "attribute": "SpecialChar", "context": "#stay", "char": "\\", "char1": "\\" }, + { "type": "Detect2Chars", "attribute": "SpecialChar", "context": "#stay", "char": "\\", "char1": "'" }, + { "type": "Detect2Chars", "attribute": "SpecialChar", "context": "#stay", "char": "\\", "char1": "n" }, + { "type": "Detect2Chars", "attribute": "SpecialChar", "context": "#stay", "char": "\\", "char1": "t" }, + { "type": "Detect2Chars", "attribute": "SpecialChar", "context": "#stay", "char": "\\", "char1": "r" }, + { "type": "Detect2Chars", "attribute": "SpecialChar", "context": "#stay", "char": "\\", "char1": "a" }, + { "type": "Detect2Chars", "attribute": "SpecialChar", "context": "#stay", "char": "\\", "char1": "b" }, + { "type": "Detect2Chars", "attribute": "SpecialChar", "context": "#stay", "char": "\\", "char1": "f" }, + { "type": "Detect2Chars", "attribute": "SpecialChar", "context": "#stay", "char": "\\", "char1": "v" }, + { "type": "Detect2Chars", "attribute": "SpecialChar", "context": "#stay", "char": "\\", "char1": "0" } + ] + } + } +} diff --git a/highlight/resources/syntax/haskell.json b/highlight/resources/syntax/haskell.json new file mode 100644 index 0000000..ea60dbc --- /dev/null +++ b/highlight/resources/syntax/haskell.json @@ -0,0 +1,878 @@ +{ + "metadata": { + "copyright": [ + "SPDX-FileCopyrightText: 2026 The Goldfish Scheme Authors", + "SPDX-FileCopyrightText: Haskell syntax derived from haskell.xml by Nicolas Wu (KDE syntax-highlighting)" + ], + "license": "SPDX-License-Identifier: LGPL-2.0-or-later", + "name": "Haskell" + }, + "name": "Haskell", + "extensions": [ + "*.hs", + "*.hs-boot", + "*.lhs" + ], + "initial-context": "code", + "lists": { + "keywords": [ + "case", + "class", + "data", + "deriving", + "do", + "else", + "family", + "forall", + "if", + "in", + "infixl", + "infixr", + "instance", + "let", + "module", + "newtype", + "of", + "pattern", + "primitive", + "then", + "type", + "where" + ], + "prelude function": [ + "abs", + "acos", + "acosh", + "all", + "and", + "any", + "appendFile", + "approxRational", + "asTypeOf", + "asin", + "asinh", + "atan", + "atan2", + "atanh", + "basicIORun", + "break", + "catch", + "ceiling", + "chr", + "compare", + "concat", + "concatMap", + "const", + "cos", + "cosh", + "curry", + "cycle", + "decodeFloat", + "denominator", + "digitToInt", + "div", + "divMod", + "drop", + "dropWhile", + "either", + "elem", + "encodeFloat", + "enumFrom", + "enumFromThen", + "enumFromThenTo", + "enumFromTo", + "error", + "even", + "exp", + "exponent", + "fail", + "filter", + "flip", + "floatDigits", + "floatRadix", + "floatRange", + "floor", + "fmap", + "foldl", + "foldl1", + "foldMap", + "foldr", + "foldr1", + "fromDouble", + "fromEnum", + "fromInt", + "fromInteger", + "fromIntegral", + "fromRational", + "fst", + "gcd", + "getChar", + "getContents", + "getLine", + "group", + "head", + "id", + "inRange", + "index", + "init", + "intToDigit", + "interact", + "ioError", + "isAlpha", + "isAlphaNum", + "isAscii", + "isControl", + "isDenormalized", + "isDigit", + "isHexDigit", + "isIEEE", + "isInfinite", + "isLower", + "isNaN", + "isNegativeZero", + "isOctDigit", + "isPrint", + "isSpace", + "isUpper", + "iterate", + "last", + "lcm", + "length", + "lex", + "lexDigits", + "lexLitChar", + "lines", + "log", + "logBase", + "lookup", + "map", + "mappend", + "mapM", + "mapM_", + "max", + "maxBound", + "maximum", + "maybe", + "mconcat", + "mempty", + "min", + "minBound", + "minimum", + "mod", + "negate", + "not", + "notElem", + "null", + "numerator", + "odd", + "or", + "ord", + "otherwise", + "pack", + "pi", + "pred", + "primExitWith", + "print", + "product", + "properFraction", + "pure", + "putChar", + "putStr", + "putStrLn", + "quot", + "quotRem", + "range", + "rangeSize", + "read", + "readDec", + "readFile", + "readFloat", + "readHex", + "readIO", + "readInt", + "readList", + "readLitChar", + "readLn", + "readOct", + "readParen", + "readSigned", + "reads", + "readsPrec", + "realToFrac", + "recip", + "rem", + "repeat", + "replicate", + "return", + "reverse", + "round", + "scaleFloat", + "scanl", + "scanl1", + "scanr", + "scanr1", + "seq", + "sequence", + "sequenceA", + "sequence_", + "show", + "showChar", + "showInt", + "showList", + "showLitChar", + "showParen", + "showSigned", + "showString", + "shows", + "showsPrec", + "significand", + "signum", + "sin", + "sinh", + "snd", + "sort", + "span", + "splitAt", + "sqrt", + "subtract", + "succ", + "sum", + "tail", + "take", + "takeWhile", + "tan", + "tanh", + "threadToIOResult", + "toEnum", + "toInt", + "toInteger", + "toLower", + "toRational", + "toUpper", + "traverse", + "truncate", + "uncurry", + "undefined", + "unlines", + "until", + "unwords", + "unzip", + "unzip3", + "userError", + "words", + "writeFile", + "zip", + "zip3", + "zipWith", + "zipWith3" + ], + "prelude type": [ + "Bool", + "ByteString", + "Char", + "Double", + "Either", + "FilePath", + "Float", + "Int", + "Integer", + "IO", + "IOError", + "Maybe", + "Ordering", + "Ratio", + "Rational", + "ReadS", + "ShowS", + "String", + "Word" + ], + "prelude data": [ + "False", + "True", + "Left", + "Right", + "Just", + "Nothing", + "EQ", + "LT", + "GT" + ], + "prelude class": [ + "Applicative", + "Bounded", + "Enum", + "Eq", + "Floating", + "Foldable", + "Fractional", + "Functor", + "Integral", + "Ix", + "Monad", + "Monoid", + "Num", + "Ord", + "Read", + "Real", + "RealFloat", + "RealFrac", + "Show", + "Traversable" + ], + "import_keywords": [ + "as", + "qualified", + "hiding" + ], + "language_pragmas": [ + "AllowAmbiguousTypes", + "ApplicativeDo", + "Arrows", + "AutoDeriveTypeable", + "BangPatterns", + "BinaryLiterals", + "CApiFFI", + "CPP", + "ConstrainedClassMethods", + "ConstraintKinds", + "DataKinds", + "DatatypeContexts", + "DefaultSignatures", + "DeriveAnyClass", + "DeriveDataTypeable", + "DeriveFoldable", + "DeriveFunctor", + "DeriveGeneric", + "DeriveLift", + "DeriveTraversable", + "DisambiguateRecordFields", + "DoAndIfThenElse", + "DoRec", + "DuplicateRecordFields", + "EmptyCase", + "EmptyDataDecls", + "ExistentialQuantification", + "ExplicitForAll", + "ExplicitNamespaces", + "ExtendedDefaultRules", + "ExtensibleRecords", + "FlexibleContexts", + "FlexibleInstances", + "ForeignFunctionInterface", + "FunctionalDependencies", + "GADTSyntax", + "GADTs", + "GHCForeignImportPrim", + "GeneralizedNewtypeDeriving", + "Generics", + "HereDocuments", + "ImplicitParams", + "ImplicitPrelude", + "ImpredicativeTypes", + "IncoherentInstances", + "InstanceSigs", + "InterruptibleFFI", + "JavaScriptFFI", + "KindSignatures", + "LambdaCase", + "LiberalTypeSynonyms", + "MagicHash", + "MonadComprehensions", + "MonadFailDesugaring", + "MonoLocalBinds", + "MonoPatBinds", + "MonomorphismRestriction", + "MultiParamTypeClasses", + "MultiWayIf", + "NPlusKPatterns", + "NamedFieldPuns", + "NamedWildCards", + "NegativeLiterals", + "NewQualifiedOperators", + "NondecreasingIndentation", + "NullaryTypeClasses", + "NumDecimals", + "OverlappingInstances", + "OverloadedLabels", + "OverloadedLists", + "OverloadedStrings", + "PackageImports", + "ParallelArrays", + "ParallelListComp", + "PartialTypeSignatures", + "PatternGuards", + "PatternSignatures", + "PatternSynonyms", + "PolyKinds", + "PolymorphicComponents", + "PostfixOperators", + "QuasiQuotes", + "Rank2Types", + "RankNTypes", + "RebindableSyntax", + "RecordPuns", + "RecordWildCards", + "RecursiveDo", + "RegularPatterns", + "RelaxedPolyRec", + "RestrictedTypeSynonyms", + "RoleAnnotations", + "Safe", + "SafeImports", + "ScopedTypeVariables", + "StandaloneDeriving", + "StaticPointers", + "Strict", + "StrictData", + "TemplateHaskell", + "TemplateHaskellQuotes", + "TraditionalRecordSyntax", + "TransformListComp", + "Trustworthy", + "TupleSections", + "TypeApplications", + "TypeFamilies", + "TypeInType", + "TypeOperators", + "TypeSynonymInstances", + "UnboxedTuples", + "UndecidableInstances", + "UndecidableSuperClasses", + "UnicodeSyntax", + "UnliftedFFITypes", + "Unsafe", + "ViewPatterns", + "XmlSyntax" + ] + }, + "item-datas": { + "Normal": "Normal", + "Comment": "Comment", + "Pragma": "Others", + "Keyword": "Keyword", + "Type Prelude": "DataType", + "Function Prelude": "Function", + "Data Prelude": "DataType", + "Class Prelude": "DataType", + "Signature": "Others", + "Function": "Normal", + "Operator": "Operator", + "Type": "DataType", + "Special": "Others", + "Octal": "BaseN", + "Hex": "BaseN", + "Decimal": "DecVal", + "Float": "Float", + "Char": "Char", + "String": "String", + "Function Infix": "Others", + "EnumFromTo": "Others", + "Error": "Error" + }, + "contexts": { + "code": { + "attribute": "Normal", + "line-end-context": "#stay", + "rules": [ + { + "type": "StringDetect", + "attribute": "Pragma", + "context": "pragma", + "String": "{-#" + }, + { + "type": "Detect2Chars", + "attribute": "Comment", + "context": "block-comment", + "char": "{", + "char1": "-" + }, + { + "type": "StringDetect", + "attribute": "Comment", + "context": "line-comment", + "String": "--" + }, + { + "type": "WordDetect", + "attribute": "Keyword", + "context": "import-ctx", + "String": "import", + "delimiters": " \t\r\n()[]{}\"'`;,." + }, + { + "type": "keyword", + "attribute": "Keyword", + "context": "#stay", + "String": "keywords", + "delimiters": " \t\r\n()[]{}\"'`;,." + }, + { + "type": "keyword", + "attribute": "Function Prelude", + "context": "#stay", + "String": "prelude function", + "delimiters": " \t\r\n()[]{}\"'`;,." + }, + { + "type": "keyword", + "attribute": "Type Prelude", + "context": "#stay", + "String": "prelude type", + "delimiters": " \t\r\n()[]{}\"'`;,." + }, + { + "type": "keyword", + "attribute": "Data Prelude", + "context": "#stay", + "String": "prelude data", + "delimiters": " \t\r\n()[]{}\"'`;,." + }, + { + "type": "keyword", + "attribute": "Class Prelude", + "context": "#stay", + "String": "prelude class", + "delimiters": " \t\r\n()[]{}\"'`;,." + }, + { + "type": "DetectChar", + "attribute": "Char", + "context": "char", + "char": "'" + }, + { + "type": "DetectChar", + "attribute": "String", + "context": "string", + "char": "\"" + }, + { + "type": "DetectChar", + "attribute": "Function Infix", + "context": "infix", + "char": "`" + }, + { + "type": "Hex", + "attribute": "Hex", + "context": "#stay" + }, + { + "type": "Float", + "attribute": "Float", + "context": "#stay" + }, + { + "type": "Int", + "attribute": "Decimal", + "context": "#stay" + }, + { + "type": "Detect2Chars", + "attribute": "EnumFromTo", + "context": "#stay", + "char": ".", + "char1": "." + }, + { + "type": "AnyChar", + "attribute": "Operator", + "context": "#stay", + "String": "!#$%&*+/<=>?@^|~.:;-\\" + }, + { + "type": "AnyChar", + "attribute": "Normal", + "context": "#stay", + "String": "()[]{},_" + }, + { + "type": "DetectIdentifier", + "attribute": "Normal", + "context": "#stay" + } + ] + }, + "pragma": { + "attribute": "Pragma", + "line-end-context": "#stay", + "rules": [ + { + "type": "DetectSpaces", + "attribute": "Pragma", + "context": "#stay" + }, + { + "type": "keyword", + "attribute": "Pragma", + "context": "#stay", + "String": "language_pragmas", + "delimiters": " \t\r\n()[]{}\"'`;,." + }, + { + "type": "DetectIdentifier", + "attribute": "Pragma", + "context": "#stay" + }, + { + "type": "StringDetect", + "attribute": "Pragma", + "context": "#pop", + "String": "#-}" + }, + { + "type": "AnyChar", + "attribute": "Pragma", + "context": "#stay", + "String": ",()[]" + } + ] + }, + "line-comment": { + "attribute": "Comment", + "line-end-context": "#pop", + "rules": [ + { + "type": "DetectSpaces", + "attribute": "Comment", + "context": "#stay" + }, + { + "type": "DetectIdentifier", + "attribute": "Comment", + "context": "#stay" + }, + { + "type": "AnyChar", + "attribute": "Comment", + "context": "#stay", + "String": "+-*/%=<>!&|^~?:;.,()[]{}#@$'\"`" + } + ] + }, + "block-comment": { + "attribute": "Comment", + "line-end-context": "#stay", + "rules": [ + { + "type": "Detect2Chars", + "attribute": "Comment", + "context": "block-comment", + "char": "{", + "char1": "-" + }, + { + "type": "Detect2Chars", + "attribute": "Comment", + "context": "#pop", + "char": "-", + "char1": "}" + }, + { + "type": "DetectSpaces", + "attribute": "Comment", + "context": "#stay" + }, + { + "type": "DetectIdentifier", + "attribute": "Comment", + "context": "#stay" + }, + { + "type": "AnyChar", + "attribute": "Comment", + "context": "#stay", + "String": "+-*/%=<>!&|^~?:;.,()[]{}#@$'\"`" + } + ] + }, + "char": { + "attribute": "Char", + "line-end-context": "#pop", + "rules": [ + { + "type": "DetectChar", + "attribute": "Char", + "context": "#pop", + "char": "'" + }, + { + "type": "Detect2Chars", + "attribute": "Char", + "context": "#stay", + "char": "\\", + "char1": "\\" + }, + { + "type": "Detect2Chars", + "attribute": "Char", + "context": "#stay", + "char": "\\", + "char1": "'" + }, + { + "type": "Detect2Chars", + "attribute": "Char", + "context": "#stay", + "char": "\\", + "char1": "n" + }, + { + "type": "Detect2Chars", + "attribute": "Char", + "context": "#stay", + "char": "\\", + "char1": "t" + }, + { + "type": "Detect2Chars", + "attribute": "Char", + "context": "#stay", + "char": "\\", + "char1": "r" + }, + { + "type": "Detect2Chars", + "attribute": "Char", + "context": "#stay", + "char": "\\", + "char1": "0" + }, + { + "type": "DetectChar", + "attribute": "Char", + "context": "#stay", + "char": "\\" + } + ] + }, + "string": { + "attribute": "String", + "line-end-context": "#stay", + "rules": [ + { + "type": "DetectChar", + "attribute": "String", + "context": "#pop", + "char": "\"" + }, + { + "type": "Detect2Chars", + "attribute": "String", + "context": "#stay", + "char": "\\", + "char1": "\\" + }, + { + "type": "Detect2Chars", + "attribute": "String", + "context": "#stay", + "char": "\\", + "char1": "\"" + }, + { + "type": "Detect2Chars", + "attribute": "String", + "context": "#stay", + "char": "\\", + "char1": "n" + }, + { + "type": "Detect2Chars", + "attribute": "String", + "context": "#stay", + "char": "\\", + "char1": "t" + }, + { + "type": "Detect2Chars", + "attribute": "String", + "context": "#stay", + "char": "\\", + "char1": "r" + }, + { + "type": "Detect2Chars", + "attribute": "String", + "context": "#stay", + "char": "\\", + "char1": "0" + } + ] + }, + "infix": { + "attribute": "Function Infix", + "line-end-context": "#stay", + "rules": [ + { + "type": "DetectChar", + "attribute": "Function Infix", + "context": "#pop", + "char": "`" + }, + { + "type": "keyword", + "attribute": "Function Prelude", + "context": "#stay", + "String": "prelude function", + "delimiters": " \t\r\n()[]{}\"'`;,." + }, + { + "type": "DetectIdentifier", + "attribute": "Function Infix", + "context": "#stay" + } + ] + }, + "import-ctx": { + "attribute": "Normal", + "line-end-context": "#pop", + "rules": [ + { + "type": "DetectSpaces", + "attribute": "Normal", + "context": "#stay" + }, + { + "type": "keyword", + "attribute": "Keyword", + "context": "#stay", + "String": "import_keywords", + "delimiters": " \t\r\n()[]{}\"'`;,." + }, + { + "type": "StringDetect", + "attribute": "Comment", + "context": "line-comment", + "String": "--" + }, + { + "type": "Detect2Chars", + "attribute": "Comment", + "context": "block-comment", + "char": "{", + "char1": "-" + }, + { + "type": "DetectIdentifier", + "attribute": "Type", + "context": "#stay" + }, + { + "type": "DetectChar", + "attribute": "Operator", + "context": "#stay", + "char": "(" + }, + { + "type": "DetectChar", + "attribute": "Operator", + "context": "#stay", + "char": ")" + } + ] + } + } +} \ No newline at end of file diff --git a/highlight/resources/syntax/html.json b/highlight/resources/syntax/html.json new file mode 100644 index 0000000..00fb857 --- /dev/null +++ b/highlight/resources/syntax/html.json @@ -0,0 +1,177 @@ +{ + "metadata": { + "copyright": [ + "SPDX-FileCopyrightText: 2026 The Goldfish Scheme Authors", + "SPDX-FileCopyrightText: HTML syntax derived from html.xml by Wilbert Berendsen (KDE syntax-highlighting)" + ], + "license": "SPDX-License-Identifier: MIT", + "name": "HTML" + }, + "name": "HTML", + "extensions": [ + "*.html", + "*.htm", + "*.xhtml" + ], + "initial-context": "Normal", + "lists": {}, + "item-datas": { + "Normal": "Normal", + "Comment": "Comment", + "Doctype": "DataType", + "Tag": "Keyword", + "TagClose": "Keyword", + "AttributeName": "Attribute", + "Value": "String", + "EntityRef": "DecVal", + "Symbol": "Operator", + "Error": "Error" + }, + "contexts": { + "Normal": { + "attribute": "Normal", + "line-end-context": "#stay", + "rules": [ + { "type": "DetectSpaces", "attribute": "Normal", "context": "#stay" }, + { "type": "StringDetect", "attribute": "Comment", "context": "comment", "String": "" }, + { "type": "DetectSpaces", "attribute": "Comment", "context": "#stay" }, + { "type": "DetectIdentifier", "attribute": "Comment", "context": "#stay" } + ] + }, + "doctype": { + "attribute": "Doctype", + "line-end-context": "#pop", + "rules": [ + { "type": "DetectChar", "attribute": "Symbol", "context": "#pop", "char": ">" }, + { "type": "DetectSpaces", "attribute": "Doctype", "context": "#stay" }, + { "type": "DetectIdentifier", "attribute": "Doctype", "context": "#stay" } + ] + }, + "entity": { + "attribute": "EntityRef", + "line-end-context": "#pop", + "fallthrough-context": "#pop", + "rules": [ + { "type": "DetectChar", "attribute": "EntityRef", "context": "#pop", "char": ";" }, + { "type": "DetectIdentifier", "attribute": "EntityRef", "context": "#stay" }, + { "type": "AnyChar", "attribute": "EntityRef", "context": "#stay", "String": "0123456789#" } + ] + }, + "tag-open": { + "attribute": "Tag", + "line-end-context": "#stay", + "fallthrough-context": "#stay", + "rules": [ + { "type": "DetectChar", "attribute": "Symbol", "context": "#pop!tag-close", "char": "/" }, + { "type": "StringDetect", "attribute": "Tag", "context": "#pop!style-tag", "String": "style" }, + { "type": "StringDetect", "attribute": "Tag", "context": "#pop!script-tag", "String": "script" }, + { "type": "DetectIdentifier", "attribute": "Tag", "context": "#pop!tag-attrs" }, + { "type": "DetectChar", "attribute": "Symbol", "context": "#pop", "char": ">" } + ] + }, + "tag-close": { + "attribute": "TagClose", + "line-end-context": "#stay", + "fallthrough-context": "#stay", + "rules": [ + { "type": "StringDetect", "attribute": "TagClose", "context": "#pop!style-end", "String": "style" }, + { "type": "StringDetect", "attribute": "TagClose", "context": "#pop!script-end", "String": "script" }, + { "type": "DetectIdentifier", "attribute": "TagClose", "context": "#pop!tag-close-wait" }, + { "type": "DetectChar", "attribute": "Symbol", "context": "#pop", "char": ">" } + ] + }, + "tag-attrs": { + "attribute": "Normal", + "line-end-context": "#stay", + "rules": [ + { "type": "DetectSpaces", "attribute": "Normal", "context": "#stay" }, + { "type": "Detect2Chars", "attribute": "Symbol", "context": "#pop", "char": "/", "char1": ">" }, + { "type": "DetectChar", "attribute": "Symbol", "context": "#pop", "char": ">" }, + { "type": "DetectChar", "attribute": "Value", "context": "attr-value", "char": "\"" }, + { "type": "DetectChar", "attribute": "Value", "context": "attr-value-single", "char": "'" }, + { "type": "DetectChar", "attribute": "Symbol", "context": "#stay", "char": "=" }, + { "type": "DetectIdentifier", "attribute": "AttributeName", "context": "#stay" } + ] + }, + "tag-close-wait": { + "attribute": "Normal", + "line-end-context": "#stay", + "rules": [ + { "type": "DetectSpaces", "attribute": "Normal", "context": "#stay" }, + { "type": "DetectChar", "attribute": "Symbol", "context": "#pop", "char": ">" } + ] + }, + "attr-value": { + "attribute": "Value", + "line-end-context": "#pop", + "rules": [ + { "type": "DetectChar", "attribute": "Value", "context": "#pop", "char": "\"" } + ] + }, + "attr-value-single": { + "attribute": "Value", + "line-end-context": "#pop", + "rules": [ + { "type": "DetectChar", "attribute": "Value", "context": "#pop", "char": "'" } + ] + }, + "style-tag": { + "attribute": "Normal", + "line-end-context": "#stay", + "rules": [ + { "type": "DetectSpaces", "attribute": "Normal", "context": "#stay" }, + { "type": "DetectChar", "attribute": "Symbol", "context": "#pop!style-css", "char": ">" } + ] + }, + "style-css": { + "attribute": "Normal", + "line-end-context": "#stay", + "rules": [ + { "type": "StringDetect", "attribute": "TagClose", "context": "#pop!style-end", "String": "" } + ] + }, + "script-tag": { + "attribute": "Normal", + "line-end-context": "#stay", + "rules": [ + { "type": "DetectSpaces", "attribute": "Normal", "context": "#stay" }, + { "type": "DetectChar", "attribute": "Symbol", "context": "#pop!script-js", "char": ">" } + ] + }, + "script-js": { + "attribute": "Normal", + "line-end-context": "#stay", + "rules": [ + { "type": "StringDetect", "attribute": "TagClose", "context": "#pop!script-end", "String": "" } + ] + } + } +} diff --git a/highlight/resources/syntax/java.json b/highlight/resources/syntax/java.json new file mode 100644 index 0000000..c87a31d --- /dev/null +++ b/highlight/resources/syntax/java.json @@ -0,0 +1,182 @@ +{ + "metadata": { + "copyright": [ + "SPDX-FileCopyrightText: 2026 The Goldfish Scheme Authors", + "SPDX-FileCopyrightText: Java syntax derived from java.xml by Alfredo Luiz Foltran Fialho (KDE syntax-highlighting)" + ], + "license": "SPDX-License-Identifier: MIT", + "name": "Java" + }, + "name": "Java", + "extensions": [ + "*.java" + ], + "initial-context": "Normal", + "lists": { + "keywords": [ + "abstract", "class", "default", "enum", "extends", "false", + "implements", "instanceof", "interface", "native", "new", "null", + "private", "protected", "public", "super", "strictfp", + "synchronized", "this", "throws", "transient", "true", "volatile", + "non-sealed", "permits", "record", "sealed", "var", "final" + ], + "controlflow": [ + "assert", "break", "case", "catch", "continue", "do", "else", + "finally", "for", "goto", "if", "return", "switch", "throw", "try", + "while", "yield" + ], + "types": [ + "boolean", "byte", "char", "const", "double", "float", "int", + "long", "short", "void" + ], + "annotations": [ + "Override", "Deprecated", "SuppressWarnings", "SafeVarargs", + "FunctionalInterface", "interface", "Retention", "Documented", + "Target", "Inherited", "Repeatable" + ] + }, + "item-datas": { + "Normal": "Normal", + "Keyword": "Keyword", + "ControlFlow": "ControlFlow", + "DataType": "DataType", + "Annotation": "Attribute", + "Function": "Function", + "Import": "Import", + "String": "String", + "TextBlock": "String", + "Char": "Char", + "SpecialChar": "SpecialChar", + "Comment": "Comment", + "DecVal": "DecVal", + "BaseN": "BaseN", + "Float": "Float", + "Operator": "Operator", + "Error": "Error" + }, + "contexts": { + "Normal": { + "attribute": "Normal", + "line-end-context": "#stay", + "rules": [ + { "type": "DetectSpaces", "attribute": "Normal", "context": "#stay" }, + { "type": "Detect2Chars", "attribute": "Comment", "context": "comment-line", "char": "/", "char1": "/" }, + { "type": "Detect2Chars", "attribute": "Comment", "context": "comment-block", "char": "/", "char1": "*" }, + { "type": "StringDetect", "attribute": "TextBlock", "context": "text-block", "String": "\"\"\"" }, + { "type": "DetectChar", "attribute": "String", "context": "string", "char": "\"" }, + { "type": "DetectChar", "attribute": "Char", "context": "char", "char": "'" }, + { "type": "DetectChar", "attribute": "Annotation", "context": "annotation", "char": "@" }, + { "type": "WordDetect", "attribute": "Keyword", "context": "imports", "String": "package" }, + { "type": "WordDetect", "attribute": "Keyword", "context": "imports-or-static", "String": "import" }, + { "type": "Hex", "attribute": "BaseN", "context": "#stay" }, + { "type": "Float", "attribute": "Float", "context": "#stay" }, + { "type": "Int", "attribute": "DecVal", "context": "#stay" }, + { "type": "keyword", "attribute": "ControlFlow", "context": "#stay", "String": "controlflow" }, + { "type": "keyword", "attribute": "Keyword", "context": "#stay", "String": "keywords" }, + { "type": "keyword", "attribute": "DataType", "context": "#stay", "String": "types" }, + { "type": "Detect2Chars", "attribute": "Operator", "context": "#stay", "char": "-", "char1": ">" }, + { "type": "Detect2Chars", "attribute": "Operator", "context": "#stay", "char": ":", "char1": ":" }, + { "type": "Detect2Chars", "attribute": "Operator", "context": "#stay", "char": "=", "char1": "=" }, + { "type": "Detect2Chars", "attribute": "Operator", "context": "#stay", "char": "!", "char1": "=" }, + { "type": "Detect2Chars", "attribute": "Operator", "context": "#stay", "char": "<", "char1": "=" }, + { "type": "Detect2Chars", "attribute": "Operator", "context": "#stay", "char": ">", "char1": "=" }, + { "type": "Detect2Chars", "attribute": "Operator", "context": "#stay", "char": "&", "char1": "&" }, + { "type": "Detect2Chars", "attribute": "Operator", "context": "#stay", "char": "|", "char1": "|" }, + { "type": "Detect2Chars", "attribute": "Operator", "context": "#stay", "char": "+", "char1": "+" }, + { "type": "Detect2Chars", "attribute": "Operator", "context": "#stay", "char": "-", "char1": "-" }, + { "type": "AnyChar", "attribute": "Operator", "context": "#stay", "String": "+-*/%=<>!&|^~?:." }, + { "type": "AnyChar", "attribute": "Normal", "context": "#stay", "String": "()[]{};," }, + { "type": "DetectIdentifier", "attribute": "Normal", "context": "#stay" } + ] + }, + "comment-line": { + "attribute": "Comment", + "line-end-context": "#pop", + "rules": [ + { "type": "DetectSpaces", "attribute": "Comment", "context": "#stay" }, + { "type": "DetectIdentifier", "attribute": "Comment", "context": "#stay" }, + { "type": "AnyChar", "attribute": "Comment", "context": "#stay", "String": "+-*/%=<>!&|^~?:;.,()[]{}#@'\"\\" } + ] + }, + "comment-block": { + "attribute": "Comment", + "line-end-context": "#stay", + "rules": [ + { "type": "Detect2Chars", "attribute": "Comment", "context": "#pop", "char": "*", "char1": "/" }, + { "type": "DetectSpaces", "attribute": "Comment", "context": "#stay" }, + { "type": "DetectIdentifier", "attribute": "Comment", "context": "#stay" }, + { "type": "AnyChar", "attribute": "Comment", "context": "#stay", "String": "+-*/%=<>!&|^~?:;.,()[]{}#@'\"\\" } + ] + }, + "string": { + "attribute": "String", + "line-end-context": "#pop", + "rules": [ + { "type": "DetectChar", "attribute": "String", "context": "#pop", "char": "\"" }, + { "type": "Detect2Chars", "attribute": "SpecialChar", "context": "#stay", "char": "\\", "char1": "\\" }, + { "type": "Detect2Chars", "attribute": "SpecialChar", "context": "#stay", "char": "\\", "char1": "\"" }, + { "type": "Detect2Chars", "attribute": "SpecialChar", "context": "#stay", "char": "\\", "char1": "'" }, + { "type": "Detect2Chars", "attribute": "SpecialChar", "context": "#stay", "char": "\\", "char1": "n" }, + { "type": "Detect2Chars", "attribute": "SpecialChar", "context": "#stay", "char": "\\", "char1": "t" }, + { "type": "Detect2Chars", "attribute": "SpecialChar", "context": "#stay", "char": "\\", "char1": "r" }, + { "type": "Detect2Chars", "attribute": "SpecialChar", "context": "#stay", "char": "\\", "char1": "b" }, + { "type": "Detect2Chars", "attribute": "SpecialChar", "context": "#stay", "char": "\\", "char1": "f" }, + { "type": "Detect2Chars", "attribute": "SpecialChar", "context": "#stay", "char": "\\", "char1": "0" } + ] + }, + "text-block": { + "attribute": "TextBlock", + "line-end-context": "#stay", + "rules": [ + { "type": "StringDetect", "attribute": "TextBlock", "context": "#pop", "String": "\"\"\"" }, + { "type": "Detect2Chars", "attribute": "SpecialChar", "context": "#stay", "char": "\\", "char1": "\\" }, + { "type": "Detect2Chars", "attribute": "SpecialChar", "context": "#stay", "char": "\\", "char1": "\"" }, + { "type": "Detect2Chars", "attribute": "SpecialChar", "context": "#stay", "char": "\\", "char1": "n" }, + { "type": "Detect2Chars", "attribute": "SpecialChar", "context": "#stay", "char": "\\", "char1": "t" }, + { "type": "Detect2Chars", "attribute": "SpecialChar", "context": "#stay", "char": "\\", "char1": "r" } + ] + }, + "char": { + "attribute": "Char", + "line-end-context": "#pop", + "rules": [ + { "type": "DetectChar", "attribute": "Char", "context": "#pop", "char": "'" }, + { "type": "Detect2Chars", "attribute": "SpecialChar", "context": "#stay", "char": "\\", "char1": "\\" }, + { "type": "Detect2Chars", "attribute": "SpecialChar", "context": "#stay", "char": "\\", "char1": "'" }, + { "type": "Detect2Chars", "attribute": "SpecialChar", "context": "#stay", "char": "\\", "char1": "n" }, + { "type": "Detect2Chars", "attribute": "SpecialChar", "context": "#stay", "char": "\\", "char1": "t" }, + { "type": "Detect2Chars", "attribute": "SpecialChar", "context": "#stay", "char": "\\", "char1": "r" }, + { "type": "Detect2Chars", "attribute": "SpecialChar", "context": "#stay", "char": "\\", "char1": "0" } + ] + }, + "annotation": { + "attribute": "Annotation", + "line-end-context": "#pop", + "fallthrough-context": "#pop", + "rules": [ + { "type": "DetectSpaces", "attribute": "Normal", "context": "#stay" }, + { "type": "keyword", "attribute": "Annotation", "context": "#pop", "String": "annotations", "delimiters": " \t\r\n()[]{}\",'`;\\.:+" }, + { "type": "DetectIdentifier", "attribute": "Annotation", "context": "#pop" } + ] + }, + "imports-or-static": { + "attribute": "Normal", + "line-end-context": "#pop", + "fallthrough-context": "#pop!imports", + "rules": [ + { "type": "DetectSpaces", "attribute": "Normal", "context": "#stay" }, + { "type": "WordDetect", "attribute": "Keyword", "context": "#pop!imports", "String": "static" } + ] + }, + "imports": { + "attribute": "Import", + "line-end-context": "#pop", + "rules": [ + { "type": "DetectChar", "attribute": "Operator", "context": "#pop", "char": ";" }, + { "type": "DetectSpaces", "attribute": "Import", "context": "#stay" }, + { "type": "DetectIdentifier", "attribute": "Import", "context": "#stay" }, + { "type": "AnyChar", "attribute": "Operator", "context": "#stay", "String": ".*$" } + ] + } + } +} diff --git a/highlight/resources/syntax/javascript.json b/highlight/resources/syntax/javascript.json new file mode 100644 index 0000000..7a21064 --- /dev/null +++ b/highlight/resources/syntax/javascript.json @@ -0,0 +1,233 @@ +{ + "metadata": { + "copyright": [ + "SPDX-FileCopyrightText: 2026 The Goldfish Scheme Authors", + "SPDX-FileCopyrightText: JavaScript syntax derived from javascript.xml by Anders Lund, Joseph Wenninger and Whitehawk Stormchaser (KDE syntax-highlighting)" + ], + "license": "SPDX-License-Identifier: MIT", + "name": "JavaScript" + }, + "name": "JavaScript", + "extensions": [ + "*.js", + "*.mjs", + "*.cjs", + "*.kwinscript", + "*.julius" + ], + "initial-context": "Normal", + "lists": { + "controlflow": [ + "await", "break", "case", "catch", "continue", "debugger", "do", + "else", "finally", "for", "if", "return", "switch", "throw", + "try", "while", "with" + ], + "keywords": [ + "const", "delete", "in", "instanceof", "new", "of", "this", + "typeof", "var", "void", "set", "get" + ], + "reserved": [ + "async", "class", "enum", "extends", "super", "arguments", + "implements", "interface", "let", "private", "protected", "public", + "static", "yield" + ], + "modules": [ + "import", "from", "as", "default", "export", "package" + ], + "primitives": [ + "Infinity", "NaN", "false", "null", "true", "undefined" + ], + "builtins": [ + "Array", "ArrayBuffer", "Atomics", "BigInt", "BigInt64Array", + "BigUint64Array", "Boolean", "DataView", "Date", "FinalizationRegistry", + "Float32Array", "Float64Array", "Function", "Generator", + "GeneratorFunction", "Int8Array", "Int16Array", "Int32Array", "Intl", + "JSON", "Map", "Math", "Number", "Object", "Promise", "Proxy", + "Reflect", "RegExp", "SIMD", "Set", "SharedArrayBuffer", "String", + "Symbol", "TypedArray", "Uint8Array", "Uint16Array", "Uint32Array", + "Uint8ClampedArray", "WeakMap", "WeakRef", "WeakSet", "Error", + "EvalError", "InternalError", "RangeError", "ReferenceError", + "SyntaxError", "TypeError", "URIError", "console", "document", + "globalThis", "navigator", "process", "window", "module", "exports", + "require", "__filename", "__dirname" + ], + "functions": [ + "clearInterval", "clearTimeout", "decodeURI", "decodeURIComponent", + "encodeURI", "encodeURIComponent", "escape", "eval", "isFinite", + "isNaN", "parseFloat", "parseInt", "setInterval", "setTimeout", + "unescape", "fetch" + ] + }, + "item-datas": { + "Normal": "Normal", + "Keyword": "Keyword", + "ControlFlow": "ControlFlow", + "Reserved": "Keyword", + "Module": "Import", + "Primitives": "Constant", + "Constant": "Constant", + "Built-in Objects": "BuiltIn", + "Function Name": "Function", + "Function Declaration": "Function", + "Object Member": "Attribute", + "Object Property (Built-in)": "Attribute", + "Symbol": "Operator", + "Special Operators": "Keyword", + "Private Member Operator": "Normal", + "Decimal": "DecVal", + "Hex": "BaseN", + "Float": "Float", + "String": "String", + "Template": "VerbatimString", + "Escape": "SpecialChar", + "Reserved Char. Escape": "SpecialChar", + "Substitution": "SpecialChar", + "Comment": "Comment", + "Regular Expression": "SpecialString", + "Error": "Error" + }, + "contexts": { + "Normal": { + "attribute": "Normal", + "line-end-context": "#stay", + "rules": [ + { "type": "DetectSpaces", "attribute": "Normal", "context": "#stay" }, + { "type": "Detect2Chars", "attribute": "Comment", "context": "shebang", "char": "#", "char1": "!", "column": 0 }, + { "type": "Detect2Chars", "attribute": "Comment", "context": "comment-line", "char": "/", "char1": "/" }, + { "type": "Detect2Chars", "attribute": "Comment", "context": "comment-block", "char": "/", "char1": "*" }, + { "type": "StringDetect", "attribute": "Template", "context": "template", "String": "`" }, + { "type": "DetectChar", "attribute": "String", "context": "string-double", "char": "\"" }, + { "type": "DetectChar", "attribute": "String", "context": "string-single", "char": "'" }, + { "type": "WordDetect", "attribute": "Keyword", "context": "function-name", "String": "function" }, + { "type": "keyword", "attribute": "ControlFlow", "context": "#stay", "String": "controlflow", "delimiters": " \t\r\n()[]{}\",'`;\\.:=+-*/%^#~<>&|!?" }, + { "type": "keyword", "attribute": "Keyword", "context": "#stay", "String": "keywords", "delimiters": " \t\r\n()[]{}\",'`;\\.:=+-*/%^#~<>&|!?" }, + { "type": "keyword", "attribute": "Reserved", "context": "#stay", "String": "reserved", "delimiters": " \t\r\n()[]{}\",'`;\\.:=+-*/%^#~<>&|!?" }, + { "type": "keyword", "attribute": "Module", "context": "#stay", "String": "modules", "delimiters": " \t\r\n()[]{}\",'`;\\.:=+-*/%^#~<>&|!?" }, + { "type": "keyword", "attribute": "Primitives", "context": "#stay", "String": "primitives", "delimiters": " \t\r\n()[]{}\",'`;\\.:=+-*/%^#~<>&|!?" }, + { "type": "keyword", "attribute": "Built-in Objects", "context": "#stay", "String": "builtins", "delimiters": " \t\r\n()[]{}\",'`;\\.:=+-*/%^#~<>&|!?" }, + { "type": "keyword", "attribute": "Function Name", "context": "#stay", "String": "functions", "delimiters": " \t\r\n()[]{}\",'`;\\.:=+-*/%^#~<>&|!?" }, + { "type": "Hex", "attribute": "Hex", "context": "#stay" }, + { "type": "Float", "attribute": "Float", "context": "#stay" }, + { "type": "Decimal", "attribute": "Decimal", "context": "#stay" }, + { "type": "DetectChar", "attribute": "Symbol", "context": "member", "char": ".", "look-ahead": true }, + { "type": "Detect2Chars", "attribute": "Special Operators", "context": "#stay", "char": "=", "char1": ">" }, + { "type": "DetectChar", "attribute": "Private Member Operator", "context": "#stay", "char": "#" }, + { "type": "AnyChar", "attribute": "Symbol", "context": "#stay", "String": "+-*/%=<>!&|^~?:;" }, + { "type": "AnyChar", "attribute": "Normal", "context": "#stay", "String": "()[]{}.," }, + { "type": "DetectIdentifier", "attribute": "Normal", "context": "#stay" } + ] + }, + "shebang": { + "attribute": "Comment", + "line-end-context": "#pop", + "rules": [ + { "type": "DetectSpaces", "attribute": "Comment", "context": "#stay" }, + { "type": "DetectIdentifier", "attribute": "Comment", "context": "#stay" }, + { "type": "AnyChar", "attribute": "Comment", "context": "#stay", "String": "/.-_:=~" } + ] + }, + "comment-line": { + "attribute": "Comment", + "line-end-context": "#pop", + "rules": [ + { "type": "DetectSpaces", "attribute": "Comment", "context": "#stay" }, + { "type": "DetectIdentifier", "attribute": "Comment", "context": "#stay" }, + { "type": "AnyChar", "attribute": "Comment", "context": "#stay", "String": "+-*/%=<>!&|^~?:;.,()[]{}#@$&'\"\\" } + ] + }, + "comment-block": { + "attribute": "Comment", + "line-end-context": "#stay", + "rules": [ + { "type": "Detect2Chars", "attribute": "Comment", "context": "#pop", "char": "*", "char1": "/" }, + { "type": "DetectSpaces", "attribute": "Comment", "context": "#stay" }, + { "type": "DetectIdentifier", "attribute": "Comment", "context": "#stay" }, + { "type": "AnyChar", "attribute": "Comment", "context": "#stay", "String": "+-*/%=<>!&|^~?:;.,()[]{}#@$&'\"\\" } + ] + }, + "string-double": { + "attribute": "String", + "line-end-context": "#pop", + "rules": [ + { "type": "DetectChar", "attribute": "String", "context": "#pop", "char": "\"" }, + { "type": "DetectChar", "attribute": "Escape", "context": "escape", "char": "\\", "look-ahead": true } + ] + }, + "string-single": { + "attribute": "String", + "line-end-context": "#pop", + "rules": [ + { "type": "DetectChar", "attribute": "String", "context": "#pop", "char": "'" }, + { "type": "DetectChar", "attribute": "Escape", "context": "escape", "char": "\\", "look-ahead": true } + ] + }, + "template": { + "attribute": "Template", + "line-end-context": "#stay", + "rules": [ + { "type": "DetectChar", "attribute": "Template", "context": "#pop", "char": "`" }, + { "type": "Detect2Chars", "attribute": "Substitution", "context": "substitution", "char": "$", "char1": "{" }, + { "type": "DetectChar", "attribute": "Escape", "context": "escape", "char": "\\", "look-ahead": true } + ] + }, + "substitution": { + "attribute": "Normal", + "line-end-context": "#stay", + "rules": [ + { "type": "DetectChar", "attribute": "Substitution", "context": "#pop", "char": "}" }, + { "type": "DetectSpaces", "attribute": "Normal", "context": "#stay" }, + { "type": "Detect2Chars", "attribute": "Comment", "context": "comment-line", "char": "/", "char1": "/" }, + { "type": "Detect2Chars", "attribute": "Comment", "context": "comment-block", "char": "/", "char1": "*" }, + { "type": "StringDetect", "attribute": "Template", "context": "template", "String": "`" }, + { "type": "DetectChar", "attribute": "String", "context": "string-double", "char": "\"" }, + { "type": "DetectChar", "attribute": "String", "context": "string-single", "char": "'" }, + { "type": "keyword", "attribute": "ControlFlow", "context": "#stay", "String": "controlflow", "delimiters": " \t\r\n()[]{}\",'`;\\.:=+-*/%^#~<>&|!?" }, + { "type": "keyword", "attribute": "Keyword", "context": "#stay", "String": "keywords", "delimiters": " \t\r\n()[]{}\",'`;\\.:=+-*/%^#~<>&|!?" }, + { "type": "keyword", "attribute": "Reserved", "context": "#stay", "String": "reserved", "delimiters": " \t\r\n()[]{}\",'`;\\.:=+-*/%^#~<>&|!?" }, + { "type": "keyword", "attribute": "Module", "context": "#stay", "String": "modules", "delimiters": " \t\r\n()[]{}\",'`;\\.:=+-*/%^#~<>&|!?" }, + { "type": "keyword", "attribute": "Primitives", "context": "#stay", "String": "primitives", "delimiters": " \t\r\n()[]{}\",'`;\\.:=+-*/%^#~<>&|!?" }, + { "type": "keyword", "attribute": "Built-in Objects", "context": "#stay", "String": "builtins", "delimiters": " \t\r\n()[]{}\",'`;\\.:=+-*/%^#~<>&|!?" }, + { "type": "keyword", "attribute": "Function Name", "context": "#stay", "String": "functions", "delimiters": " \t\r\n()[]{}\",'`;\\.:=+-*/%^#~<>&|!?" }, + { "type": "Hex", "attribute": "Hex", "context": "#stay" }, + { "type": "Float", "attribute": "Float", "context": "#stay" }, + { "type": "Decimal", "attribute": "Decimal", "context": "#stay" }, + { "type": "DetectChar", "attribute": "Symbol", "context": "member", "char": ".", "look-ahead": true }, + { "type": "Detect2Chars", "attribute": "Special Operators", "context": "#stay", "char": "=", "char1": ">" }, + { "type": "AnyChar", "attribute": "Symbol", "context": "#stay", "String": "+-*/%=<>!&|^~?:;" }, + { "type": "AnyChar", "attribute": "Normal", "context": "#stay", "String": "()[]{},." }, + { "type": "DetectIdentifier", "attribute": "Normal", "context": "#stay" } + ] + }, + "escape": { + "attribute": "Escape", + "line-end-context": "#pop", + "rules": [ + { "type": "AnyChar", "attribute": "Reserved Char. Escape", "context": "#pop", "String": "0bfnrtv\"'`\\/" }, + { "type": "DetectIdentifier", "attribute": "Escape", "context": "#pop" }, + { "type": "DetectSpaces", "attribute": "Escape", "context": "#pop" }, + { "type": "AnyChar", "attribute": "Escape", "context": "#pop", "String": "+-*/%=<>!&|^~?:;.,()[]{}#@$&" } + ] + }, + "member": { + "attribute": "Normal", + "line-end-context": "#pop", + "fallthrough-context": "#pop", + "rules": [ + { "type": "DetectSpaces", "attribute": "Normal", "context": "#stay" }, + { "type": "DetectChar", "attribute": "Symbol", "context": "#stay", "char": "." }, + { "type": "DetectChar", "attribute": "Private Member Operator", "context": "#stay", "char": "#" }, + { "type": "DetectIdentifier", "attribute": "Object Member", "context": "#pop" } + ] + }, + "function-name": { + "attribute": "Normal", + "line-end-context": "#pop", + "fallthrough-context": "#pop", + "rules": [ + { "type": "DetectSpaces", "attribute": "Normal", "context": "#stay" }, + { "type": "DetectIdentifier", "attribute": "Function Declaration", "context": "#pop" }, + { "type": "DetectChar", "attribute": "Private Member Operator", "context": "#stay", "char": "#" } + ] + } + } +} diff --git a/highlight/resources/syntax/json.json b/highlight/resources/syntax/json.json new file mode 100644 index 0000000..1b1a7a1 --- /dev/null +++ b/highlight/resources/syntax/json.json @@ -0,0 +1,135 @@ +{ + "metadata": { + "copyright": [ + "SPDX-FileCopyrightText: 2026 The Goldfish Scheme Authors", + "SPDX-FileCopyrightText: JSON syntax derived from json.xml by Sebastian Pipping (KDE syntax-highlighting)" + ], + "license": "SPDX-License-Identifier: MIT", + "name": "JSON" + }, + "name": "JSON", + "extensions": [ + "*.json", + "*.jsonl", + "*.ndjson", + "*.geojson" + ], + "initial-context": "Normal", + "lists": { + "Constants": [ + "null", + "true", + "false" + ] + }, + "item-datas": { + "Normal": "Normal", + "Function": "Function", + "Others": "Others", + "DecVal": "DecVal", + "Float": "Float", + "DataType": "DataType", + "String": "String", + "Char": "Char", + "Keyword": "Keyword", + "Error": "Error", + "Style_Normal": "Normal", + "Style_Seperator_Pair": "Function", + "Style_Seperator_Array": "Others", + "Style_Decimal": "DecVal", + "Style_Float": "Float", + "Style_String_Key": "DataType", + "Style_String_Value": "String", + "Style_String_Key_Char": "Char", + "Style_String_Value_Char": "Char", + "Style_Keyword": "Keyword", + "Style_Error": "Error" + }, + "contexts": { + "Normal": { + "attribute": "Error", + "line-end-context": "#stay", + "rules": [ + { "type": "DetectChar", "attribute": "String", "context": "String_Value", "char": "\"" }, + { "type": "DetectChar", "attribute": "Function", "context": "Pair", "char": "{" }, + { "type": "DetectChar", "attribute": "Others", "context": "Array", "char": "[" }, + { "type": "DetectSpaces", "attribute": "Normal", "context": "#stay" }, + { "type": "keyword", "attribute": "Keyword", "context": "#stay", "String": "Constants" }, + { "type": "Float", "attribute": "Float", "context": "#stay" }, + { "type": "Decimal", "attribute": "DecVal", "context": "#stay" } + ] + }, + "Pair": { + "attribute": "Error", + "line-end-context": "#stay", + "rules": [ + { "type": "DetectChar", "attribute": "DataType", "context": "String_Key", "char": "\"" }, + { "type": "DetectChar", "attribute": "Function", "context": "Value", "char": ":" }, + { "type": "DetectChar", "attribute": "Function", "context": "#pop", "char": "}" }, + { "type": "DetectSpaces", "attribute": "Normal", "context": "#stay" } + ] + }, + "String_Key": { + "attribute": "DataType", + "line-end-context": "#stay", + "rules": [ + { "type": "DetectChar", "attribute": "DataType", "context": "#pop", "char": "\"" }, + { "type": "DetectChar", "attribute": "Normal", "context": "String_Key_Char", "char": "\\", "look-ahead": true } + ] + }, + "String_Key_Char": { + "attribute": "Normal", + "line-end-context": "#stay", + "rules": [ + { "type": "JsonEscapeChar", "attribute": "Char", "context": "#pop" }, + { "type": "JsonEscapeError", "attribute": "Error", "context": "#pop" } + ] + }, + "Value": { + "attribute": "Error", + "line-end-context": "#stay", + "rules": [ + { "type": "DetectChar", "attribute": "Function", "context": "#pop", "char": "," }, + { "type": "DetectChar", "attribute": "Function", "context": "#pop#pop", "char": "}" }, + { "type": "DetectChar", "attribute": "String", "context": "String_Value", "char": "\"" }, + { "type": "DetectChar", "attribute": "Function", "context": "Pair", "char": "{" }, + { "type": "DetectChar", "attribute": "Others", "context": "Array", "char": "[" }, + { "type": "DetectSpaces", "attribute": "Normal", "context": "#stay" }, + { "type": "keyword", "attribute": "Keyword", "context": "#stay", "String": "Constants" }, + { "type": "Float", "attribute": "Float", "context": "#stay" }, + { "type": "Decimal", "attribute": "DecVal", "context": "#stay" } + ] + }, + "String_Value": { + "attribute": "String", + "line-end-context": "#stay", + "rules": [ + { "type": "DetectChar", "attribute": "String", "context": "#pop", "char": "\"" }, + { "type": "DetectChar", "attribute": "Normal", "context": "String_Key_Value", "char": "\\", "look-ahead": true } + ] + }, + "String_Key_Value": { + "attribute": "Normal", + "line-end-context": "#stay", + "rules": [ + { "type": "JsonEscapeChar", "attribute": "Char", "context": "#pop" }, + { "type": "JsonEscapeError", "attribute": "Error", "context": "#pop" } + ] + }, + "Array": { + "attribute": "Error", + "line-end-context": "#stay", + "rules": [ + { "type": "DetectChar", "attribute": "Others", "context": "#stay", "char": "," }, + { "type": "DetectChar", "attribute": "Others", "context": "#pop", "char": "]" }, + { "type": "DetectChar", "attribute": "String", "context": "String_Value", "char": "\"" }, + { "type": "DetectChar", "attribute": "Function", "context": "Pair", "char": "{" }, + { "type": "DetectChar", "attribute": "Others", "context": "Array", "char": "[" }, + { "type": "DetectSpaces", "attribute": "Normal", "context": "#stay" }, + { "type": "keyword", "attribute": "Keyword", "context": "#stay", "String": "Constants" }, + { "type": "Float", "attribute": "Float", "context": "#stay" }, + { "type": "Decimal", "attribute": "DecVal", "context": "#stay" } + ] + } + } +} diff --git a/highlight/resources/syntax/kotlin.json b/highlight/resources/syntax/kotlin.json new file mode 100644 index 0000000..244f61a --- /dev/null +++ b/highlight/resources/syntax/kotlin.json @@ -0,0 +1,200 @@ +{ + "metadata": { + "copyright": [ + "SPDX-FileCopyrightText: 2026 The Goldfish Scheme Authors", + "SPDX-FileCopyrightText: Kotlin syntax derived from kotlin.xml by Sergey Mashkov (KDE syntax-highlighting)" + ], + "license": "SPDX-License-Identifier: LGPL-2.0-or-later", + "name": "Kotlin" + }, + "name": "Kotlin", + "extensions": [ + "*.kt", + "*.kts" + ], + "initial-context": "Normal", + "lists": { + "keywords": [ + "package", "import", "sealed", "data", "class", "enum", "interface", + "companion", "object", "private", "public", "protected", "internal", + "open", "final", "fun", "var", "val", "constructor", "inline", + "reified", "crossinline", "tailrec", "in", "out", "is", "as", "by", + "where", "vararg", "get", "set", "return", "throw", "typealias", + "typeof", "override", "abstract", "infix", "operator", "annotation", + "const", "lateinit", "inner", "external", "noinline", "suspend", + "value", "lateinit", "init" + ], + "controlFlowKeyword": [ + "if", "else", "when", "for", "while", "do", "try", "catch", + "finally", "continue", "break", "yield" + ], + "predeclared": [ + "this", "super", "null", "true", "false" + ], + "types": [ + "Unit", "Nothing", "String", "Char", "Int", "Long", "Byte", + "Short", "Float", "Double", "Boolean", "dynamic", "Any", "List", + "Set", "Map", "Array", "Sequence", "Iterable", "Collection" + ] + }, + "item-datas": { + "Normal Text": "Normal", + "Keyword": "Keyword", + "ControlFlowKeyword": "ControlFlow", + "Function": "Function", + "Variable": "Variable", + "Imports": "Import", + "Annotation": "Attribute", + "Data Type": "DataType", + "Decimal": "DecVal", + "Hex": "BaseN", + "Binary": "BaseN", + "Float": "Float", + "Char": "Char", + "String": "String", + "String Char": "SpecialChar", + "String Interpolation": "SpecialString", + "Comment": "Comment", + "Symbol": "Operator", + "Error": "Error" + }, + "contexts": { + "Normal": { + "attribute": "Normal Text", + "line-end-context": "#stay", + "rules": [ + { "type": "Detect2Chars", "attribute": "Comment", "context": "shebang", "char": "#", "char1": "!", "column": 0 }, + { "type": "DetectSpaces", "attribute": "Normal Text", "context": "#stay" }, + { "type": "DetectChar", "attribute": "Annotation", "context": "annotation", "char": "@" }, + { "type": "Detect2Chars", "attribute": "Comment", "context": "comment-line", "char": "/", "char1": "/" }, + { "type": "Detect2Chars", "attribute": "Comment", "context": "comment-block", "char": "/", "char1": "*" }, + { "type": "StringDetect", "attribute": "String", "context": "string-multiline", "String": "\"\"\"" }, + { "type": "DetectChar", "attribute": "String", "context": "string", "char": "\"" }, + { "type": "DetectChar", "attribute": "Char", "context": "char", "char": "'" }, + { "type": "Hex", "attribute": "Hex", "context": "#stay" }, + { "type": "Float", "attribute": "Float", "context": "#stay" }, + { "type": "Int", "attribute": "Decimal", "context": "#stay" }, + { "type": "keyword", "attribute": "Keyword", "context": "#stay", "String": "predeclared", "delimiters": " \t\r\n()[]{}\",';.:=+-*/%^#~<>&|!?" }, + { "type": "keyword", "attribute": "Keyword", "context": "#stay", "String": "keywords", "delimiters": " \t\r\n()[]{}\",';.:=+-*/%^#~<>&|!?" }, + { "type": "keyword", "attribute": "ControlFlowKeyword", "context": "#stay", "String": "controlFlowKeyword", "delimiters": " \t\r\n()[]{}\",';.:=+-*/%^#~<>&|!?" }, + { "type": "keyword", "attribute": "Data Type", "context": "#stay", "String": "types", "delimiters": " \t\r\n()[]{}\",';.:=+-*/%^#~<>&|!?" }, + { "type": "Detect2Chars", "attribute": "Symbol", "context": "member", "char": ".", "char1": "." }, + { "type": "DetectChar", "attribute": "Symbol", "context": "member", "char": "." }, + { "type": "Detect2Chars", "attribute": "Symbol", "context": "#stay", "char": ":", "char1": ":" }, + { "type": "Detect2Chars", "attribute": "Symbol", "context": "#stay", "char": "-", "char1": ">" }, + { "type": "Detect2Chars", "attribute": "Symbol", "context": "#stay", "char": "=", "char1": ">" }, + { "type": "Detect2Chars", "attribute": "Symbol", "context": "#stay", "char": "=", "char1": "=" }, + { "type": "Detect2Chars", "attribute": "Symbol", "context": "#stay", "char": "!", "char1": "=" }, + { "type": "Detect2Chars", "attribute": "Symbol", "context": "#stay", "char": "<", "char1": "=" }, + { "type": "Detect2Chars", "attribute": "Symbol", "context": "#stay", "char": ">", "char1": "=" }, + { "type": "Detect2Chars", "attribute": "Symbol", "context": "#stay", "char": "&", "char1": "&" }, + { "type": "Detect2Chars", "attribute": "Symbol", "context": "#stay", "char": "|", "char1": "|" }, + { "type": "Detect2Chars", "attribute": "Symbol", "context": "#stay", "char": "+", "char1": "+" }, + { "type": "Detect2Chars", "attribute": "Symbol", "context": "#stay", "char": "-", "char1": "-" }, + { "type": "AnyChar", "attribute": "Symbol", "context": "#stay", "String": "()[]&+,-/*<=;>!%?:~^" }, + { "type": "DetectIdentifier", "attribute": "Normal Text", "context": "#stay" } + ] + }, + "shebang": { + "attribute": "Comment", + "line-end-context": "#pop", + "rules": [ + { "type": "DetectIdentifier", "attribute": "Comment", "context": "#stay" }, + { "type": "AnyChar", "attribute": "Comment", "context": "#stay", "String": "/._-:" } + ] + }, + "annotation": { + "attribute": "Annotation", + "line-end-context": "#pop", + "rules": [ + { "type": "DetectIdentifier", "attribute": "Annotation", "context": "#stay" }, + { "type": "DetectChar", "attribute": "Symbol", "context": "#stay", "char": ":" }, + { "type": "DetectChar", "attribute": "Annotation", "context": "#stay", "char": "." } + ] + }, + "comment-line": { + "attribute": "Comment", + "line-end-context": "#pop", + "rules": [ + { "type": "DetectSpaces", "attribute": "Comment", "context": "#stay" }, + { "type": "DetectIdentifier", "attribute": "Comment", "context": "#stay" }, + { "type": "AnyChar", "attribute": "Comment", "context": "#stay", "String": "+-*/%=<>!&|^~?:;.,()[]{}#@$'\"\\`" } + ] + }, + "comment-block": { + "attribute": "Comment", + "line-end-context": "#stay", + "rules": [ + { "type": "Detect2Chars", "attribute": "Comment", "context": "#pop", "char": "*", "char1": "/" }, + { "type": "DetectSpaces", "attribute": "Comment", "context": "#stay" }, + { "type": "DetectIdentifier", "attribute": "Comment", "context": "#stay" }, + { "type": "AnyChar", "attribute": "Comment", "context": "#stay", "String": "+-*/%=<>!&|^~?:;.,()[]{}#@$'\"\\`" } + ] + }, + "string": { + "attribute": "String", + "line-end-context": "#pop", + "rules": [ + { "type": "DetectChar", "attribute": "String", "context": "#pop", "char": "\"" }, + { "type": "Detect2Chars", "attribute": "String Interpolation", "context": "interp-expr", "char": "$", "char1": "{" }, + { "type": "DetectChar", "attribute": "String Interpolation", "context": "interp-var", "char": "$" }, + { "type": "Detect2Chars", "attribute": "String Char", "context": "#stay", "char": "\\", "char1": "\\" }, + { "type": "Detect2Chars", "attribute": "String Char", "context": "#stay", "char": "\\", "char1": "\"" }, + { "type": "Detect2Chars", "attribute": "String Char", "context": "#stay", "char": "\\", "char1": "'" }, + { "type": "Detect2Chars", "attribute": "String Char", "context": "#stay", "char": "\\", "char1": "n" }, + { "type": "Detect2Chars", "attribute": "String Char", "context": "#stay", "char": "\\", "char1": "t" }, + { "type": "Detect2Chars", "attribute": "String Char", "context": "#stay", "char": "\\", "char1": "r" }, + { "type": "Detect2Chars", "attribute": "String Char", "context": "#stay", "char": "\\", "char1": "0" }, + { "type": "Detect2Chars", "attribute": "String Char", "context": "#stay", "char": "\\", "char1": "$" }, + { "type": "Detect2Chars", "attribute": "String Char", "context": "#stay", "char": "\\", "char1": "u" } + ] + }, + "string-multiline": { + "attribute": "String", + "line-end-context": "#stay", + "rules": [ + { "type": "StringDetect", "attribute": "String", "context": "#pop", "String": "\"\"\"" }, + { "type": "Detect2Chars", "attribute": "String Interpolation", "context": "interp-expr", "char": "$", "char1": "{" }, + { "type": "DetectChar", "attribute": "String Interpolation", "context": "interp-var", "char": "$" } + ] + }, + "interp-expr": { + "attribute": "String Interpolation", + "line-end-context": "#stay", + "rules": [ + { "type": "DetectChar", "attribute": "String Interpolation", "context": "#pop", "char": "}" }, + { "type": "DetectIdentifier", "attribute": "String Interpolation", "context": "#stay" }, + { "type": "AnyChar", "attribute": "String Interpolation", "context": "#stay", "String": "0123456789.[]!:.,+-*/%<>=&|^~" } + ] + }, + "interp-var": { + "attribute": "String Interpolation", + "line-end-context": "#pop", + "rules": [ + { "type": "DetectIdentifier", "attribute": "String Interpolation", "context": "#pop" } + ] + }, + "char": { + "attribute": "Char", + "line-end-context": "#pop", + "rules": [ + { "type": "DetectChar", "attribute": "Char", "context": "#pop", "char": "'" }, + { "type": "Detect2Chars", "attribute": "String Char", "context": "#stay", "char": "\\", "char1": "\\" }, + { "type": "Detect2Chars", "attribute": "String Char", "context": "#stay", "char": "\\", "char1": "'" }, + { "type": "Detect2Chars", "attribute": "String Char", "context": "#stay", "char": "\\", "char1": "n" }, + { "type": "Detect2Chars", "attribute": "String Char", "context": "#stay", "char": "\\", "char1": "t" }, + { "type": "Detect2Chars", "attribute": "String Char", "context": "#stay", "char": "\\", "char1": "r" }, + { "type": "Detect2Chars", "attribute": "String Char", "context": "#stay", "char": "\\", "char1": "0" }, + { "type": "Detect2Chars", "attribute": "String Char", "context": "#stay", "char": "\\", "char1": "u" } + ] + }, + "member": { + "attribute": "Normal Text", + "line-end-context": "#pop", + "rules": [ + { "type": "DetectChar", "attribute": "Symbol", "context": "#stay", "char": "." }, + { "type": "DetectIdentifier", "attribute": "Function", "context": "#pop" } + ] + } + } +} diff --git a/highlight/resources/syntax/latex.json b/highlight/resources/syntax/latex.json new file mode 100644 index 0000000..3866ba3 --- /dev/null +++ b/highlight/resources/syntax/latex.json @@ -0,0 +1,410 @@ +{ + "metadata": { + "copyright": [ + "SPDX-FileCopyrightText: 2026 The Goldfish Scheme Authors", + "SPDX-FileCopyrightText: LaTeX syntax derived from latex.xml by Jeroen Wijnhout, Holger Danielsson, Michel Ludwig and Thomas Braun (KDE syntax-highlighting)" + ], + "license": "SPDX-License-Identifier: LGPL-2.0-or-later", + "name": "LaTeX" + }, + "name": "LaTeX", + "extensions": [ + "*.tex", + "*.ltx", + "*.dtx", + "*.sty", + "*.cls", + "*.bbx", + "*.cbx", + "*.lbx", + "*.tikz", + "*.pgf" + ], + "initial-context": "Normal Text", + "lists": { + "sectioning": [ + "\\part", "\\chapter", "\\section", "\\subsection", + "\\subsubsection", "\\paragraph", "\\subparagraph" + ], + "labels": [ + "\\Autocite", "\\autocite", "\\autoref", "\\Cite", "\\cite", + "\\Citeauthor", "\\citeauthor", "\\citep", "\\citet", + "\\citetitle", "\\citeurl", "\\citeyear", "\\cref", "\\Cref", + "\\eqref", "\\Footcite", "\\footcite", "\\footfullcite", + "\\fullcite", "\\label", "\\nocite", "\\pagecite", "\\pageref", + "\\Parencite", "\\parencite", "\\ref", "\\subref", "\\supercite", + "\\Textcite", "\\textcite", "\\vpageref", "\\vref" + ], + "fancylabels": [ + "\\documentclass", "\\includegraphics", "\\include", + "\\usepackage", "\\bibliography", "\\bibliographystyle" + ], + "mathcmd": [ + "\\text", "\\textit", "\\textbf", "\\textmd", "\\textsl", + "\\textsc", "\\textrm", "\\textsf", "\\texttt", "\\textup", + "\\textnormal", "\\mbox", "\\emph" + ] + }, + "item-datas": { + "Normal Text": "Normal", + "Option Text": "Normal", + "Macro": "Function", + "Comment": "Comment", + "Error": "Error", + "Math": "SpecialString", + "Structure": "Keyword", + "Builtin Macro": "BuiltIn", + "Macro Mathmode": "SpecialChar", + "Environment": "Extension", + "Reference": "Extension", + "Verbatim": "VerbatimString", + "Region Marker": "RegionMarker", + "Sectioning Text": "Normal", + "Sectioning Macro": "Function", + "Sectioning Math": "SpecialString" + }, + "contexts": { + "Normal Text": { + "attribute": "Normal Text", + "line-end-context": "#stay", + "rules": [ + { "type": "DetectSpaces", "attribute": "Normal Text", "context": "#stay" }, + { "type": "DetectIdentifier", "attribute": "Normal Text", "context": "#stay" }, + { "type": "DetectChar", "attribute": "Normal Text", "context": "LatexMacro", "char": "\\", "look-ahead": true }, + { "type": "DetectChar", "attribute": "Math", "context": "MathMode", "char": "$" }, + { "type": "DetectChar", "attribute": "Comment", "context": "Comment", "char": "%" } + ] + }, + "LatexMacro": { + "attribute": "Normal Text", + "line-end-context": "#pop", + "rules": [ + { "type": "StringDetect", "attribute": "Structure", "context": "#pop!FindBeginEnvironment", "String": "\\begin" }, + { "type": "StringDetect", "attribute": "Structure", "context": "#pop!FindEndEnvironment", "String": "\\end" }, + { "type": "keyword", "attribute": "Structure", "context": "#pop!Label", "String": "labels", "delimiters": " \t\r\n{}[],;" }, + { "type": "keyword", "attribute": "Builtin Macro", "context": "#pop!FancyLabel", "String": "fancylabels", "delimiters": " \t\r\n{}[],;" }, + { "type": "keyword", "attribute": "Structure", "context": "#pop!Sectioning", "String": "sectioning", "delimiters": " \t\r\n{}[],;*" }, + { "type": "keyword", "attribute": "Macro Mathmode", "context": "#pop!MathModeText", "String": "mathcmd", "delimiters": " \t\r\n{}[],;" }, + { "type": "StringDetect", "attribute": "Comment", "context": "#pop!MultilineComment", "String": "\\iffalse" }, + { "type": "DetectChar", "attribute": "Normal Text", "context": "#pop!MathModeLatex", "char": "(" }, + { "type": "DetectChar", "attribute": "Normal Text", "context": "#pop!MathModeLatexEquation", "char": "[" }, + { "type": "DetectChar", "attribute": "Macro", "context": "#pop!ContrSeq", "char": "\\" } + ] + }, + "ContrSeq": { + "attribute": "Macro", + "line-end-context": "#pop", + "rules": [ + { "type": "DetectIdentifier", "attribute": "Macro", "context": "#pop" }, + { "type": "DetectChar", "attribute": "Macro", "context": "#stay", "char": "*" }, + { "type": "AnyChar", "attribute": "Macro", "context": "#pop", "String": "()[]!.,;:?#$&%_^~ " } + ] + }, + "Comment": { + "attribute": "Comment", + "line-end-context": "#pop", + "rules": [ + { "type": "DetectSpaces", "attribute": "Comment", "context": "#stay" }, + { "type": "DetectIdentifier", "attribute": "Comment", "context": "#stay" } + ] + }, + "MultilineComment": { + "attribute": "Comment", + "line-end-context": "#stay", + "rules": [ + { "type": "DetectChar", "attribute": "Comment", "context": "BackslashMLComment", "char": "\\", "look-ahead": true } + ] + }, + "BackslashMLComment": { + "attribute": "Comment", + "line-end-context": "#pop", + "rules": [ + { "type": "StringDetect", "attribute": "Comment", "context": "#pop#pop", "String": "\\fi" }, + { "type": "StringDetect", "attribute": "Comment", "context": "#pop#pop", "String": "\\else" }, + { "type": "DetectChar", "attribute": "Comment", "context": "#pop", "char": "\\" } + ] + }, + "FindBeginEnvironment": { + "attribute": "Normal Text", + "line-end-context": "#stay", + "rules": [ + { "type": "DetectSpaces", "attribute": "Normal Text", "context": "#stay" }, + { "type": "DetectChar", "attribute": "Normal Text", "context": "BeginEnvironment", "char": "{" } + ] + }, + "BeginEnvironment": { + "attribute": "Environment", + "line-end-context": "#stay", + "rules": [ + { "type": "StringDetect", "attribute": "Environment", "context": "#pop!VerbatimEnv", "String": "verbatim" }, + { "type": "StringDetect", "attribute": "Environment", "context": "#pop!VerbatimEnv", "String": "Verbatim" }, + { "type": "StringDetect", "attribute": "Environment", "context": "#pop!CommentEnv", "String": "comment" }, + { "type": "StringDetect", "attribute": "Environment", "context": "#pop!MathEnv", "String": "equation" }, + { "type": "StringDetect", "attribute": "Environment", "context": "#pop!MathEnv", "String": "align" }, + { "type": "StringDetect", "attribute": "Environment", "context": "#pop!MathEnv", "String": "gather" }, + { "type": "StringDetect", "attribute": "Environment", "context": "#pop!MathEnv", "String": "displaymath" }, + { "type": "StringDetect", "attribute": "Environment", "context": "#pop!MathEnv", "String": "math" }, + { "type": "DetectIdentifier", "attribute": "Environment", "context": "#pop!LatexEnv" } + ] + }, + "LatexEnv": { + "attribute": "Environment", + "line-end-context": "#stay", + "rules": [ + { "type": "DetectChar", "attribute": "Environment", "context": "#pop#pop#pop", "char": "}" }, + { "type": "DetectChar", "attribute": "Environment", "context": "#stay", "char": "*" } + ] + }, + "FindEndEnvironment": { + "attribute": "Normal Text", + "line-end-context": "#stay", + "rules": [ + { "type": "DetectSpaces", "attribute": "Normal Text", "context": "#stay" }, + { "type": "DetectChar", "attribute": "Normal Text", "context": "EndEnvironment", "char": "{" } + ] + }, + "EndEnvironment": { + "attribute": "Environment", + "line-end-context": "#stay", + "rules": [ + { "type": "DetectIdentifier", "attribute": "Environment", "context": "LatexEnvEnd" }, + { "type": "DetectChar", "attribute": "Environment", "context": "LatexEnvEnd", "char": "*" } + ] + }, + "LatexEnvEnd": { + "attribute": "Environment", + "line-end-context": "#stay", + "rules": [ + { "type": "DetectChar", "attribute": "Normal Text", "context": "#pop#pop#pop", "char": "}" } + ] + }, + "VerbatimEnv": { + "attribute": "Environment", + "line-end-context": "#stay", + "rules": [ + { "type": "DetectChar", "attribute": "Environment", "context": "#stay", "char": "*" }, + { "type": "DetectChar", "attribute": "Normal Text", "context": "#pop#pop#pop!Verbatim", "char": "}" } + ] + }, + "Verbatim": { + "attribute": "Verbatim", + "line-end-context": "#stay", + "rules": [ + { "type": "StringDetect", "attribute": "Structure", "context": "VerbFindEnd", "String": "\\end" } + ] + }, + "VerbFindEnd": { + "attribute": "Normal Text", + "line-end-context": "#pop", + "rules": [ + { "type": "DetectSpaces", "attribute": "Normal Text", "context": "#stay" }, + { "type": "DetectChar", "attribute": "Normal Text", "context": "#stay", "char": "{" }, + { "type": "DetectChar", "attribute": "Normal Text", "context": "#pop#pop#pop#pop#pop#pop", "char": "}" } + ] + }, + "CommentEnv": { + "attribute": "Environment", + "line-end-context": "#stay", + "rules": [ + { "type": "DetectChar", "attribute": "Environment", "context": "#stay", "char": "*" }, + { "type": "DetectChar", "attribute": "Normal Text", "context": "#pop#pop#pop!BlockComment", "char": "}" } + ] + }, + "BlockComment": { + "attribute": "Comment", + "line-end-context": "#stay", + "rules": [ + { "type": "StringDetect", "attribute": "Structure", "context": "CommFindEnd", "String": "\\end" } + ] + }, + "CommFindEnd": { + "attribute": "Normal Text", + "line-end-context": "#pop", + "rules": [ + { "type": "DetectSpaces", "attribute": "Normal Text", "context": "#stay" }, + { "type": "DetectChar", "attribute": "Normal Text", "context": "#stay", "char": "{" }, + { "type": "DetectChar", "attribute": "Normal Text", "context": "#pop#pop#pop#pop#pop#pop", "char": "}" } + ] + }, + "MathEnv": { + "attribute": "Environment", + "line-end-context": "#stay", + "rules": [ + { "type": "DetectChar", "attribute": "Environment", "context": "#stay", "char": "*" }, + { "type": "DetectChar", "attribute": "Normal Text", "context": "#pop#pop#pop!MathModeEnv", "char": "}" } + ] + }, + "MathModeEnv": { + "attribute": "Math", + "line-end-context": "#stay", + "rules": [ + { "type": "StringDetect", "attribute": "Structure", "context": "MathEnvFindEnd", "String": "\\end" } + ] + }, + "MathEnvFindEnd": { + "attribute": "Normal Text", + "line-end-context": "#pop", + "rules": [ + { "type": "DetectSpaces", "attribute": "Normal Text", "context": "#stay" }, + { "type": "DetectChar", "attribute": "Normal Text", "context": "#stay", "char": "{" }, + { "type": "DetectChar", "attribute": "Normal Text", "context": "#pop#pop#pop#pop#pop#pop", "char": "}" } + ] + }, + "MathMode": { + "attribute": "Math", + "line-end-context": "#stay", + "rules": [ + { "type": "Detect2Chars", "attribute": "Math", "context": "#pop#pop!MathModeDisplay", "char": "$", "char1": "$" }, + { "type": "DetectChar", "attribute": "Math", "context": "#pop", "char": "$" }, + { "type": "DetectChar", "attribute": "Comment", "context": "Comment", "char": "%" }, + { "type": "DetectChar", "attribute": "Math", "context": "MathBackslash", "char": "\\", "look-ahead": true }, + { "type": "DetectIdentifier", "attribute": "Math", "context": "#stay" } + ] + }, + "MathModeDisplay": { + "attribute": "Math", + "line-end-context": "#stay", + "rules": [ + { "type": "Detect2Chars", "attribute": "Math", "context": "#pop#pop", "char": "$", "char1": "$" }, + { "type": "DetectChar", "attribute": "Comment", "context": "Comment", "char": "%" }, + { "type": "DetectChar", "attribute": "Math", "context": "MathBackslash", "char": "\\", "look-ahead": true }, + { "type": "DetectIdentifier", "attribute": "Math", "context": "#stay" } + ] + }, + "MathModeLatex": { + "attribute": "Math", + "line-end-context": "#stay", + "rules": [ + { "type": "StringDetect", "attribute": "Math", "context": "#pop", "String": "\\)" }, + { "type": "DetectChar", "attribute": "Comment", "context": "Comment", "char": "%" }, + { "type": "DetectChar", "attribute": "Math", "context": "MathBackslash", "char": "\\", "look-ahead": true }, + { "type": "DetectIdentifier", "attribute": "Math", "context": "#stay" } + ] + }, + "MathModeLatexEquation": { + "attribute": "Math", + "line-end-context": "#stay", + "rules": [ + { "type": "StringDetect", "attribute": "Math", "context": "#pop", "String": "\\]" }, + { "type": "DetectChar", "attribute": "Comment", "context": "Comment", "char": "%" }, + { "type": "DetectChar", "attribute": "Math", "context": "MathBackslash", "char": "\\", "look-ahead": true }, + { "type": "DetectIdentifier", "attribute": "Math", "context": "#stay" } + ] + }, + "MathBackslash": { + "attribute": "Math", + "line-end-context": "#pop", + "rules": [ + { "type": "keyword", "attribute": "Macro Mathmode", "context": "#pop!MathModeText", "String": "mathcmd", "delimiters": " \t\r\n{}[],;" }, + { "type": "DetectChar", "attribute": "Macro Mathmode", "context": "#pop!MathContrSeq", "char": "\\" } + ] + }, + "MathContrSeq": { + "attribute": "Macro Mathmode", + "line-end-context": "#pop", + "rules": [ + { "type": "DetectIdentifier", "attribute": "Macro Mathmode", "context": "#pop" }, + { "type": "AnyChar", "attribute": "Macro Mathmode", "context": "#pop", "String": "()[]!.,;:?#$&%_^~ " } + ] + }, + "MathModeText": { + "attribute": "Normal Text", + "line-end-context": "#stay", + "rules": [ + { "type": "DetectSpaces", "attribute": "Normal Text", "context": "#stay" }, + { "type": "DetectChar", "attribute": "Normal Text", "context": "MathModeTextInside", "char": "{" } + ] + }, + "MathModeTextInside": { + "attribute": "Normal Text", + "line-end-context": "#stay", + "rules": [ + { "type": "DetectChar", "attribute": "Normal Text", "context": "MathModeTextInside", "char": "{" }, + { "type": "DetectChar", "attribute": "Normal Text", "context": "#pop#pop", "char": "}" }, + { "type": "DetectChar", "attribute": "Normal Text", "context": "#pop!ContrSeq", "char": "\\" }, + { "type": "DetectIdentifier", "attribute": "Normal Text", "context": "#stay" } + ] + }, + "Sectioning": { + "attribute": "Normal Text", + "line-end-context": "#stay", + "rules": [ + { "type": "DetectChar", "attribute": "Sectioning Macro", "context": "#stay", "char": "*" }, + { "type": "DetectSpaces", "attribute": "Normal Text", "context": "#stay" }, + { "type": "DetectChar", "attribute": "Normal Text", "context": "#pop!SectioningInside", "char": "{" } + ] + }, + "SectioningInside": { + "attribute": "Sectioning Text", + "line-end-context": "#stay", + "rules": [ + { "type": "DetectChar", "attribute": "Normal Text", "context": "SectioningInside", "char": "{" }, + { "type": "DetectChar", "attribute": "Normal Text", "context": "#pop", "char": "}" }, + { "type": "DetectChar", "attribute": "Sectioning Math", "context": "SectioningMathMode", "char": "$" }, + { "type": "DetectChar", "attribute": "Sectioning Macro", "context": "#pop!SectioningContrSeq", "char": "\\" }, + { "type": "DetectChar", "attribute": "Comment", "context": "Comment", "char": "%" }, + { "type": "DetectIdentifier", "attribute": "Sectioning Text", "context": "#stay" } + ] + }, + "SectioningContrSeq": { + "attribute": "Sectioning Macro", + "line-end-context": "#pop", + "rules": [ + { "type": "DetectIdentifier", "attribute": "Sectioning Macro", "context": "#pop" } + ] + }, + "SectioningMathMode": { + "attribute": "Sectioning Math", + "line-end-context": "#stay", + "rules": [ + { "type": "DetectChar", "attribute": "Sectioning Math", "context": "#pop", "char": "$" }, + { "type": "DetectChar", "attribute": "Comment", "context": "Comment", "char": "%" }, + { "type": "DetectIdentifier", "attribute": "Sectioning Math", "context": "#stay" } + ] + }, + "Label": { + "attribute": "Normal Text", + "line-end-context": "#stay", + "rules": [ + { "type": "DetectSpaces", "attribute": "Normal Text", "context": "#stay" }, + { "type": "DetectChar", "attribute": "Normal Text", "context": "LabelParameter", "char": "{" } + ] + }, + "LabelParameter": { + "attribute": "Reference", + "line-end-context": "#stay", + "rules": [ + { "type": "DetectSpaces", "attribute": "Reference", "context": "#stay" }, + { "type": "DetectIdentifier", "attribute": "Reference", "context": "#stay" }, + { "type": "DetectChar", "attribute": "Normal Text", "context": "#pop#pop", "char": "}" } + ] + }, + "FancyLabel": { + "attribute": "Normal Text", + "line-end-context": "#pop", + "rules": [ + { "type": "DetectSpaces", "attribute": "Normal Text", "context": "#stay" }, + { "type": "DetectChar", "attribute": "Normal Text", "context": "FancyLabelParameter", "char": "{" }, + { "type": "DetectChar", "attribute": "Normal Text", "context": "FancyLabelOption", "char": "[" } + ] + }, + "FancyLabelParameter": { + "attribute": "Environment", + "line-end-context": "#stay", + "rules": [ + { "type": "DetectSpaces", "attribute": "Environment", "context": "#stay" }, + { "type": "DetectIdentifier", "attribute": "Environment", "context": "#stay" }, + { "type": "DetectChar", "attribute": "Normal Text", "context": "#pop#pop", "char": "}" }, + { "type": "DetectChar", "attribute": "Normal Text", "context": "FancyLabelParameter", "char": "{" } + ] + }, + "FancyLabelOption": { + "attribute": "Option Text", + "line-end-context": "#stay", + "rules": [ + { "type": "DetectChar", "attribute": "Normal Text", "context": "#pop", "char": "]" }, + { "type": "DetectIdentifier", "attribute": "Option Text", "context": "#stay" } + ] + } + } +} diff --git a/highlight/resources/syntax/lua.json b/highlight/resources/syntax/lua.json new file mode 100644 index 0000000..ffe9bc5 --- /dev/null +++ b/highlight/resources/syntax/lua.json @@ -0,0 +1,217 @@ +{ + "metadata": { + "copyright": [ + "SPDX-FileCopyrightText: 2026 The Goldfish Scheme Authors", + "SPDX-FileCopyrightText: Lua syntax derived from lua.xml by Bruno Massa, Jonathan Poelen and others (KDE syntax-highlighting)" + ], + "license": "SPDX-License-Identifier: MIT", + "name": "Lua" + }, + "name": "Lua", + "extensions": [ + "*.lua", + "*.rockspec" + ], + "initial-context": "Normal", + "lists": { + "controlflow": [ + "break", "do", "else", "elseif", "end", "for", "goto", "if", + "repeat", "return", "then", "until", "while" + ], + "keywords": [ + "and", "function", "in", "local", "not", "or", "global" + ], + "constants": [ + "nil", "false", "true" + ], + "builtins": [ + "assert", "collectgarbage", "dofile", "error", "getmetatable", "ipairs", + "load", "loadfile", "next", "pairs", "pcall", "print", "rawequal", + "rawget", "rawlen", "rawset", "select", "setmetatable", "tonumber", + "tostring", "type", "warn", "xpcall", "require", + "byte", "char", "dump", "find", "format", "gmatch", "gsub", "len", + "lower", "match", "pack", "packsize", "rep", "reverse", "sub", + "unpack", "upper", "concat", "insert", "move", "remove", "sort", + "create", "resume", "running", "status", "wrap", "yield", + "close", "flush", "input", "lines", "open", "output", "popen", + "read", "seek", "setvbuf", "write", + "abs", "acos", "asin", "atan", "ceil", "cos", "deg", "exp", "floor", + "fmod", "huge", "log", "max", "min", "modf", "rad", "random", + "randomseed", "sin", "sqrt", "tan", "tointeger", + "clock", "date", "difftime", "execute", "exit", "getenv", "rename", + "time", "tmpname", "codes", "codepoint", "offset", "seeall" + ], + "metamethods": [ + "__add", "__sub", "__mul", "__div", "__mod", "__pow", "__unm", + "__idiv", "__band", "__bor", "__bxor", "__bnot", "__shl", "__shr", + "__concat", "__len", "__eq", "__lt", "__le", "__index", "__newindex", + "__call", "__tostring", "__name", "__close", "__pairs", "__metatable", + "__gc", "__mode" + ], + "basevars": [ + "_G", "_VERSION", "_ENV", "_PROMPT", "_PROMPT2", "LUA_PATH", + "LUA_CPATH", "LUA_INIT", "coroutine", "package", "string", "utf8", + "table", "math", "io", "os", "debug", "self" + ] + }, + "item-datas": { + "Normal": "Normal", + "Keyword": "Keyword", + "ControlFlow": "ControlFlow", + "Function": "Function", + "BuiltIn": "BuiltIn", + "Constant": "Constant", + "Variable": "Variable", + "Comment": "Comment", + "String": "String", + "VerbatimString": "VerbatimString", + "SpecialChar": "SpecialChar", + "DecVal": "DecVal", + "BaseN": "BaseN", + "Float": "Float", + "Operator": "Operator", + "Error": "Error" + }, + "contexts": { + "Normal": { + "attribute": "Normal", + "line-end-context": "#stay", + "rules": [ + { "type": "DetectSpaces", "attribute": "Normal", "context": "#stay" }, + { "type": "Detect2Chars", "attribute": "Comment", "context": "shebang", "char": "#", "char1": "!", "column": 0 }, + { "type": "StringDetect", "attribute": "Comment", "context": "comment-block-eq2", "String": "--[==[" }, + { "type": "StringDetect", "attribute": "Comment", "context": "comment-block-eq1", "String": "--[=[" }, + { "type": "StringDetect", "attribute": "Comment", "context": "comment-block", "String": "--[[" }, + { "type": "Detect2Chars", "attribute": "Comment", "context": "comment-line", "char": "-", "char1": "-" }, + { "type": "StringDetect", "attribute": "VerbatimString", "context": "raw-string-eq2", "String": "[==[" }, + { "type": "StringDetect", "attribute": "VerbatimString", "context": "raw-string-eq1", "String": "[=[" }, + { "type": "StringDetect", "attribute": "VerbatimString", "context": "raw-string", "String": "[[" }, + { "type": "DetectChar", "attribute": "String", "context": "string-double", "char": "\"" }, + { "type": "DetectChar", "attribute": "String", "context": "string-single", "char": "'" }, + { "type": "Hex", "attribute": "BaseN", "context": "#stay" }, + { "type": "Float", "attribute": "Float", "context": "#stay" }, + { "type": "Int", "attribute": "DecVal", "context": "#stay" }, + { "type": "keyword", "attribute": "ControlFlow", "context": "#stay", "String": "controlflow", "delimiters": " \t\r\n()[]{}\",'`;\\.:=+-*/%^#~<>&|" }, + { "type": "keyword", "attribute": "Keyword", "context": "#stay", "String": "keywords", "delimiters": " \t\r\n()[]{}\",'`;\\.:=+-*/%^#~<>&|" }, + { "type": "keyword", "attribute": "Constant", "context": "#stay", "String": "constants", "delimiters": " \t\r\n()[]{}\",'`;\\.:=+-*/%^#~<>&|" }, + { "type": "keyword", "attribute": "BuiltIn", "context": "#stay", "String": "metamethods", "delimiters": " \t\r\n()[]{}\",'`;\\.:=+-*/%^#~<>&|" }, + { "type": "keyword", "attribute": "Function", "context": "#stay", "String": "builtins", "delimiters": " \t\r\n()[]{}\",'`;\\.:=+-*/%^#~<>&|" }, + { "type": "keyword", "attribute": "Variable", "context": "#stay", "String": "basevars", "delimiters": " \t\r\n()[]{}\",'`;\\.:=+-*/%^#~<>&|" }, + { "type": "StringDetect", "attribute": "Operator", "context": "#stay", "String": "..." }, + { "type": "Detect2Chars", "attribute": "Operator", "context": "#stay", "char": ".", "char1": "." }, + { "type": "Detect2Chars", "attribute": "Operator", "context": "#stay", "char": "=", "char1": "=" }, + { "type": "Detect2Chars", "attribute": "Operator", "context": "#stay", "char": "~", "char1": "=" }, + { "type": "Detect2Chars", "attribute": "Operator", "context": "#stay", "char": "<", "char1": "=" }, + { "type": "Detect2Chars", "attribute": "Operator", "context": "#stay", "char": ">", "char1": "=" }, + { "type": "Detect2Chars", "attribute": "Operator", "context": "#stay", "char": "/", "char1": "/" }, + { "type": "Detect2Chars", "attribute": "Operator", "context": "#stay", "char": "<", "char1": "<" }, + { "type": "Detect2Chars", "attribute": "Operator", "context": "#stay", "char": ">", "char1": ">" }, + { "type": "Detect2Chars", "attribute": "Operator", "context": "#stay", "char": ":", "char1": ":" }, + { "type": "AnyChar", "attribute": "Operator", "context": "#stay", "String": "+-*/%^#&|~<>=:;,()[]{}" }, + { "type": "DetectIdentifier", "attribute": "Normal", "context": "#stay" } + ] + }, + "shebang": { + "attribute": "Comment", + "line-end-context": "#pop", + "rules": [ + { "type": "DetectSpaces", "attribute": "Comment", "context": "#stay" }, + { "type": "DetectIdentifier", "attribute": "Comment", "context": "#stay" } + ] + }, + "comment-line": { + "attribute": "Comment", + "line-end-context": "#pop", + "rules": [ + { "type": "DetectSpaces", "attribute": "Comment", "context": "#stay" }, + { "type": "DetectIdentifier", "attribute": "Comment", "context": "#stay" } + ] + }, + "comment-block": { + "attribute": "Comment", + "line-end-context": "#stay", + "rules": [ + { "type": "StringDetect", "attribute": "Comment", "context": "#pop", "String": "]]" }, + { "type": "DetectSpaces", "attribute": "Comment", "context": "#stay" }, + { "type": "DetectIdentifier", "attribute": "Comment", "context": "#stay" } + ] + }, + "comment-block-eq1": { + "attribute": "Comment", + "line-end-context": "#stay", + "rules": [ + { "type": "StringDetect", "attribute": "Comment", "context": "#pop", "String": "]=]" }, + { "type": "DetectSpaces", "attribute": "Comment", "context": "#stay" }, + { "type": "DetectIdentifier", "attribute": "Comment", "context": "#stay" } + ] + }, + "comment-block-eq2": { + "attribute": "Comment", + "line-end-context": "#stay", + "rules": [ + { "type": "StringDetect", "attribute": "Comment", "context": "#pop", "String": "]==]" }, + { "type": "DetectSpaces", "attribute": "Comment", "context": "#stay" }, + { "type": "DetectIdentifier", "attribute": "Comment", "context": "#stay" } + ] + }, + "raw-string": { + "attribute": "VerbatimString", + "line-end-context": "#stay", + "rules": [ + { "type": "StringDetect", "attribute": "VerbatimString", "context": "#pop", "String": "]]" } + ] + }, + "raw-string-eq1": { + "attribute": "VerbatimString", + "line-end-context": "#stay", + "rules": [ + { "type": "StringDetect", "attribute": "VerbatimString", "context": "#pop", "String": "]=]" } + ] + }, + "raw-string-eq2": { + "attribute": "VerbatimString", + "line-end-context": "#stay", + "rules": [ + { "type": "StringDetect", "attribute": "VerbatimString", "context": "#pop", "String": "]==]" } + ] + }, + "string-double": { + "attribute": "String", + "line-end-context": "#pop", + "rules": [ + { "type": "DetectChar", "attribute": "String", "context": "#pop", "char": "\"" }, + { "type": "Detect2Chars", "attribute": "SpecialChar", "context": "#stay", "char": "\\", "char1": "\\" }, + { "type": "Detect2Chars", "attribute": "SpecialChar", "context": "#stay", "char": "\\", "char1": "\"" }, + { "type": "Detect2Chars", "attribute": "SpecialChar", "context": "#stay", "char": "\\", "char1": "'" }, + { "type": "Detect2Chars", "attribute": "SpecialChar", "context": "#stay", "char": "\\", "char1": "n" }, + { "type": "Detect2Chars", "attribute": "SpecialChar", "context": "#stay", "char": "\\", "char1": "t" }, + { "type": "Detect2Chars", "attribute": "SpecialChar", "context": "#stay", "char": "\\", "char1": "r" }, + { "type": "Detect2Chars", "attribute": "SpecialChar", "context": "#stay", "char": "\\", "char1": "a" }, + { "type": "Detect2Chars", "attribute": "SpecialChar", "context": "#stay", "char": "\\", "char1": "b" }, + { "type": "Detect2Chars", "attribute": "SpecialChar", "context": "#stay", "char": "\\", "char1": "f" }, + { "type": "Detect2Chars", "attribute": "SpecialChar", "context": "#stay", "char": "\\", "char1": "v" }, + { "type": "Detect2Chars", "attribute": "SpecialChar", "context": "#stay", "char": "\\", "char1": "0" }, + { "type": "Detect2Chars", "attribute": "SpecialChar", "context": "#stay", "char": "\\", "char1": "z" } + ] + }, + "string-single": { + "attribute": "String", + "line-end-context": "#pop", + "rules": [ + { "type": "DetectChar", "attribute": "String", "context": "#pop", "char": "'" }, + { "type": "Detect2Chars", "attribute": "SpecialChar", "context": "#stay", "char": "\\", "char1": "\\" }, + { "type": "Detect2Chars", "attribute": "SpecialChar", "context": "#stay", "char": "\\", "char1": "'" }, + { "type": "Detect2Chars", "attribute": "SpecialChar", "context": "#stay", "char": "\\", "char1": "\"" }, + { "type": "Detect2Chars", "attribute": "SpecialChar", "context": "#stay", "char": "\\", "char1": "n" }, + { "type": "Detect2Chars", "attribute": "SpecialChar", "context": "#stay", "char": "\\", "char1": "t" }, + { "type": "Detect2Chars", "attribute": "SpecialChar", "context": "#stay", "char": "\\", "char1": "r" }, + { "type": "Detect2Chars", "attribute": "SpecialChar", "context": "#stay", "char": "\\", "char1": "a" }, + { "type": "Detect2Chars", "attribute": "SpecialChar", "context": "#stay", "char": "\\", "char1": "b" }, + { "type": "Detect2Chars", "attribute": "SpecialChar", "context": "#stay", "char": "\\", "char1": "f" }, + { "type": "Detect2Chars", "attribute": "SpecialChar", "context": "#stay", "char": "\\", "char1": "v" }, + { "type": "Detect2Chars", "attribute": "SpecialChar", "context": "#stay", "char": "\\", "char1": "0" }, + { "type": "Detect2Chars", "attribute": "SpecialChar", "context": "#stay", "char": "\\", "char1": "z" } + ] + } + } +} diff --git a/highlight/resources/syntax/markdown.json b/highlight/resources/syntax/markdown.json new file mode 100644 index 0000000..186aee6 --- /dev/null +++ b/highlight/resources/syntax/markdown.json @@ -0,0 +1,267 @@ +{ + "metadata": { + "copyright": [ + "SPDX-FileCopyrightText: 2026 The Goldfish Scheme Authors", + "SPDX-FileCopyrightText: Markdown syntax derived from markdown.xml by Darrin Yeager, Claes Holmerson and Nibaldo Gonzalez S. (KDE syntax-highlighting)" + ], + "license": "SPDX-License-Identifier: MIT", + "name": "Markdown" + }, + "name": "Markdown", + "extensions": [ + "*.md", + "*.markdown", + "*.mmd" + ], + "initial-context": "Normal", + "lists": {}, + "item-datas": { + "Normal": "Normal", + "Normal Text": "Normal", + "Header": "Function", + "Header H1": "Function", + "Header H2": "Function", + "Header H3": "Function", + "Header H4": "Function", + "Header H5": "Function", + "Header H6": "Function", + "Blockquote": "Attribute", + "List": "SpecialString", + "Table": "Preprocessor", + "Code": "Information", + "Fenced Code": "Information", + "Link": "Others", + "Auto-Link": "Others", + "Comment": "Comment", + "Strong Text": "Keyword", + "Emphasis Text": "Normal", + "Strong-Emphasis Text": "Keyword", + "Strikethrough Text": "Normal", + "Horizontal Rule": "Comment", + "Keyword": "Keyword", + "ControlFlow": "ControlFlow", + "Function": "Function", + "Variable": "Variable", + "DataType": "DataType", + "Operator": "Operator", + "Extension": "Extension", + "Preprocessor": "Preprocessor", + "String": "String", + "Char": "Char", + "SpecialChar": "SpecialChar", + "DecVal": "DecVal", + "BaseN": "BaseN", + "Float": "Float", + "Constant": "Constant" + }, + "contexts": { + "Normal": { + "attribute": "Normal", + "line-end-context": "#stay", + "rules": [ + { "type": "DetectSpaces", "attribute": "Normal", "context": "#stay" }, + { "type": "StringDetect", "attribute": "Comment", "context": "comment", "String": "" } + ] + }, + "link-text": { + "attribute": "Normal", + "line-end-context": "#pop", + "rules": [ + { "type": "StringDetect", "attribute": "Link", "context": "#pop!link-url", "String": "](" }, + { "type": "DetectChar", "attribute": "Link", "context": "#pop", "char": "]" } + ] + }, + "link-url": { + "attribute": "Link", + "line-end-context": "#pop", + "rules": [ + { "type": "DetectChar", "attribute": "Link", "context": "#pop", "char": ")" } + ] + }, + "url": { + "attribute": "Link", + "line-end-context": "#pop", + "rules": [ + { "type": "AnyChar", "attribute": "Normal", "context": "#pop", "String": " \t\r\n>)],\"", "look-ahead": true } + ] + } + } +} diff --git a/highlight/resources/syntax/nix.json b/highlight/resources/syntax/nix.json new file mode 100644 index 0000000..d25fe35 --- /dev/null +++ b/highlight/resources/syntax/nix.json @@ -0,0 +1,296 @@ +{ + "metadata": { + "copyright": [ + "SPDX-FileCopyrightText: 2026 The Goldfish Scheme Authors", + "SPDX-FileCopyrightText: Nix syntax derived from nix.xml by Katalin Rebhan and Tuan Le (KDE syntax-highlighting)" + ], + "license": "SPDX-License-Identifier: MIT", + "name": "Nix" + }, + "name": "Nix", + "extensions": [ + "*.nix" + ], + "initial-context": "Expression", + "lists": { + "keywords": [ + "rec", "and", "or" + ], + "builtins": [ + "abort", "baseNameOf", "builtins", "derivation", "dirOf", + "fetchTarball", "import", "isNull", "map", "removeAttrs", "throw", + "toString" + ] + }, + "item-datas": { + "Normal Text": "Normal", + "Builtin": "BuiltIn", + "Int": "DecVal", + "Float": "Float", + "Constant": "Constant", + "String": "String", + "Special Char": "SpecialChar", + "Path": "SpecialString", + "Keyword": "Keyword", + "Comment": "Comment", + "Symbol": "Operator", + "Operator": "Operator", + "Identifier": "Variable", + "Error": "Error" + }, + "contexts": { + "Expression": { + "attribute": "Normal Text", + "line-end-context": "#stay", + "rules": [ + { "type": "DetectSpaces", "attribute": "Normal Text", "context": "#stay" }, + { "type": "DetectChar", "attribute": "Comment", "context": "comment", "char": "#" }, + { "type": "Detect2Chars", "attribute": "Comment", "context": "block-comment", "char": "/", "char1": "*" }, + { "type": "keyword", "attribute": "Keyword", "context": "#stay", "String": "keywords", "delimiters": " \t\r\n()[]{}\";:,.=+-*/?!&|<>" }, + { "type": "keyword", "attribute": "Builtin", "context": "#stay", "String": "builtins", "delimiters": " \t\r\n()[]{}\";:,.=+-*/?!&|<>" }, + { "type": "WordDetect", "attribute": "Keyword", "context": "let-expr", "String": "let", "delimiters": " \t\r\n()[]{}\";:,.=+-*/?!&|<>" }, + { "type": "WordDetect", "attribute": "Keyword", "context": "if-expr", "String": "if", "delimiters": " \t\r\n()[]{}\";:,.=+-*/?!&|<>" }, + { "type": "WordDetect", "attribute": "Keyword", "context": "with-expr", "String": "with", "delimiters": " \t\r\n()[]{}\";:,.=+-*/?!&|<>" }, + { "type": "WordDetect", "attribute": "Keyword", "context": "assert-expr", "String": "assert", "delimiters": " \t\r\n()[]{}\";:,.=+-*/?!&|<>" }, + { "type": "WordDetect", "attribute": "Constant", "context": "#stay", "String": "true", "delimiters": " \t\r\n()[]{}\";:,.=+-*/?!&|<>" }, + { "type": "WordDetect", "attribute": "Constant", "context": "#stay", "String": "false", "delimiters": " \t\r\n()[]{}\";:,.=+-*/?!&|<>" }, + { "type": "WordDetect", "attribute": "Constant", "context": "#stay", "String": "null", "delimiters": " \t\r\n()[]{}\";:,.=+-*/?!&|<>" }, + { "type": "DetectChar", "attribute": "String", "context": "string", "char": "\"" }, + { "type": "Detect2Chars", "attribute": "String", "context": "string2", "char": "'", "char1": "'" }, + { "type": "DetectChar", "attribute": "Symbol", "context": "any-brace", "char": "{" }, + { "type": "DetectChar", "attribute": "Symbol", "context": "list", "char": "[" }, + { "type": "DetectChar", "attribute": "Symbol", "context": "paren", "char": "(" }, + { "type": "Detect2Chars", "attribute": "Special Char", "context": "interp", "char": "$", "char1": "{" }, + { "type": "Float", "attribute": "Float", "context": "#stay" }, + { "type": "Int", "attribute": "Int", "context": "#stay" }, + { "type": "Detect2Chars", "attribute": "Symbol", "context": "#stay", "char": "/", "char1": "/" }, + { "type": "Detect2Chars", "attribute": "Operator", "context": "#stay", "char": "?", "char1": "?" }, + { "type": "Detect2Chars", "attribute": "Operator", "context": "#stay", "char": "+", "char1": "+" }, + { "type": "Detect2Chars", "attribute": "Operator", "context": "#stay", "char": "|", "char1": "|" }, + { "type": "Detect2Chars", "attribute": "Operator", "context": "#stay", "char": "&", "char1": "&" }, + { "type": "StringDetect", "attribute": "Symbol", "context": "#stay", "String": "..." }, + { "type": "AnyChar", "attribute": "Operator", "context": "#stay", "String": "+-*/?!" }, + { "type": "DetectChar", "attribute": "Symbol", "context": "#stay", "char": "=" }, + { "type": "DetectChar", "attribute": "Symbol", "context": "#stay", "char": ":" }, + { "type": "DetectChar", "attribute": "Symbol", "context": "#stay", "char": ";" }, + { "type": "DetectChar", "attribute": "Symbol", "context": "#stay", "char": "," }, + { "type": "DetectChar", "attribute": "Symbol", "context": "#stay", "char": "@" }, + { "type": "DetectIdentifier", "attribute": "Identifier", "context": "#stay" } + ] + }, + "comment": { + "attribute": "Comment", + "line-end-context": "#pop", + "rules": [ + { "type": "DetectSpaces", "attribute": "Comment", "context": "#stay" }, + { "type": "DetectIdentifier", "attribute": "Comment", "context": "#stay" }, + { "type": "AnyChar", "attribute": "Comment", "context": "#stay", "String": "+-*/%=<>!&|^~?:;.,()[]{}#@$'\"\\`" } + ] + }, + "block-comment": { + "attribute": "Comment", + "line-end-context": "#stay", + "rules": [ + { "type": "Detect2Chars", "attribute": "Comment", "context": "#pop", "char": "*", "char1": "/" }, + { "type": "DetectSpaces", "attribute": "Comment", "context": "#stay" }, + { "type": "DetectIdentifier", "attribute": "Comment", "context": "#stay" } + ] + }, + "string": { + "attribute": "String", + "line-end-context": "#stay", + "rules": [ + { "type": "DetectChar", "attribute": "String", "context": "#pop", "char": "\"" }, + { "type": "Detect2Chars", "attribute": "Special Char", "context": "#stay", "char": "\\", "char1": "\\" }, + { "type": "Detect2Chars", "attribute": "Special Char", "context": "#stay", "char": "\\", "char1": "\"" }, + { "type": "Detect2Chars", "attribute": "Special Char", "context": "#stay", "char": "\\", "char1": "n" }, + { "type": "Detect2Chars", "attribute": "Special Char", "context": "#stay", "char": "\\", "char1": "t" }, + { "type": "Detect2Chars", "attribute": "Special Char", "context": "#stay", "char": "\\", "char1": "r" }, + { "type": "Detect2Chars", "attribute": "Special Char", "context": "interp", "char": "$", "char1": "{" } + ] + }, + "string2": { + "attribute": "String", + "line-end-context": "#stay", + "rules": [ + { "type": "Detect2Chars", "attribute": "String", "context": "#pop", "char": "'", "char1": "'" }, + { "type": "Detect2Chars", "attribute": "Special Char", "context": "#stay", "char": "'", "char1": "'" }, + { "type": "Detect2Chars", "attribute": "Special Char", "context": "#stay", "char": "\\", "char1": "\\" }, + { "type": "Detect2Chars", "attribute": "Special Char", "context": "interp", "char": "$", "char1": "{" } + ] + }, + "interp": { + "attribute": "Normal Text", + "line-end-context": "#stay", + "rules": [ + { "type": "DetectChar", "attribute": "Special Char", "context": "#pop", "char": "}" }, + { "type": "DetectIdentifier", "attribute": "Identifier", "context": "#stay" }, + { "type": "AnyChar", "attribute": "Operator", "context": "#stay", "String": "+-*/%=<>!&|?^~:.()," } + ] + }, + "any-brace": { + "attribute": "Normal Text", + "line-end-context": "#stay", + "rules": [ + { "type": "DetectSpaces", "attribute": "Normal Text", "context": "#stay" }, + { "type": "DetectChar", "attribute": "Symbol", "context": "#pop", "char": "}" }, + { "type": "WordDetect", "attribute": "Keyword", "context": "set", "String": "inherit", "delimiters": " \t\r\n()[]{}\";:,.=" }, + { "type": "DetectChar", "attribute": "Symbol", "context": "#pop!set", "char": ";" }, + { "type": "DetectChar", "attribute": "Symbol", "context": "set-value", "char": "=" }, + { "type": "DetectChar", "attribute": "String", "context": "string", "char": "\"" }, + { "type": "Detect2Chars", "attribute": "String", "context": "string2", "char": "'", "char1": "'" }, + { "type": "Detect2Chars", "attribute": "Special Char", "context": "interp", "char": "$", "char1": "{" }, + { "type": "DetectChar", "attribute": "Symbol", "context": "#stay", "char": "," }, + { "type": "DetectChar", "attribute": "Symbol", "context": "#stay", "char": "?" }, + { "type": "StringDetect", "attribute": "Symbol", "context": "#stay", "String": "..." }, + { "type": "DetectChar", "attribute": "Comment", "context": "comment", "char": "#" }, + { "type": "Detect2Chars", "attribute": "Comment", "context": "block-comment", "char": "/", "char1": "*" }, + { "type": "DetectIdentifier", "attribute": "Identifier", "context": "#stay" } + ] + }, + "set": { + "attribute": "Normal Text", + "line-end-context": "#stay", + "rules": [ + { "type": "DetectSpaces", "attribute": "Normal Text", "context": "#stay" }, + { "type": "DetectChar", "attribute": "Symbol", "context": "#pop", "char": "}" }, + { "type": "WordDetect", "attribute": "Keyword", "context": "#stay", "String": "inherit", "delimiters": " \t\r\n()[]{}\";:,.=" }, + { "type": "DetectChar", "attribute": "String", "context": "string", "char": "\"" }, + { "type": "Detect2Chars", "attribute": "String", "context": "string2", "char": "'", "char1": "'" }, + { "type": "DetectChar", "attribute": "Symbol", "context": "set-value", "char": "=" }, + { "type": "Detect2Chars", "attribute": "Special Char", "context": "interp", "char": "$", "char1": "{" }, + { "type": "DetectChar", "attribute": "Comment", "context": "comment", "char": "#" }, + { "type": "Detect2Chars", "attribute": "Comment", "context": "block-comment", "char": "/", "char1": "*" }, + { "type": "DetectIdentifier", "attribute": "Identifier", "context": "#stay" } + ] + }, + "set-value": { + "attribute": "Normal Text", + "line-end-context": "#stay", + "rules": [ + { "type": "DetectChar", "attribute": "Symbol", "context": "#pop", "char": ";" }, + { "type": "DetectChar", "attribute": "Symbol", "context": "#pop#pop", "char": "}" }, + { "type": "DetectSpaces", "attribute": "Normal Text", "context": "#stay" }, + { "type": "DetectChar", "attribute": "Comment", "context": "comment", "char": "#" }, + { "type": "Detect2Chars", "attribute": "Comment", "context": "block-comment", "char": "/", "char1": "*" }, + { "type": "keyword", "attribute": "Keyword", "context": "#stay", "String": "keywords", "delimiters": " \t\r\n()[]{}\";:,.=+-*/?!&|<>" }, + { "type": "keyword", "attribute": "Builtin", "context": "#stay", "String": "builtins", "delimiters": " \t\r\n()[]{}\";:,.=+-*/?!&|<>" }, + { "type": "WordDetect", "attribute": "Keyword", "context": "let-expr", "String": "let", "delimiters": " \t\r\n()[]{}\";:,.=+-*/?!&|<>" }, + { "type": "WordDetect", "attribute": "Keyword", "context": "if-expr", "String": "if", "delimiters": " \t\r\n()[]{}\";:,.=+-*/?!&|<>" }, + { "type": "WordDetect", "attribute": "Keyword", "context": "with-expr", "String": "with", "delimiters": " \t\r\n()[]{}\";:,.=+-*/?!&|<>" }, + { "type": "WordDetect", "attribute": "Keyword", "context": "assert-expr", "String": "assert", "delimiters": " \t\r\n()[]{}\";:,.=+-*/?!&|<>" }, + { "type": "WordDetect", "attribute": "Constant", "context": "#stay", "String": "true", "delimiters": " \t\r\n()[]{}\";:,.=+-*/?!&|<>" }, + { "type": "WordDetect", "attribute": "Constant", "context": "#stay", "String": "false", "delimiters": " \t\r\n()[]{}\";:,.=+-*/?!&|<>" }, + { "type": "WordDetect", "attribute": "Constant", "context": "#stay", "String": "null", "delimiters": " \t\r\n()[]{}\";:,.=+-*/?!&|<>" }, + { "type": "DetectChar", "attribute": "String", "context": "string", "char": "\"" }, + { "type": "Detect2Chars", "attribute": "String", "context": "string2", "char": "'", "char1": "'" }, + { "type": "DetectChar", "attribute": "Symbol", "context": "any-brace", "char": "{" }, + { "type": "DetectChar", "attribute": "Symbol", "context": "list", "char": "[" }, + { "type": "DetectChar", "attribute": "Symbol", "context": "paren", "char": "(" }, + { "type": "Detect2Chars", "attribute": "Special Char", "context": "interp", "char": "$", "char1": "{" }, + { "type": "Float", "attribute": "Float", "context": "#stay" }, + { "type": "Int", "attribute": "Int", "context": "#stay" }, + { "type": "AnyChar", "attribute": "Operator", "context": "#stay", "String": "+-*/?!<>=&|:" }, + { "type": "DetectIdentifier", "attribute": "Identifier", "context": "#stay" } + ] + }, + "list": { + "attribute": "Normal Text", + "line-end-context": "#stay", + "rules": [ + { "type": "DetectChar", "attribute": "Symbol", "context": "#pop", "char": "]" }, + { "type": "DetectSpaces", "attribute": "Normal Text", "context": "#stay" }, + { "type": "DetectChar", "attribute": "Comment", "context": "comment", "char": "#" }, + { "type": "Detect2Chars", "attribute": "Comment", "context": "block-comment", "char": "/", "char1": "*" }, + { "type": "DetectChar", "attribute": "String", "context": "string", "char": "\"" }, + { "type": "Detect2Chars", "attribute": "String", "context": "string2", "char": "'", "char1": "'" }, + { "type": "DetectChar", "attribute": "Symbol", "context": "any-brace", "char": "{" }, + { "type": "DetectChar", "attribute": "Symbol", "context": "list", "char": "[" }, + { "type": "DetectChar", "attribute": "Symbol", "context": "paren", "char": "(" }, + { "type": "Float", "attribute": "Float", "context": "#stay" }, + { "type": "Int", "attribute": "Int", "context": "#stay" }, + { "type": "WordDetect", "attribute": "Constant", "context": "#stay", "String": "true", "delimiters": " \t\r\n()[]{}\";:,.=+-*/?!&|<>" }, + { "type": "WordDetect", "attribute": "Constant", "context": "#stay", "String": "false", "delimiters": " \t\r\n()[]{}\";:,.=+-*/?!&|<>" }, + { "type": "WordDetect", "attribute": "Constant", "context": "#stay", "String": "null", "delimiters": " \t\r\n()[]{}\";:,.=+-*/?!&|<>" }, + { "type": "keyword", "attribute": "Builtin", "context": "#stay", "String": "builtins", "delimiters": " \t\r\n()[]{}\";:,.=+-*/?!&|<>" }, + { "type": "DetectIdentifier", "attribute": "Identifier", "context": "#stay" } + ] + }, + "paren": { + "attribute": "Normal Text", + "line-end-context": "#stay", + "rules": [ + { "type": "DetectChar", "attribute": "Symbol", "context": "#pop", "char": ")" }, + { "type": "DetectSpaces", "attribute": "Normal Text", "context": "#stay" }, + { "type": "DetectChar", "attribute": "Comment", "context": "comment", "char": "#" }, + { "type": "Detect2Chars", "attribute": "Comment", "context": "block-comment", "char": "/", "char1": "*" }, + { "type": "DetectChar", "attribute": "String", "context": "string", "char": "\"" }, + { "type": "Detect2Chars", "attribute": "String", "context": "string2", "char": "'", "char1": "'" }, + { "type": "DetectChar", "attribute": "Symbol", "context": "any-brace", "char": "{" }, + { "type": "DetectChar", "attribute": "Symbol", "context": "list", "char": "[" }, + { "type": "DetectChar", "attribute": "Symbol", "context": "paren", "char": "(" }, + { "type": "Float", "attribute": "Float", "context": "#stay" }, + { "type": "Int", "attribute": "Int", "context": "#stay" }, + { "type": "WordDetect", "attribute": "Constant", "context": "#stay", "String": "true", "delimiters": " \t\r\n()[]{}\";:,.=+-*/?!&|<>" }, + { "type": "WordDetect", "attribute": "Constant", "context": "#stay", "String": "false", "delimiters": " \t\r\n()[]{}\";:,.=+-*/?!&|<>" }, + { "type": "WordDetect", "attribute": "Constant", "context": "#stay", "String": "null", "delimiters": " \t\r\n()[]{}\";:,.=+-*/?!&|<>" }, + { "type": "keyword", "attribute": "Builtin", "context": "#stay", "String": "builtins", "delimiters": " \t\r\n()[]{}\";:,.=+-*/?!&|<>" }, + { "type": "DetectIdentifier", "attribute": "Identifier", "context": "#stay" } + ] + }, + "let-expr": { + "attribute": "Normal Text", + "line-end-context": "#stay", + "rules": [ + { "type": "DetectSpaces", "attribute": "Normal Text", "context": "#stay" }, + { "type": "WordDetect", "attribute": "Keyword", "context": "#pop", "String": "in", "delimiters": " \t\r\n()[]{}\";:,.=+-*/?!&|<>" }, + { "type": "DetectChar", "attribute": "Symbol", "context": "#pop", "char": "}" }, + { "type": "DetectChar", "attribute": "String", "context": "string", "char": "\"" }, + { "type": "Detect2Chars", "attribute": "String", "context": "string2", "char": "'", "char1": "'" }, + { "type": "DetectChar", "attribute": "Symbol", "context": "set-value", "char": "=" }, + { "type": "Detect2Chars", "attribute": "Special Char", "context": "interp", "char": "$", "char1": "{" }, + { "type": "DetectChar", "attribute": "Comment", "context": "comment", "char": "#" }, + { "type": "Detect2Chars", "attribute": "Comment", "context": "block-comment", "char": "/", "char1": "*" }, + { "type": "DetectIdentifier", "attribute": "Identifier", "context": "#stay" } + ] + }, + "if-expr": { + "attribute": "Normal Text", + "line-end-context": "#stay", + "rules": [ + { "type": "WordDetect", "attribute": "Keyword", "context": "then-expr", "String": "then", "delimiters": " \t\r\n()[]{}\";:,.=+-*/?!&|<>" }, + { "type": "DetectSpaces", "attribute": "Normal Text", "context": "#stay" }, + { "type": "DetectIdentifier", "attribute": "Identifier", "context": "#stay" }, + { "type": "AnyChar", "attribute": "Operator", "context": "#stay", "String": "+-*/%=<>!&|?:.,()[]" } + ] + }, + "then-expr": { + "attribute": "Normal Text", + "line-end-context": "#stay", + "rules": [ + { "type": "WordDetect", "attribute": "Keyword", "context": "#pop", "String": "else", "delimiters": " \t\r\n()[]{}\";:,.=+-*/?!&|<>" }, + { "type": "DetectSpaces", "attribute": "Normal Text", "context": "#stay" }, + { "type": "DetectIdentifier", "attribute": "Identifier", "context": "#stay" }, + { "type": "AnyChar", "attribute": "Operator", "context": "#stay", "String": "+-*/%=<>!&|?:.,()[]" } + ] + }, + "with-expr": { + "attribute": "Normal Text", + "line-end-context": "#stay", + "rules": [ + { "type": "DetectChar", "attribute": "Symbol", "context": "#pop", "char": ";" }, + { "type": "DetectSpaces", "attribute": "Normal Text", "context": "#stay" }, + { "type": "DetectIdentifier", "attribute": "Identifier", "context": "#stay" } + ] + }, + "assert-expr": { + "attribute": "Normal Text", + "line-end-context": "#stay", + "rules": [ + { "type": "DetectChar", "attribute": "Symbol", "context": "#pop", "char": ";" }, + { "type": "DetectSpaces", "attribute": "Normal Text", "context": "#stay" }, + { "type": "DetectIdentifier", "attribute": "Identifier", "context": "#stay" } + ] + } + } +} diff --git a/highlight/resources/syntax/php.json b/highlight/resources/syntax/php.json new file mode 100644 index 0000000..ecabe9a --- /dev/null +++ b/highlight/resources/syntax/php.json @@ -0,0 +1,11566 @@ +{ + "metadata": { + "copyright": [ + "SPDX-FileCopyrightText: 2026 The Goldfish Scheme Authors", + "SPDX-FileCopyrightText: PHP syntax derived from php.xml by the KDE syntax-highlighting authors" + ], + "license": "SPDX-License-Identifier: LGPL-2.0-or-later", + "name": "PHP" + }, + "name": "PHP", + "extensions": [ + "*.php", + "*.php3", + "*.php4", + "*.php5", + "*.phtml", + "*.inc", + "*.phps" + ], + "initial-context": "start", + "lists": { + "control structures": [ + "break", + "case", + "catch", + "continue", + "default", + "die", + "do", + "else", + "elseif", + "endfor", + "endforeach", + "endif", + "endswitch", + "endwhile", + "exit", + "finally", + "for", + "foreach", + "goto", + "if", + "return", + "switch", + "throw", + "try", + "while", + "yield", + "match" + ], + "operators": [ + "and", + "or", + "xor" + ], + "keywords": [ + "__halt_compiler", + "abstract", + "as", + "callable", + "class", + "clone", + "const", + "declare", + "echo", + "empty", + "enddeclare", + "enum", + "eval", + "extends", + "final", + "function", + "global", + "implements", + "include", + "include_once", + "instanceof", + "insteadof", + "interface", + "isset", + "list", + "namespace", + "new", + "print", + "private", + "protected", + "public", + "require", + "require_once", + "static", + "trait", + "unset", + "use", + "var", + "parent", + "self", + "false", + "numeric", + "null", + "resource", + "true", + "fn" + ], + "types": [ + "array", + "bool", + "float", + "int", + "mixed", + "string", + "iterable", + "void", + "object" + ], + "properties": [ + "readonly", + "never" + ], + "constants": [ + "__CLASS__", + "__DIR__", + "__FILE__", + "__FUNCTION__", + "__LINE__", + "__METHOD__", + "__NAMESPACE__", + "__TRAIT__", + "PHP_VERSION", + "PHP_MAJOR_VERSION", + "PHP_MINOR_VERSION", + "PHP_RELEASE_VERSION", + "PHP_VERSION_ID", + "PHP_EXTRA_VERSION", + "PHP_ZTS", + "PHP_DEBUG", + "PHP_MAXPATHLEN", + "PHP_OS", + "PHP_SAPI", + "PHP_EOL", + "PHP_INT_MAX", + "PHP_INT_SIZE", + "DEFAULT_INCLUDE_PATH", + "PEAR_INSTALL_DIR", + "PEAR_EXTENSION_DIR", + "PHP_EXTENSION_DIR", + "PHP_PREFIX", + "PHP_BINDIR", + "PHP_BINARY", + "PHP_MANDIR", + "PHP_LIBDIR", + "PHP_DATADIR", + "PHP_SYSCONFDIR", + "PHP_LOCALSTATEDIR", + "PHP_CONFIG_FILE_PATH", + "PHP_CONFIG_FILE_SCAN_DIR", + "PHP_SHLIB_SUFFIX", + "PHP_FD_SETSIZE", + "E_ERROR", + "E_WARNING", + "E_PARSE", + "E_NOTICE", + "E_CORE_ERROR", + "E_CORE_WARNING", + "E_COMPILE_ERROR", + "E_COMPILE_WARNING", + "E_USER_ERROR", + "E_USER_WARNING", + "E_USER_NOTICE", + "E_RECOVERABLE_ERROR", + "E_DEPRECATED", + "E_USER_DEPRECATED", + "E_ALL", + "E_STRICT", + "__COMPILER_HALT_OFFSET__", + "PHP_INT_MIN", + "PHP_OS_FAMILY", + "PHP_FLOAT_DIG", + "PHP_FLOAT_EPSILON", + "PHP_FLOAT_MIN", + "PHP_FLOAT_MAX", + "PHP_WINDOWS_EVENT_CTRL_C", + "PHP_WINDOWS_EVENT_CTRL_BREAK", + "ALT_DIGITS", + "CIT_CALL_TOSTRING", + "CIT_CATCH_GET_CHILD", + "CIT_TOSTRING_USE_CURRENT", + "CIT_TOSTRING_USE_INNER", + "CIT_TOSTRING_USE_KEY", + "DNS_NAPTR", + "DNS_SRV", + "INI_ALL", + "INI_PERDIR", + "INI_SYSTEM", + "INI_USER", + "MYSQLI_RPL_ADMIN", + "MYSQLI_RPL_MASTER", + "MYSQLI_RPL_SLAVE", + "M_ABSTRACT", + "M_FINAL", + "M_PRIVATE", + "M_PROTECTED", + "M_PUBLIC", + "M_STATIC", + "NCURSES_A_ALTCHARSET", + "NCURSES_A_BLINK", + "NCURSES_A_BOLD", + "NCURSES_A_CHARTEXT", + "NCURSES_A_DIM", + "NCURSES_A_INVIS", + "NCURSES_A_NORMAL", + "NCURSES_A_PROTECT", + "NCURSES_A_REVERSE", + "NCURSES_A_STANDOUT", + "NCURSES_A_UNDERLINE", + "NCURSES_BUTTON2_CLICKED", + "NCURSES_BUTTON2_DOUBLE_CLICKED", + "NCURSES_BUTTON2_PRESSED", + "NCURSES_BUTTON2_RELEASED", + "NCURSES_BUTTON2_TRIPLE_CLICKED", + "NCURSES_BUTTON3_CLICKED", + "NCURSES_BUTTON3_DOUBLE_CLICKED", + "NCURSES_BUTTON3_PRESSED", + "NCURSES_BUTTON3_RELEASED", + "NCURSES_BUTTON3_TRIPLE_CLICKED", + "NCURSES_BUTTON4_CLICKED", + "NCURSES_BUTTON4_DOUBLE_CLICKED", + "NCURSES_BUTTON4_PRESSED", + "NCURSES_BUTTON4_RELEASED", + "NCURSES_BUTTON4_TRIPLE_CLICKED", + "NCURSES_KEY_ENTER", + "NCURSES_KEY_F1", + "NCURSES_KEY_F10", + "NCURSES_KEY_F11", + "NCURSES_KEY_F12", + "NCURSES_KEY_F2", + "NCURSES_KEY_F3", + "NCURSES_KEY_F4", + "NCURSES_KEY_F5", + "NCURSES_KEY_F6", + "NCURSES_KEY_F7", + "NCURSES_KEY_F8", + "NCURSES_KEY_F9", + "NCURSES_KEY_RESIZE", + "NCURSES_KEY_SUNDO", + "NCURSES_KEY_SUSPEND", + "NULL", + "PREG_GREP_INVERT", + "PRIO_PGRP", + "PRIO_PROCESS", + "PRIO_USER", + "P_PRIVATE", + "P_PROTECTED", + "P_PUBLIC", + "P_STATIC", + "RIT_CHILD_FIRST", + "RIT_LEAVES_ONLY", + "RIT_SELF_FIRST", + "SOMAXCONN", + "SQL_FETCH_FIRST", + "SQL_FETCH_NEXT", + "STREAM_ENFORCE_SAFE_MODE", + "STREAM_IGNORE_URL", + "STREAM_MKDIR_RECURSIVE", + "STREAM_MUST_SEEK", + "XML_LOCAL_NAMESPACE", + "ZEND_THREAD_SAFE", + "ABDAY_1", + "ABDAY_2", + "ABDAY_3", + "ABDAY_4", + "ABDAY_5", + "ABDAY_6", + "ABDAY_7", + "ABMON_1", + "ABMON_2", + "ABMON_3", + "ABMON_4", + "ABMON_5", + "ABMON_6", + "ABMON_7", + "ABMON_8", + "ABMON_9", + "ABMON_10", + "ABMON_11", + "ABMON_12", + "AF_INET", + "AF_INET6", + "AF_UNIX", + "ALC_FREQUENCY", + "ALC_REFRESH", + "ALC_SYNC", + "ALL_MATCHES", + "AL_BITS", + "AL_BUFFER", + "AL_CHANNELS", + "AL_CONE_INNER_ANGLE", + "AL_CONE_OUTER_ANGLE", + "AL_CONE_OUTER_GAIN", + "AL_DIRECTION", + "AL_FALSE", + "AL_FORMAT_MONO8", + "AL_FORMAT_MONO16", + "AL_FORMAT_STEREO8", + "AL_FORMAT_STEREO16", + "AL_FREQUENCY", + "AL_GAIN", + "AL_INITIAL", + "AL_LOOPING", + "AL_MAX_DISTANCE", + "AL_MAX_GAIN", + "AL_MIN_GAIN", + "AL_ORIENTATION", + "AL_PAUSED", + "AL_PITCH", + "AL_PLAYING", + "AL_POSITION", + "AL_REFERENCE_DISTANCE", + "AL_ROLLOFF_FACTOR", + "AL_SIZE", + "AL_SOURCE_RELATIVE", + "AL_SOURCE_STATE", + "AL_STOPPED", + "AL_TRUE", + "AL_VELOCITY", + "AM_STR", + "APACHE_MAP", + "APC_BIN_VERIFY_CRC32", + "APC_BIN_VERIFY_MD5", + "APC_ITER_ALL", + "APC_ITER_ATIME", + "APC_ITER_CTIME", + "APC_ITER_DEVICE", + "APC_ITER_DTIME", + "APC_ITER_FILENAME", + "APC_ITER_INODE", + "APC_ITER_KEY", + "APC_ITER_MD5", + "APC_ITER_MEM_SIZE", + "APC_ITER_MTIME", + "APC_ITER_NONE", + "APC_ITER_NUM_HITS", + "APC_ITER_REFCOUNT", + "APC_ITER_TTL", + "APC_ITER_TYPE", + "APC_ITER_VALUE", + "APC_LIST_ACTIVE", + "APC_LIST_DELETED", + "APD_VERSION", + "APIERROR", + "ARGS_TRACE", + "ARRAY_AS_PROPS", + "ARRAY_FILTER_USE_BOTH", + "ARRAY_FILTER_USE_KEY", + "ASSERT_ACTIVE", + "ASSERT_BAIL", + "ASSERT_CALLBACK", + "ASSERT_QUIET_EVAL", + "ASSERT_WARNING", + "ASSIGNMENT_TRACE", + "ASSOCIATING_STATE", + "AUTHFAILED", + "AUTH_FAILED_STATE", + "BADARGUMENTS", + "BADVERSION", + "BBCODE_ARG_DOUBLE_QUOTE", + "BBCODE_ARG_HTML_QUOTE", + "BBCODE_ARG_QUOTE_ESCAPING", + "BBCODE_ARG_SINGLE_QUOTE", + "BBCODE_AUTO_CORRECT", + "BBCODE_CORRECT_REOPEN_TAGS", + "BBCODE_DEFAULT_SMILEYS_OFF", + "BBCODE_DEFAULT_SMILEYS_ON", + "BBCODE_DISABLE_TREE_BUILD", + "BBCODE_FLAGS_ARG_PARSING", + "BBCODE_FLAGS_CDATA_NOT_ALLOWED", + "BBCODE_FLAGS_DENY_REOPEN_CHILD", + "BBCODE_FLAGS_ONE_OPEN_PER_LEVEL", + "BBCODE_FLAGS_REMOVE_IF_EMPTY", + "BBCODE_FLAGS_SMILEYS_OFF", + "BBCODE_FLAGS_SMILEYS_ON", + "BBCODE_FORCE_SMILEYS_OFF", + "BBCODE_SET_FLAGS_ADD", + "BBCODE_SET_FLAGS_REMOVE", + "BBCODE_SET_FLAGS_SET", + "BBCODE_SMILEYS_CASE_INSENSITIVE", + "BBCODE_TYPE_ARG", + "BBCODE_TYPE_NOARG", + "BBCODE_TYPE_OPTARG", + "BBCODE_TYPE_ROOT", + "BBCODE_TYPE_SINGLE", + "BLENC_EXT_VERSION", + "BUS_ADRALN", + "BUS_ADRERR", + "BUS_OBJERR", + "CAIRO_ANTIALIAS_DEFAULT", + "CAIRO_ANTIALIAS_GRAY", + "CAIRO_ANTIALIAS_NONE", + "CAIRO_ANTIALIAS_SUBPIXEL", + "CAIRO_CONTENT_ALPHA", + "CAIRO_CONTENT_COLOR", + "CAIRO_CONTENT_COLOR_ALPHA", + "CAIRO_EXTEND_NONE", + "CAIRO_EXTEND_PAD", + "CAIRO_EXTEND_REFLECT", + "CAIRO_EXTEND_REPEAT", + "CAIRO_FILL_RULE_EVEN_ODD", + "CAIRO_FILL_RULE_WINDING", + "CAIRO_FILTER_BEST", + "CAIRO_FILTER_BILINEAR", + "CAIRO_FILTER_FAST", + "CAIRO_FILTER_GAUSSIAN", + "CAIRO_FILTER_GOOD", + "CAIRO_FILTER_NEAREST", + "CAIRO_FONT_SLANT_ITALIC", + "CAIRO_FONT_SLANT_NORMAL", + "CAIRO_FONT_SLANT_OBLIQUE", + "CAIRO_FONT_TYPE_FT", + "CAIRO_FONT_TYPE_QUARTZ", + "CAIRO_FONT_TYPE_TOY", + "CAIRO_FONT_TYPE_WIN32", + "CAIRO_FONT_WEIGHT_BOLD", + "CAIRO_FONT_WEIGHT_NORMAL", + "CAIRO_FORMAT_A1", + "CAIRO_FORMAT_A8", + "CAIRO_FORMAT_ARGB32", + "CAIRO_FORMAT_RGB24", + "CAIRO_HINT_METRICS_DEFAULT", + "CAIRO_HINT_METRICS_OFF", + "CAIRO_HINT_METRICS_ON", + "CAIRO_HINT_STYLE_DEFAULT", + "CAIRO_HINT_STYLE_FULL", + "CAIRO_HINT_STYLE_MEDIUM", + "CAIRO_HINT_STYLE_NONE", + "CAIRO_HINT_STYLE_SLIGHT", + "CAIRO_LINE_CAP_BUTT", + "CAIRO_LINE_CAP_ROUND", + "CAIRO_LINE_CAP_SQUARE", + "CAIRO_LINE_JOIN_BEVEL", + "CAIRO_LINE_JOIN_MITER", + "CAIRO_LINE_JOIN_ROUND", + "CAIRO_OPERATOR_ADD", + "CAIRO_OPERATOR_ATOP", + "CAIRO_OPERATOR_CLEAR", + "CAIRO_OPERATOR_DEST", + "CAIRO_OPERATOR_DEST_ATOP", + "CAIRO_OPERATOR_DEST_IN", + "CAIRO_OPERATOR_DEST_OUT", + "CAIRO_OPERATOR_DEST_OVER", + "CAIRO_OPERATOR_IN", + "CAIRO_OPERATOR_OUT", + "CAIRO_OPERATOR_OVER", + "CAIRO_OPERATOR_SATURATE", + "CAIRO_OPERATOR_SOURCE", + "CAIRO_OPERATOR_XOR", + "CAIRO_PATTERN_TYPE_LINEAR", + "CAIRO_PATTERN_TYPE_RADIAL", + "CAIRO_PATTERN_TYPE_SOLID", + "CAIRO_PATTERN_TYPE_SURFACE", + "CAIRO_PS_LEVEL_2", + "CAIRO_PS_LEVEL_3", + "CAIRO_STATUS_CLIP_NOT_REPRESENTABLE", + "CAIRO_STATUS_FILE_NOT_FOUND", + "CAIRO_STATUS_INVALID_CONTENT", + "CAIRO_STATUS_INVALID_DASH", + "CAIRO_STATUS_INVALID_DSC_COMMENT", + "CAIRO_STATUS_INVALID_FORMAT", + "CAIRO_STATUS_INVALID_INDEX", + "CAIRO_STATUS_INVALID_MATRIX", + "CAIRO_STATUS_INVALID_PATH_DATA", + "CAIRO_STATUS_INVALID_POP_GROUP", + "CAIRO_STATUS_INVALID_RESTORE", + "CAIRO_STATUS_INVALID_STATUS", + "CAIRO_STATUS_INVALID_STRIDE", + "CAIRO_STATUS_INVALID_STRING", + "CAIRO_STATUS_INVALID_VISUAL", + "CAIRO_STATUS_NO_CURRENT_POINT", + "CAIRO_STATUS_NO_MEMORY", + "CAIRO_STATUS_NULL_POINTER", + "CAIRO_STATUS_PATTERN_TYPE_MISMATCH", + "CAIRO_STATUS_READ_ERROR", + "CAIRO_STATUS_SUCCESS", + "CAIRO_STATUS_SURFACE_FINISHED", + "CAIRO_STATUS_SURFACE_TYPE_MISMATCH", + "CAIRO_STATUS_TEMP_FILE_ERROR", + "CAIRO_STATUS_WRITE_ERROR", + "CAIRO_SUBPIXEL_ORDER_BGR", + "CAIRO_SUBPIXEL_ORDER_DEFAULT", + "CAIRO_SUBPIXEL_ORDER_RGB", + "CAIRO_SUBPIXEL_ORDER_VBGR", + "CAIRO_SUBPIXEL_ORDER_VRGB", + "CAIRO_SURFACE_TYPE_BEOS", + "CAIRO_SURFACE_TYPE_DIRECTFB", + "CAIRO_SURFACE_TYPE_GLITZ", + "CAIRO_SURFACE_TYPE_IMAGE", + "CAIRO_SURFACE_TYPE_OS2", + "CAIRO_SURFACE_TYPE_PDF", + "CAIRO_SURFACE_TYPE_PS", + "CAIRO_SURFACE_TYPE_QUARTZ", + "CAIRO_SURFACE_TYPE_QUARTZ_IMAGE", + "CAIRO_SURFACE_TYPE_SVG", + "CAIRO_SURFACE_TYPE_WIN32", + "CAIRO_SURFACE_TYPE_WIN32_PRINTING", + "CAIRO_SURFACE_TYPE_XCB", + "CAIRO_SURFACE_TYPE_XLIB", + "CAIRO_SVG_VERSION_1_1", + "CAIRO_SVG_VERSION_1_2", + "CAL_DOW_DAYNO", + "CAL_DOW_LONG", + "CAL_DOW_SHORT", + "CAL_EASTER_ALWAYS_GREGORIAN", + "CAL_EASTER_ALWAYS_JULIAN", + "CAL_EASTER_DEFAULT", + "CAL_EASTER_ROMAN", + "CAL_FRENCH", + "CAL_GREGORIAN", + "CAL_JEWISH", + "CAL_JEWISH_ADD_ALAFIM", + "CAL_JEWISH_ADD_ALAFIM_GERESH", + "CAL_JEWISH_ADD_GERESHAYIM", + "CAL_JULIAN", + "CAL_MONTH_FRENCH", + "CAL_MONTH_GREGORIAN_LONG", + "CAL_MONTH_GREGORIAN_SHORT", + "CAL_MONTH_JEWISH", + "CAL_MONTH_JULIAN_LONG", + "CAL_MONTH_JULIAN_SHORT", + "CAL_NUM_CALS", + "CASE_LOWER", + "CASE_UPPER", + "CHANGED_EVENT", + "CHAR_MAX", + "CHILD_ARRAYS_ONLY", + "CHILD_EVENT", + "CLASSKIT_ACC_PRIVATE", + "CLASSKIT_ACC_PROTECTED", + "CLASSKIT_ACC_PUBLIC", + "CLASSKIT_AGGREGATE_OVERRIDE", + "CLASSKIT_VERSION", + "CLD_CONTINUED", + "CLD_DUMPED", + "CLD_EXITED", + "CLD_KILLED", + "CLD_STOPPED", + "CLD_TRAPPED", + "CLOSING", + "CLSCTX_ALL", + "CLSCTX_INPROC_HANDLER", + "CLSCTX_INPROC_SERVER", + "CLSCTX_LOCAL_SERVER", + "CLSCTX_REMOTE_SERVER", + "CLSCTX_SERVER", + "CL_EXPUNGE", + "CODESET", + "CONNECTED_STATE", + "CONNECTING_STATE", + "CONNECTIONLOSS", + "CONNECTION_ABORTED", + "CONNECTION_NORMAL", + "CONNECTION_TIMEOUT", + "COUNT_NORMAL", + "COUNT_RECURSIVE", + "CP_ACP", + "CP_MACCP", + "CP_MOVE", + "CP_OEMCP", + "CP_SYMBOL", + "CP_THREAD_ACP", + "CP_UID", + "CP_UTF7", + "CP_UTF8", + "CREATED_EVENT", + "CREDITS_ALL", + "CREDITS_DOCS", + "CREDITS_FULLPAGE", + "CREDITS_GENERAL", + "CREDITS_GROUP", + "CREDITS_MODULES", + "CREDITS_QA", + "CREDITS_SAPI", + "CRNCYSTR", + "CRYPT_BLOWFISH", + "CRYPT_EXT_DES", + "CRYPT_MD5", + "CRYPT_SALT_LENGTH", + "CRYPT_STD_DES", + "CRYPT_SHA256", + "CRYPT_SHA512", + "CURLALTSVC_H1", + "CURLALTSVC_H2", + "CURLALTSVC_H3", + "CURLALTSVC_READONLYFILE", + "CURLAUTH_ANY", + "CURLAUTH_ANYSAFE", + "CURLAUTH_AWS_SIGV4", + "CURLAUTH_BASIC", + "CURLAUTH_BEARER", + "CURLAUTH_DIGEST", + "CURLAUTH_GSSAPI", + "CURLAUTH_GSSNEGOTIATE", + "CURLAUTH_NEGOTIATE", + "CURLAUTH_NTLM", + "CURLAUTH_NTLM_WB", + "CURLCLOSEPOLICY_CALLBACK", + "CURLCLOSEPOLICY_LEAST_RECENTLY_USED", + "CURLCLOSEPOLICY_LEAST_TRAFFIC", + "CURLCLOSEPOLICY_OLDEST", + "CURLCLOSEPOLICY_SLOWEST", + "CURLE_ABORTED_BY_CALLBACK", + "CURLE_BAD_CALLING_ORDER", + "CURLE_BAD_CONTENT_ENCODING", + "CURLE_BAD_FUNCTION_ARGUMENT", + "CURLE_BAD_PASSWORD_ENTERED", + "CURLE_COULDNT_CONNECT", + "CURLE_COULDNT_RESOLVE_HOST", + "CURLE_COULDNT_RESOLVE_PROXY", + "CURLE_FAILED_INIT", + "CURLE_FILESIZE_EXCEEDED", + "CURLE_FILE_COULDNT_READ_FILE", + "CURLE_FTP_ACCESS_DENIED", + "CURLE_FTP_BAD_DOWNLOAD_RESUME", + "CURLE_FTP_CANT_GET_HOST", + "CURLE_FTP_CANT_RECONNECT", + "CURLE_FTP_COULDNT_GET_SIZE", + "CURLE_FTP_COULDNT_RETR_FILE", + "CURLE_FTP_COULDNT_SET_ASCII", + "CURLE_FTP_COULDNT_SET_BINARY", + "CURLE_FTP_COULDNT_STOR_FILE", + "CURLE_FTP_COULDNT_USE_REST", + "CURLE_FTP_PORT_FAILED", + "CURLE_FTP_QUOTE_ERROR", + "CURLE_FTP_SSL_FAILED", + "CURLE_FTP_USER_PASSWORD_INCORRECT", + "CURLE_FTP_WEIRD_227_FORMAT", + "CURLE_FTP_WEIRD_PASS_REPLY", + "CURLE_FTP_WEIRD_PASV_REPLY", + "CURLE_FTP_WEIRD_SERVER_REPLY", + "CURLE_FTP_WEIRD_USER_REPLY", + "CURLE_FTP_WRITE_ERROR", + "CURLE_FUNCTION_NOT_FOUND", + "CURLE_GOT_NOTHING", + "CURLE_HTTP_NOT_FOUND", + "CURLE_HTTP_PORT_FAILED", + "CURLE_HTTP_POST_ERROR", + "CURLE_HTTP_RANGE_ERROR", + "CURLE_LDAP_CANNOT_BIND", + "CURLE_LDAP_INVALID_URL", + "CURLE_LDAP_SEARCH_FAILED", + "CURLE_LIBRARY_NOT_FOUND", + "CURLE_MALFORMAT_USER", + "CURLE_OBSOLETE", + "CURLE_OK", + "CURLE_OPERATION_TIMEOUTED", + "CURLE_OUT_OF_MEMORY", + "CURLE_PARTIAL_FILE", + "CURLE_PROXY", + "CURLE_READ_ERROR", + "CURLE_RECV_ERROR", + "CURLE_SEND_ERROR", + "CURLE_SHARE_IN_USE", + "CURLE_SSH", + "CURLE_SSL_CACERT", + "CURLE_SSL_CERTPROBLEM", + "CURLE_SSL_CIPHER", + "CURLE_SSL_CONNECT_ERROR", + "CURLE_SSL_ENGINE_NOTFOUND", + "CURLE_SSL_ENGINE_SETFAILED", + "CURLE_SSL_PEER_CERTIFICATE", + "CURLE_TELNET_OPTION_SYNTAX", + "CURLE_TOO_MANY_REDIRECTS", + "CURLE_UNKNOWN_TELNET_OPTION", + "CURLE_UNSUPPORTED_PROTOCOL", + "CURLE_URL_MALFORMAT", + "CURLE_URL_MALFORMAT_USER", + "CURLE_WEIRD_SERVER_REPLY", + "CURLE_WRITE_ERROR", + "CURLFTPAUTH_DEFAULT", + "CURLFTPAUTH_SSL", + "CURLFTPAUTH_TLS", + "CURLFTPMETHOD_DEFAULT", + "CURLFTPSSL_ALL", + "CURLFTPSSL_CONTROL", + "CURLFTPSSL_NONE", + "CURLFTPSSL_TRY", + "CURLFTP_CREATE_DIR", + "CURLFTP_CREATE_DIR_NONE", + "CURLFTP_CREATE_DIR_RETRY", + "CURLHEADER_SEPARATE", + "CURLHEADER_UNIFIED", + "CURLHSTS_ENABLE", + "CURLHSTS_READONLYFILE", + "CURLINFO_APPCONNECT_TIME_T", + "CURLINFO_CONNECT_TIME", + "CURLINFO_CONNECT_TIME_T", + "CURLINFO_CONTENT_LENGTH_DOWNLOAD", + "CURLINFO_CONTENT_LENGTH_DOWNLOAD_T", + "CURLINFO_CONTENT_LENGTH_UPLOAD", + "CURLINFO_CONTENT_LENGTH_UPLOAD_T", + "CURLINFO_CONTENT_TYPE", + "CURLINFO_EFFECTIVE_METHOD", + "CURLINFO_EFFECTIVE_URL", + "CURLINFO_FILETIME", + "CURLINFO_FILETIME_T", + "CURLINFO_HEADER_OUT", + "CURLINFO_HEADER_SIZE", + "CURLINFO_HTTP_CODE", + "CURLINFO_HTTP_VERSION", + "CURLINFO_LOCAL_IP", + "CURLINFO_LOCAL_PORT", + "CURLINFO_NAMELOOKUP_TIME", + "CURLINFO_NAMELOOKUP_TIME_T", + "CURLINFO_PRETRANSFER_TIME", + "CURLINFO_PRETRANSFER_TIME_T", + "CURLINFO_PRIMARY_IP", + "CURLINFO_PRIMARY_PORT", + "CURLINFO_PRIVATE", + "CURLINFO_PROTOCOL", + "CURLINFO_PROXY_ERROR", + "CURLINFO_PROXY_SSL_VERIFYRESULT", + "CURLINFO_REDIRECT_COUNT", + "CURLINFO_REDIRECT_TIME", + "CURLINFO_REDIRECT_TIME_T", + "CURLINFO_REDIRECT_URL", + "CURLINFO_REFERER", + "CURLINFO_REQUEST_SIZE", + "CURLINFO_RESPONSE_CODE", + "CURLINFO_RETRY_AFTER", + "CURLINFO_SCHEME", + "CURLINFO_SIZE_DOWNLOAD", + "CURLINFO_SIZE_DOWNLOAD_T", + "CURLINFO_SIZE_UPLOAD", + "CURLINFO_SIZE_UPLOAD_T", + "CURLINFO_SPEED_DOWNLOAD", + "CURLINFO_SPEED_DOWNLOAD_T", + "CURLINFO_SPEED_UPLOAD", + "CURLINFO_SPEED_UPLOAD_T", + "CURLINFO_SSL_VERIFYRESULT", + "CURLINFO_STARTTRANSFER_TIME", + "CURLINFO_STARTTRANSFER_TIME_T", + "CURLINFO_TOTAL_TIME", + "CURLINFO_TOTAL_TIME_T", + "CURLMOPT_CHUNK_LENGTH_PENALTY_SIZE", + "CURLMOPT_CONTENT_LENGTH_PENALTY_SIZE", + "CURLMOPT_MAXCONNECTS", + "CURLMOPT_MAX_CONCURRENT_STREAMS", + "CURLMOPT_MAX_HOST_CONNECTIONS", + "CURLMOPT_MAX_PIPELINE_LENGTH", + "CURLMOPT_MAX_TOTAL_CONNECTIONS", + "CURLMOPT_PIPELINING", + "CURLMOPT_PUSHFUNCTION", + "CURLMSG_DONE", + "CURLM_BAD_EASY_HANDLE", + "CURLM_BAD_HANDLE", + "CURLM_CALL_MULTI_PERFORM", + "CURLM_INTERNAL_ERROR", + "CURLM_OK", + "CURLM_OUT_OF_MEMORY", + "CURLOPT_ABSTRACT_UNIX_SOCKET", + "CURLOPT_ALTSVC", + "CURLOPT_ALTSVC_CTRL", + "CURLOPT_AUTOREFERER", + "CURLOPT_AWS_SIGV4", + "CURLOPT_BINARYTRANSFER", + "CURLOPT_BUFFERSIZE", + "CURLOPT_CAINFO", + "CURLOPT_CAINFO_BLOB", + "CURLOPT_CAPATH", + "CURLOPT_CERTINFO", + "CURLOPT_CLOSEPOLICY", + "CURLOPT_CONNECTTIMEOUT", + "CURLOPT_CONNECTTIMEOUT_MS", + "CURLOPT_CONNECT_ONLY", + "CURLOPT_CONNECT_TO", + "CURLOPT_COOKIE", + "CURLOPT_COOKIEFILE", + "CURLOPT_COOKIEJAR", + "CURLOPT_COOKIELIST", + "CURLOPT_COOKIESESSION", + "CURLOPT_CRLF", + "CURLOPT_CUSTOMREQUEST", + "CURLOPT_DEFAULT_PROTOCOL", + "CURLOPT_DISALLOW_USERNAME_IN_URL", + "CURLOPT_DNS_CACHE_TIMEOUT", + "CURLOPT_DNS_INTERFACE", + "CURLOPT_DNS_LOCAL_IP4", + "CURLOPT_DNS_LOCAL_IP6", + "CURLOPT_DNS_SHUFFLE_ADDRESSES", + "CURLOPT_DNS_USE_GLOBAL_CACHE", + "CURLOPT_DOH_SSL_VERIFYHOST", + "CURLOPT_DOH_SSL_VERIFYPEER", + "CURLOPT_DOH_SSL_VERIFYSTATUS", + "CURLOPT_DOH_URL", + "CURLOPT_EGDSOCKET", + "CURLOPT_ENCODING", + "CURLOPT_EXPECT_100_TIMEOUT_MS", + "CURLOPT_FAILONERROR", + "CURLOPT_FILE", + "CURLOPT_FILETIME", + "CURLOPT_FOLLOWLOCATION", + "CURLOPT_FORBID_REUSE", + "CURLOPT_FRESH_CONNECT", + "CURLOPT_FTPAPPEND", + "CURLOPT_FTPASCII", + "CURLOPT_FTPLISTONLY", + "CURLOPT_FTPPORT", + "CURLOPT_FTPSSLAUTH", + "CURLOPT_FTP_CREATE_MISSING_DIRS", + "CURLOPT_FTP_FILEMETHOD", + "CURLOPT_FTP_SSL", + "CURLOPT_FTP_USE_EPRT", + "CURLOPT_FTP_USE_EPSV", + "CURLOPT_HAPPY_EYEBALLS_TIMEOUT_MS", + "CURLOPT_HAPROXYPROTOCOL", + "CURLOPT_HEADER", + "CURLOPT_HEADERFUNCTION", + "CURLOPT_HEADEROPT", + "CURLOPT_HSTS", + "CURLOPT_HSTS_CTRL", + "CURLOPT_HTTP09_ALLOWED", + "CURLOPT_HTTP200ALIASES", + "CURLOPT_HTTPAUTH", + "CURLOPT_HTTPGET", + "CURLOPT_HTTPHEADER", + "CURLOPT_HTTPPROXYTUNNEL", + "CURLOPT_HTTP_VERSION", + "CURLOPT_INFILE", + "CURLOPT_INFILESIZE", + "CURLOPT_INTERFACE", + "CURLOPT_IPRESOLVE", + "CURLOPT_ISSUERCERT_BLOB", + "CURLOPT_KEEP_SENDING_ON_ERROR", + "CURLOPT_KEYPASSWD", + "CURLOPT_KRB4LEVEL", + "CURLOPT_LOGIN_OPTIONS", + "CURLOPT_LOW_SPEED_LIMIT", + "CURLOPT_LOW_SPEED_TIME", + "CURLOPT_MAIL_RCPT_ALLLOWFAILS", + "CURLOPT_MAXAGE_CONN", + "CURLOPT_MAXCONNECTS", + "CURLOPT_MAXFILESIZE_LARGE", + "CURLOPT_MAXLIFETIME_CONN", + "CURLOPT_MAXREDIRS", + "CURLOPT_MAX_RECV_SPEED_LARGE", + "CURLOPT_MAX_SEND_SPEED_LARGE", + "CURLOPT_MUTE", + "CURLOPT_NETRC", + "CURLOPT_NOBODY", + "CURLOPT_NOPROGRESS", + "CURLOPT_NOSIGNAL", + "CURLOPT_PASSWDFUNCTION", + "CURLOPT_PATH_AS_IS", + "CURLOPT_PINNEDPUBLICKEY", + "CURLOPT_PIPEWAIT", + "CURLOPT_PORT", + "CURLOPT_POST", + "CURLOPT_POSTFIELDS", + "CURLOPT_POSTQUOTE", + "CURLOPT_POSTREDIR", + "CURLOPT_PRE_PROXY", + "CURLOPT_PRIVATE", + "CURLOPT_PROGRESSFUNCTION", + "CURLOPT_PROTOCOLS", + "CURLOPT_PROXY", + "CURLOPT_PROXYAUTH", + "CURLOPT_PROXYHEADER", + "CURLOPT_PROXYPORT", + "CURLOPT_PROXYTYPE", + "CURLOPT_PROXYUSERPWD", + "CURLOPT_PROXY_CAINFO", + "CURLOPT_PROXY_CAINFO_BLOB", + "CURLOPT_PROXY_CAPATH", + "CURLOPT_PROXY_CRLFILE", + "CURLOPT_PROXY_ISSUERCERT", + "CURLOPT_PROXY_ISSUERCERT_BLOB", + "CURLOPT_PROXY_KEYPASSWD", + "CURLOPT_PROXY_PINNEDPUBLICKEY", + "CURLOPT_PROXY_SERVICE_NAME", + "CURLOPT_PROXY_SSLCERT", + "CURLOPT_PROXY_SSLCERTTYPE", + "CURLOPT_PROXY_SSLCERT_BLOB", + "CURLOPT_PROXY_SSLKEY", + "CURLOPT_PROXY_SSLKEYTYPE", + "CURLOPT_PROXY_SSLKEY_BLOB", + "CURLOPT_PROXY_SSLVERSION", + "CURLOPT_PROXY_SSL_CIPHER_LIST", + "CURLOPT_PROXY_SSL_OPTIONS", + "CURLOPT_PROXY_SSL_VERIFYHOST", + "CURLOPT_PROXY_SSL_VERIFYPEER", + "CURLOPT_PROXY_TLS13_CIPHERS", + "CURLOPT_PROXY_TLSAUTH_PASSWORD", + "CURLOPT_PROXY_TLSAUTH_TYPE", + "CURLOPT_PROXY_TLSAUTH_USERNAME", + "CURLOPT_PUT", + "CURLOPT_QUOTE", + "CURLOPT_RANDOM_FILE", + "CURLOPT_RANGE", + "CURLOPT_READFUNCTION", + "CURLOPT_REDIR_PROTOCOLS", + "CURLOPT_REFERER", + "CURLOPT_REQUEST_TARGET", + "CURLOPT_RESOLVE", + "CURLOPT_RESUME_FROM", + "CURLOPT_RETURNTRANSFER", + "CURLOPT_SAFE_UPLOAD", + "CURLOPT_SASL_AUTHZID", + "CURLOPT_SASL_IR", + "CURLOPT_SERVICE_NAME", + "CURLOPT_SHARE", + "CURLOPT_SOCKS5_AUTH", + "CURLOPT_SSH_AUTH_TYPES", + "CURLOPT_SSH_COMPRESSION", + "CURLOPT_SSH_HOST_PUBLIC_KEY_MD5", + "CURLOPT_SSH_HOST_PUBLIC_KEY_SHA256", + "CURLOPT_SSH_PRIVATE_KEYFILE", + "CURLOPT_SSH_PUBLIC_KEYFILE", + "CURLOPT_SSLCERT", + "CURLOPT_SSLCERTPASSWD", + "CURLOPT_SSLCERTTYPE", + "CURLOPT_SSLCERT_BLOB", + "CURLOPT_SSLENGINE", + "CURLOPT_SSLENGINE_DEFAULT", + "CURLOPT_SSLKEY", + "CURLOPT_SSLKEYPASSWD", + "CURLOPT_SSLKEYTYPE", + "CURLOPT_SSLKEY_BLOB", + "CURLOPT_SSLVERSION", + "CURLOPT_SSL_CIPHER_LIST", + "CURLOPT_SSL_EC_CURVES", + "CURLOPT_SSL_ENABLE_ALPN", + "CURLOPT_SSL_ENABLE_NPN", + "CURLOPT_SSL_FALSESTART", + "CURLOPT_SSL_OPTIONS", + "CURLOPT_SSL_VERIFYHOST", + "CURLOPT_SSL_VERIFYPEER", + "CURLOPT_SSL_VERIFYSTATUS", + "CURLOPT_STDERR", + "CURLOPT_STREAM_WEIGHT", + "CURLOPT_SUPPRESS_CONNECT_HEADERS", + "CURLOPT_TCP_FASTOPEN", + "CURLOPT_TCP_KEEPALIVE", + "CURLOPT_TCP_KEEPIDLE", + "CURLOPT_TCP_KEEPINTVL", + "CURLOPT_TCP_NODELAY", + "CURLOPT_TFTP_NO_OPTIONS", + "CURLOPT_TIMECONDITION", + "CURLOPT_TIMEOUT", + "CURLOPT_TIMEOUT_MS", + "CURLOPT_TIMEVALUE", + "CURLOPT_TIMEVALUE_LARGE", + "CURLOPT_TLS13_CIPHERS", + "CURLOPT_TRANSFERTEXT", + "CURLOPT_UNIX_SOCKET_PATH", + "CURLOPT_UNRESTRICTED_AUTH", + "CURLOPT_UPKEEP_INTERVAL_MS", + "CURLOPT_UPLOAD", + "CURLOPT_UPLOAD_BUFFERSIZE", + "CURLOPT_URL", + "CURLOPT_USERAGENT", + "CURLOPT_USERNAME", + "CURLOPT_USERPWD", + "CURLOPT_VERBOSE", + "CURLOPT_WRITEFUNCTION", + "CURLOPT_WRITEHEADER", + "CURLOPT_XFERINFOFUNCTION", + "CURLOPT_XOAUTH2_BEARER", + "CURLPAUSE_ALL", + "CURLPAUSE_CONT", + "CURLPAUSE_RECV", + "CURLPAUSE_RECV_CONT", + "CURLPAUSE_SEND", + "CURLPAUSE_SEND_CONT", + "CURLPIPE_HTTP1", + "CURLPIPE_MULTIPLEX", + "CURLPIPE_NOTHING", + "CURLPROTO_MQTT", + "CURLPROTO_SMB", + "CURLPROTO_SMBS", + "CURLPROXY_HTTP", + "CURLPROXY_HTTPS", + "CURLPROXY_HTTP_1_0", + "CURLPROXY_SOCKS4", + "CURLPROXY_SOCKS4A", + "CURLPROXY_SOCKS5", + "CURLPROXY_SOCKS5_HOSTNAME", + "CURLPX_BAD_ADDRESS_TYPE", + "CURLPX_BAD_VERSION", + "CURLPX_CLOSED", + "CURLPX_GSSAPI", + "CURLPX_GSSAPI_PERMSG", + "CURLPX_GSSAPI_PROTECTION", + "CURLPX_IDENTD", + "CURLPX_IDENTD_DIFFER", + "CURLPX_LONG_HOSTNAME", + "CURLPX_LONG_PASSWD", + "CURLPX_LONG_USER", + "CURLPX_NO_AUTH", + "CURLPX_OK", + "CURLPX_RECV_ADDRESS", + "CURLPX_RECV_AUTH", + "CURLPX_RECV_CONNECT", + "CURLPX_RECV_REQACK", + "CURLPX_REPLY_ADDRESS_TYPE_NOT_SUPPORTED", + "CURLPX_REPLY_COMMAND_NOT_SUPPORTED", + "CURLPX_REPLY_CONNECTION_REFUSED", + "CURLPX_REPLY_GENERAL_SERVER_FAILURE", + "CURLPX_REPLY_HOST_UNREACHABLE", + "CURLPX_REPLY_NETWORK_UNREACHABLE", + "CURLPX_REPLY_NOT_ALLOWED", + "CURLPX_REPLY_TTL_EXPIRED", + "CURLPX_REPLY_UNASSIGNED", + "CURLPX_REQUEST_FAILED", + "CURLPX_RESOLVE_HOST", + "CURLPX_SEND_AUTH", + "CURLPX_SEND_CONNECT", + "CURLPX_SEND_REQUEST", + "CURLPX_UNKNOWN_FAIL", + "CURLPX_UNKNOWN_MODE", + "CURLPX_USER_REJECTED", + "CURLSHOPT_SHARE", + "CURLSHOPT_UNSHARE", + "CURLSSH_AUTH_AGENT", + "CURLSSH_AUTH_ANY", + "CURLSSH_AUTH_DEFAULT", + "CURLSSH_AUTH_GSSAPI", + "CURLSSH_AUTH_HOST", + "CURLSSH_AUTH_KEYBOARD", + "CURLSSH_AUTH_NONE", + "CURLSSH_AUTH_PASSWORD", + "CURLSSH_AUTH_PUBLICKEY", + "CURLSSLOPT_ALLOW_BEAST", + "CURLSSLOPT_AUTO_CLIENT_CERT", + "CURLSSLOPT_NATIVE_CA", + "CURLSSLOPT_NO_PARTIALCHAIN", + "CURLSSLOPT_NO_REVOKE", + "CURLSSLOPT_REVOKE_BEST_EFFORT", + "CURLVERSION_NOW", + "CURL_HTTP_VERSION_1_0", + "CURL_HTTP_VERSION_1_1", + "CURL_HTTP_VERSION_2", + "CURL_HTTP_VERSION_2TLS", + "CURL_HTTP_VERSION_2_0", + "CURL_HTTP_VERSION_2_PRIOR_KNOWLEDGE", + "CURL_HTTP_VERSION_NONE", + "CURL_LOCK_DATA_CONNECT", + "CURL_LOCK_DATA_COOKIE", + "CURL_LOCK_DATA_DNS", + "CURL_LOCK_DATA_PSL", + "CURL_LOCK_DATA_SSL_SESSION", + "CURL_MAX_READ_SIZE", + "CURL_NETRC_IGNORED", + "CURL_NETRC_OPTIONAL", + "CURL_NETRC_REQUIRED", + "CURL_PUSH_DENY", + "CURL_PUSH_OK", + "CURL_REDIR_POST_301", + "CURL_REDIR_POST_302", + "CURL_REDIR_POST_303", + "CURL_REDIR_POST_ALL", + "CURL_SSLVERSION_DEFAULT", + "CURL_SSLVERSION_MAX_DEFAULT", + "CURL_SSLVERSION_MAX_NONE", + "CURL_SSLVERSION_MAX_TLSv1_0", + "CURL_SSLVERSION_MAX_TLSv1_1", + "CURL_SSLVERSION_MAX_TLSv1_2", + "CURL_SSLVERSION_MAX_TLSv1_3", + "CURL_SSLVERSION_SSLv2", + "CURL_SSLVERSION_SSLv3", + "CURL_SSLVERSION_TLSv1", + "CURL_SSLVERSION_TLSv1_0", + "CURL_SSLVERSION_TLSv1_1", + "CURL_SSLVERSION_TLSv1_2", + "CURL_SSLVERSION_TLSv1_3", + "CURL_TIMECOND_IFMODSINCE", + "CURL_TIMECOND_IFUNMODSINCE", + "CURL_TIMECOND_LASTMOD", + "CURL_TIMECOND_NONE", + "CURL_VERSION_ALTSVC", + "CURL_VERSION_ASYNCHDNS", + "CURL_VERSION_BROTLI", + "CURL_VERSION_CONV", + "CURL_VERSION_CURLDEBUG", + "CURL_VERSION_DEBUG", + "CURL_VERSION_GSASL", + "CURL_VERSION_GSSAPI", + "CURL_VERSION_GSSNEGOTIATE", + "CURL_VERSION_HSTS", + "CURL_VERSION_HTTP2", + "CURL_VERSION_HTTP3", + "CURL_VERSION_HTTPS_PROXY", + "CURL_VERSION_IDN", + "CURL_VERSION_IPV6", + "CURL_VERSION_KERBEROS4", + "CURL_VERSION_KERBEROS5", + "CURL_VERSION_LARGEFILE", + "CURL_VERSION_LIBZ", + "CURL_VERSION_MULTI_SSL", + "CURL_VERSION_NTLM", + "CURL_VERSION_NTLM_WB", + "CURL_VERSION_PSL", + "CURL_VERSION_SPNEGO", + "CURL_VERSION_SSL", + "CURL_VERSION_SSPI", + "CURL_VERSION_TLSAUTH_SRP", + "CURL_VERSION_UNICODE", + "CURL_VERSION_UNIX_SOCKETS", + "CURL_VERSION_ZSTD", + "CURL_WRAPPERS_ENABLED", + "CURRENCY_SYMBOL", + "CYRUS_CALLBACK_NOLITERAL", + "CYRUS_CALLBACK_NUMBERED", + "CYRUS_CONN_INITIALRESPONSE", + "CYRUS_CONN_NONSYNCLITERAL", + "DATAINCONSISTENCY", + "DATE_ATOM", + "DATE_COOKIE", + "DATE_ISO8601", + "DATE_RFC822", + "DATE_RFC850", + "DATE_RFC1036", + "DATE_RFC1123", + "DATE_RFC2822", + "DATE_RFC3339", + "DATE_RFC3339_EXTENDED", + "DATE_RSS", + "DATE_W3C", + "DAY_1", + "DAY_2", + "DAY_3", + "DAY_4", + "DAY_5", + "DAY_6", + "DAY_7", + "DB2_AUTOCOMMIT_OFF", + "DB2_AUTOCOMMIT_ON", + "DB2_BINARY", + "DB2_CASE_LOWER", + "DB2_CASE_NATURAL", + "DB2_CASE_UPPER", + "DB2_CHAR", + "DB2_CONVERT", + "DB2_DEFERRED_PREPARE_OFF", + "DB2_DEFERRED_PREPARE_ON", + "DB2_DOUBLE", + "DB2_FORWARD_ONLY", + "DB2_LONG", + "DB2_PARAM_FILE", + "DB2_PARAM_IN", + "DB2_PARAM_INOUT", + "DB2_PARAM_OUT", + "DB2_PASSTHRU", + "DB2_SCROLLABLE", + "DBASE_RDONLY", + "DBASE_RDWR", + "DBASE_TYPE_DBASE", + "DBASE_TYPE_FOXPRO", + "DBASE_VERSION", + "DBA_LMDB_USE_SUB_DIR", + "DBA_LMDB_NO_SUB_DIR", + "DBPLUS_ERR_CLOSE", + "DBPLUS_ERR_CORRUPT_TUPLE", + "DBPLUS_ERR_CRC", + "DBPLUS_ERR_CREATE", + "DBPLUS_ERR_DBPARSE", + "DBPLUS_ERR_DBPREEXIT", + "DBPLUS_ERR_DBRUNERR", + "DBPLUS_ERR_DUPLICATE", + "DBPLUS_ERR_EMPTY", + "DBPLUS_ERR_EOSCAN", + "DBPLUS_ERR_FIFO", + "DBPLUS_ERR_LENGTH", + "DBPLUS_ERR_LOCKED", + "DBPLUS_ERR_LSEEK", + "DBPLUS_ERR_MAGIC", + "DBPLUS_ERR_MALLOC", + "DBPLUS_ERR_NIDX", + "DBPLUS_ERR_NOERR", + "DBPLUS_ERR_NOLOCK", + "DBPLUS_ERR_NUSERS", + "DBPLUS_ERR_ONTRAP", + "DBPLUS_ERR_OPEN", + "DBPLUS_ERR_PANIC", + "DBPLUS_ERR_PERM", + "DBPLUS_ERR_PGSIZE", + "DBPLUS_ERR_PIPE", + "DBPLUS_ERR_PREEXIT", + "DBPLUS_ERR_PREPROC", + "DBPLUS_ERR_READ", + "DBPLUS_ERR_RESTRICTED", + "DBPLUS_ERR_TCL", + "DBPLUS_ERR_UNKNOWN", + "DBPLUS_ERR_USER", + "DBPLUS_ERR_VERSION", + "DBPLUS_ERR_WAIT", + "DBPLUS_ERR_WARNING0", + "DBPLUS_ERR_WLOCKED", + "DBPLUS_ERR_WOPEN", + "DBPLUS_ERR_WRITE", + "DBX_CMP_ASC", + "DBX_CMP_DESC", + "DBX_CMP_NATIVE", + "DBX_CMP_NUMBER", + "DBX_CMP_TEXT", + "DBX_COLNAMES_LOWERCASE", + "DBX_COLNAMES_UNCHANGED", + "DBX_COLNAMES_UPPERCASE", + "DBX_FBSQL", + "DBX_MSSQL", + "DBX_MYSQL", + "DBX_OCI8", + "DBX_ODBC", + "DBX_PERSISTENT", + "DBX_PGSQL", + "DBX_RESULT_ASSOC", + "DBX_RESULT_INDEX", + "DBX_RESULT_INFO", + "DBX_RESULT_UNBUFFERED", + "DBX_SQLITE", + "DBX_SYBASECT", + "DEBUG_BACKTRACE_IGNORE_ARGS", + "DEBUG_BACKTRACE_PROVIDE_OBJECT", + "DECIMAL_POINT", + "DELETED_EVENT", + "DIRECTORY_SEPARATOR", + "DISP_E_BADINDEX", + "DISP_E_DIVBYZERO", + "DISP_E_OVERFLOW", + "DISP_E_PARAMNOTFOUND", + "DNS_A", + "DNS_AAAA", + "DNS_ALL", + "DNS_ANY", + "DNS_CAA", + "DNS_CNAME", + "DNS_HINFO", + "DNS_MX", + "DNS_NS", + "DNS_PTR", + "DNS_SOA", + "DNS_TXT", + "DOMSTRING_SIZE_ERR", + "DOM_HIERARCHY_REQUEST_ERR", + "DOM_INDEX_SIZE_ERR", + "DOM_INUSE_ATTRIBUTE_ERR", + "DOM_INVALID_ACCESS_ERR", + "DOM_INVALID_CHARACTER_ERR", + "DOM_INVALID_MODIFICATION_ERR", + "DOM_INVALID_STATE_ERR", + "DOM_NAMESPACE_ERR", + "DOM_NOT_FOUND_ERR", + "DOM_NOT_SUPPORTED_ERR", + "DOM_NO_DATA_ALLOWED_ERR", + "DOM_NO_MODIFICATION_ALLOWED_ERR", + "DOM_PHP_ERR", + "DOM_SYNTAX_ERR", + "DOM_VALIDATION_ERR", + "DOM_WRONG_DOCUMENT_ERR", + "D_FMT", + "D_T_FMT", + "EIO_DT_BLK", + "EIO_DT_CHR", + "EIO_DT_CMP", + "EIO_DT_DIR", + "EIO_DT_DOOR", + "EIO_DT_FIFO", + "EIO_DT_LNK", + "EIO_DT_MAX", + "EIO_DT_MPB", + "EIO_DT_MPC", + "EIO_DT_NAM", + "EIO_DT_NWK", + "EIO_DT_REG", + "EIO_DT_SOCK", + "EIO_DT_UNKNOWN", + "EIO_DT_WHT", + "EIO_FALLOC_FL_KEEP_SIZE", + "EIO_O_APPEND", + "EIO_O_CREAT", + "EIO_O_EXCL", + "EIO_O_FSYNC", + "EIO_O_NONBLOCK", + "EIO_O_RDONLY", + "EIO_O_RDWR", + "EIO_O_TRUNC", + "EIO_O_WRONLY", + "EIO_PRI_DEFAULT", + "EIO_PRI_MAX", + "EIO_PRI_MIN", + "EIO_READDIR_DENTS", + "EIO_READDIR_DIRS_FIRST", + "EIO_READDIR_FOUND_UNKNOWN", + "EIO_READDIR_STAT_ORDER", + "EIO_SEEK_CUR", + "EIO_SEEK_END", + "EIO_SEEK_SET", + "EIO_SYNC_FILE_RANGE_WAIT_AFTER", + "EIO_SYNC_FILE_RANGE_WAIT_BEFORE", + "EIO_SYNC_FILE_RANGE_WRITE", + "EIO_S_IFBLK", + "EIO_S_IFCHR", + "EIO_S_IFIFO", + "EIO_S_IFREG", + "EIO_S_IFSOCK", + "EIO_S_IRGRP", + "EIO_S_IROTH", + "EIO_S_IRUSR", + "EIO_S_IWGRP", + "EIO_S_IWOTH", + "EIO_S_IWUSR", + "EIO_S_IXGRP", + "EIO_S_IXOTH", + "EIO_S_IXUSR", + "ENC7BIT", + "ENC8BIT", + "ENCBASE64", + "ENCBINARY", + "ENCHANT_ISPELL", + "ENCHANT_MYSPELL", + "ENCOTHER", + "ENCQUOTEDPRINTABLE", + "ENT_COMPAT", + "ENT_DISALLOWED", + "ENT_HTML5", + "ENT_HTML401", + "ENT_IGNORE", + "ENT_NOQUOTES", + "ENT_QUOTES", + "ENT_SUBSTITUTE", + "ENT_XHTML", + "ENT_XML1", + "EPHEMERAL", + "EPHEMERALONLOCALSESSION", + "ERA", + "ERA_D_FMT", + "ERA_D_T_FMT", + "ERA_T_FMT", + "ERA_YEAR", + "ERROR_TRACE", + "EVLOOP_NONBLOCK", + "EVLOOP_ONCE", + "EV_PERSIST", + "EV_READ", + "EV_SIGNAL", + "EV_TIMEOUT", + "EV_WRITE", + "EXIF_USE_MBSTRING", + "EXPIRED_SESSION_STATE", + "EXP_EOF", + "EXP_EXACT", + "EXP_FULLBUFFER", + "EXP_GLOB", + "EXP_REGEXP", + "EXP_TIMEOUT", + "EXTR_IF_EXISTS", + "EXTR_OVERWRITE", + "EXTR_PREFIX_ALL", + "EXTR_PREFIX_IF_EXISTS", + "EXTR_PREFIX_INVALID", + "EXTR_PREFIX_SAME", + "EXTR_REFS", + "EXTR_SKIP", + "FAMAcknowledge", + "FAMChanged", + "FAMCreated", + "FAMDeleted", + "FAMEndExist", + "FAMExists", + "FAMMoved", + "FAMStartExecuting", + "FAMStopExecuting", + "FANN_COS", + "FANN_COS_SYMMETRIC", + "FANN_ELLIOT", + "FANN_ELLIOT_SYMMETRIC", + "FANN_ERRORFUNC_LINEAR", + "FANN_ERRORFUNC_TANH", + "FANN_E_CANT_ALLOCATE_MEM", + "FANN_E_CANT_OPEN_CONFIG_R", + "FANN_E_CANT_OPEN_CONFIG_W", + "FANN_E_CANT_OPEN_TD_R", + "FANN_E_CANT_OPEN_TD_W", + "FANN_E_CANT_READ_CONFIG", + "FANN_E_CANT_READ_CONNECTIONS", + "FANN_E_CANT_READ_NEURON", + "FANN_E_CANT_READ_TD", + "FANN_E_CANT_TRAIN_ACTIVATION", + "FANN_E_CANT_USE_ACTIVATION", + "FANN_E_CANT_USE_TRAIN_ALG", + "FANN_E_INDEX_OUT_OF_BOUND", + "FANN_E_INPUT_NO_MATCH", + "FANN_E_NO_ERROR", + "FANN_E_OUTPUT_NO_MATCH", + "FANN_E_SCALE_NOT_PRESENT", + "FANN_E_TRAIN_DATA_MISMATCH", + "FANN_E_TRAIN_DATA_SUBSET", + "FANN_E_WRONG_CONFIG_VERSION", + "FANN_E_WRONG_NUM_CONNECTIONS", + "FANN_GAUSSIAN", + "FANN_GAUSSIAN_STEPWISE", + "FANN_GAUSSIAN_SYMMETRIC", + "FANN_LINEAR", + "FANN_LINEAR_PIECE", + "FANN_LINEAR_PIECE_SYMMETRIC", + "FANN_NETTYPE_LAYER", + "FANN_NETTYPE_SHORTCUT", + "FANN_SIGMOID", + "FANN_SIGMOID_STEPWISE", + "FANN_SIGMOID_SYMMETRIC", + "FANN_SIGMOID_SYMMETRIC_STEPWISE", + "FANN_SIN", + "FANN_SIN_SYMMETRIC", + "FANN_STOPFUNC_BIT", + "FANN_STOPFUNC_MSE", + "FANN_THRESHOLD", + "FANN_THRESHOLD_SYMMETRIC", + "FANN_TRAIN_BATCH", + "FANN_TRAIN_INCREMENTAL", + "FANN_TRAIN_QUICKPROP", + "FANN_TRAIN_RPROP", + "FANN_TRAIN_SARPROP", + "FBSQL_ASSOC", + "FBSQL_BOTH", + "FBSQL_ISO_READ_COMMITTED", + "FBSQL_ISO_READ_UNCOMMITTED", + "FBSQL_ISO_REPEATABLE_READ", + "FBSQL_ISO_SERIALIZABLE", + "FBSQL_ISO_VERSIONED", + "FBSQL_LOB_DIRECT", + "FBSQL_LOB_HANDLE", + "FBSQL_LOCK_DEFERRED", + "FBSQL_LOCK_OPTIMISTIC", + "FBSQL_LOCK_PESSIMISTIC", + "FBSQL_NOEXEC", + "FBSQL_NUM", + "FBSQL_RUNNING", + "FBSQL_STARTING", + "FBSQL_STOPPED", + "FBSQL_STOPPING", + "FBSQL_UNKNOWN", + "FDFAA", + "FDFAction", + "FDFAP", + "FDFAPRef", + "FDFAS", + "FDFCalculate", + "FDFClearFf", + "FDFClrF", + "FDFDown", + "FDFDownAP", + "FDFEnter", + "FDFExit", + "FDFFf", + "FDFFile", + "FDFFlags", + "FDFFormat", + "FDFID", + "FDFIF", + "FDFKeystroke", + "FDFNormalAP", + "FDFRolloverAP", + "FDFSetF", + "FDFSetFf", + "FDFStatus", + "FDFUp", + "FDFValidate", + "FDFValue", + "FILEINFO_COMPRESS", + "FILEINFO_CONTINUE", + "FILEINFO_DEVICES", + "FILEINFO_EXTENSION", + "FILEINFO_MIME", + "FILEINFO_MIME_ENCODING", + "FILEINFO_MIME_TYPE", + "FILEINFO_NONE", + "FILEINFO_PRESERVE_ATIME", + "FILEINFO_RAW", + "FILEINFO_SYMLINK", + "FILE_APPEND", + "FILE_BINARY", + "FILE_IGNORE_NEW_LINES", + "FILE_NO_DEFAULT_CONTEXT", + "FILE_SKIP_EMPTY_LINES", + "FILE_TEXT", + "FILE_USE_INCLUDE_PATH", + "FILTER_CALLBACK", + "FILTER_DEFAULT", + "FILTER_FLAG_ALLOW_FRACTION", + "FILTER_FLAG_ALLOW_HEX", + "FILTER_FLAG_ALLOW_OCTAL", + "FILTER_FLAG_ALLOW_SCIENTIFIC", + "FILTER_FLAG_ALLOW_THOUSAND", + "FILTER_FLAG_EMAIL_UNICODE", + "FILTER_FLAG_EMPTY_STRING_NULL", + "FILTER_FLAG_ENCODE_AMP", + "FILTER_FLAG_ENCODE_HIGH", + "FILTER_FLAG_ENCODE_LOW", + "FILTER_FLAG_GLOBAL_RANGE", + "FILTER_FLAG_HOSTNAME", + "FILTER_FLAG_HOST_REQUIRED", + "FILTER_FLAG_IPV4", + "FILTER_FLAG_IPV6", + "FILTER_FLAG_NONE", + "FILTER_FLAG_NO_ENCODE_QUOTES", + "FILTER_FLAG_NO_PRIV_RANGE", + "FILTER_FLAG_NO_RES_RANGE", + "FILTER_FLAG_PATH_REQUIRED", + "FILTER_FLAG_QUERY_REQUIRED", + "FILTER_FLAG_SCHEME_REQUIRED", + "FILTER_FLAG_STRIP_BACKTICK", + "FILTER_FLAG_STRIP_HIGH", + "FILTER_FLAG_STRIP_LOW", + "FILTER_FORCE_ARRAY", + "FILTER_NULL_ON_FAILURE", + "FILTER_REQUIRE_ARRAY", + "FILTER_REQUIRE_SCALAR", + "FILTER_SANITIZE_ADD_SLASHES", + "FILTER_SANITIZE_EMAIL", + "FILTER_SANITIZE_ENCODED", + "FILTER_SANITIZE_MAGIC_QUOTES", + "FILTER_SANITIZE_NUMBER_FLOAT", + "FILTER_SANITIZE_NUMBER_INT", + "FILTER_SANITIZE_SPECIAL_CHARS", + "FILTER_SANITIZE_STRING", + "FILTER_SANITIZE_STRIPPED", + "FILTER_SANITIZE_URL", + "FILTER_UNSAFE_RAW", + "FILTER_VALIDATE_BOOLEAN", + "FILTER_VALIDATE_DOMAIN", + "FILTER_VALIDATE_EMAIL", + "FILTER_VALIDATE_FLOAT", + "FILTER_VALIDATE_INT", + "FILTER_VALIDATE_IP", + "FILTER_VALIDATE_MAC", + "FILTER_VALIDATE_REGEXP", + "FILTER_VALIDATE_URL", + "FNM_CASEFOLD", + "FNM_NOESCAPE", + "FNM_PATHNAME", + "FNM_PERIOD", + "FORCE_DEFLATE", + "FORCE_GZIP", + "FPE_FLTDIV", + "FPE_FLTINV", + "FPE_FLTOVF", + "FPE_FLTRES", + "FPE_FLTSUB", + "FPE_FLTUND", + "FPE_INTDIV", + "FPE_INTOVF", + "FRAC_DIGITS", + "FRIBIDI_AUTO", + "FRIBIDI_CHARSET_8859_6", + "FRIBIDI_CHARSET_8859_8", + "FRIBIDI_CHARSET_CAP_RTL", + "FRIBIDI_CHARSET_CP1255", + "FRIBIDI_CHARSET_CP1256", + "FRIBIDI_CHARSET_ISIRI_3342", + "FRIBIDI_CHARSET_UTF8", + "FRIBIDI_LTR", + "FRIBIDI_RTL", + "FTP_ASCII", + "FTP_AUTORESUME", + "FTP_AUTOSEEK", + "FTP_BINARY", + "FTP_FAILED", + "FTP_FINISHED", + "FTP_IMAGE", + "FTP_MOREDATA", + "FTP_TEXT", + "FTP_TIMEOUT_SEC", + "FTP_USEPASVADDRESS", + "FT_INTERNAL", + "FT_NOT", + "FT_PEEK", + "FT_PREFETCHTEXT", + "FT_UID", + "FUNCTION_TRACE", + "F_DUPFD", + "F_GETFD", + "F_GETFL", + "F_GETLK", + "F_GETOWN", + "F_RDLCK", + "F_SETFL", + "F_SETLK", + "F_SETLKW", + "F_SETOWN", + "F_UNLCK", + "F_WRLCK", + "GD_BUNDLED", + "GD_EXTRA_VERSION", + "GD_MAJOR_VERSION", + "GD_MINOR_VERSION", + "GD_RELEASE_VERSION", + "GD_VERSION", + "GEARMAN_ARGS_BUFFER_SIZE", + "GEARMAN_CLIENT_FREE_TASKS", + "GEARMAN_CLIENT_GENERATE_UNIQUE", + "GEARMAN_CLIENT_NON_BLOCKING", + "GEARMAN_CLIENT_UNBUFFERED_RESULT", + "GEARMAN_COULD_NOT_CONNECT", + "GEARMAN_DEFAULT_SOCKET_RECV_SIZE", + "GEARMAN_DEFAULT_SOCKET_SEND_SIZE", + "GEARMAN_DEFAULT_SOCKET_TIMEOUT", + "GEARMAN_DEFAULT_TCP_HOST", + "GEARMAN_DEFAULT_TCP_PORT", + "GEARMAN_ECHO_DATA_CORRUPTION", + "GEARMAN_ERRNO", + "GEARMAN_GETADDRINFO", + "GEARMAN_INVALID_FUNCTION_NAME", + "GEARMAN_INVALID_WORKER_FUNCTION", + "GEARMAN_IO_WAIT", + "GEARMAN_JOB_HANDLE_SIZE", + "GEARMAN_LOST_CONNECTION", + "GEARMAN_MAX_COMMAND_ARGS", + "GEARMAN_MAX_ERROR_SIZE", + "GEARMAN_MEMORY_ALLOCATION_FAILURE", + "GEARMAN_NEED_WORKLOAD_FN", + "GEARMAN_NO_ACTIVE_FDS", + "GEARMAN_NO_JOBS", + "GEARMAN_NO_REGISTERED_FUNCTIONS", + "GEARMAN_NO_SERVERS", + "GEARMAN_OPTION_SIZE", + "GEARMAN_PACKET_HEADER_SIZE", + "GEARMAN_PAUSE", + "GEARMAN_RECV_BUFFER_SIZE", + "GEARMAN_SEND_BUFFER_SIZE", + "GEARMAN_SEND_BUFFER_TOO_SMALL", + "GEARMAN_SERVER_ERROR", + "GEARMAN_SUCCESS", + "GEARMAN_TIMEOUT", + "GEARMAN_UNEXPECTED_PACKET", + "GEARMAN_UNIQUE_SIZE", + "GEARMAN_UNKNOWN_STATE", + "GEARMAN_WORKER_GRAB_UNIQ", + "GEARMAN_WORKER_NON_BLOCKING", + "GEARMAN_WORKER_WAIT_TIMEOUT", + "GEARMAN_WORK_DATA", + "GEARMAN_WORK_EXCEPTION", + "GEARMAN_WORK_FAIL", + "GEARMAN_WORK_STATUS", + "GEARMAN_WORK_WARNING", + "GEOIP_ASNUM_EDITION", + "GEOIP_CABLEDSL_SPEED", + "GEOIP_CITY_EDITION_REV0", + "GEOIP_CITY_EDITION_REV1", + "GEOIP_CORPORATE_SPEED", + "GEOIP_COUNTRY_EDITION", + "GEOIP_DIALUP_SPEED", + "GEOIP_DOMAIN_EDITION", + "GEOIP_ISP_EDITION", + "GEOIP_NETSPEED_EDITION", + "GEOIP_ORG_EDITION", + "GEOIP_PROXY_EDITION", + "GEOIP_REGION_EDITION_REV0", + "GEOIP_REGION_EDITION_REV1", + "GEOIP_UNKNOWN_SPEED", + "GET_MATCH", + "GLOB_AVAILABLE_FLAGS", + "GLOB_BRACE", + "GLOB_MARK", + "GLOB_NOCHECK", + "GLOB_NOESCAPE", + "GLOB_NOSORT", + "GLOB_ONLYDIR", + "GMP_BIG_ENDIAN", + "GMP_LITTLE_ENDIAN", + "GMP_LSW_FIRST", + "GMP_MSW_FIRST", + "GMP_NATIVE_ENDIAN", + "GMP_ROUND_MINUSINF", + "GMP_ROUND_PLUSINF", + "GMP_ROUND_ZERO", + "GMP_VERSION", + "GNUPG_ERROR_EXCEPTION", + "GNUPG_ERROR_SILENT", + "GNUPG_ERROR_WARNING", + "GNUPG_PROTOCOL_CMS", + "GNUPG_PROTOCOL_OpenPGP", + "GNUPG_SIGSUM_BAD_POLICY", + "GNUPG_SIGSUM_CRL_MISSING", + "GNUPG_SIGSUM_CRL_TOO_OLD", + "GNUPG_SIGSUM_GREEN", + "GNUPG_SIGSUM_KEY_EXPIRED", + "GNUPG_SIGSUM_KEY_MISSING", + "GNUPG_SIGSUM_KEY_REVOKED", + "GNUPG_SIGSUM_RED", + "GNUPG_SIGSUM_SIG_EXPIRED", + "GNUPG_SIGSUM_SYS_ERROR", + "GNUPG_SIGSUM_VALID", + "GNUPG_SIG_MODE_CLEAR", + "GNUPG_SIG_MODE_DETACH", + "GNUPG_SIG_MODE_NORMAL", + "GNUPG_VALIDITY_FULL", + "GNUPG_VALIDITY_MARGINAL", + "GNUPG_VALIDITY_NEVER", + "GNUPG_VALIDITY_ULTIMATE", + "GNUPG_VALIDITY_UNDEFINED", + "GNUPG_VALIDITY_UNKNOWN", + "GOPHER_BINARY", + "GOPHER_BINHEX", + "GOPHER_DIRECTORY", + "GOPHER_DOCUMENT", + "GOPHER_DOSBINARY", + "GOPHER_HTTP", + "GOPHER_INFO", + "GOPHER_UNKNOWN", + "GOPHER_UUENCODED", + "GROUPING", + "GSLC_SSL_NO_AUTH", + "GSLC_SSL_ONEWAY_AUTH", + "GSLC_SSL_TWOWAY_AUTH", + "GUPNP_CONTROL_ERROR_ACTION_FAILED", + "GUPNP_CONTROL_ERROR_INVALID_ACTION", + "GUPNP_CONTROL_ERROR_INVALID_ARGS", + "GUPNP_CONTROL_ERROR_OUT_OF_SYNC", + "GUPNP_SIGNAL_ACTION_INVOKED", + "GUPNP_SIGNAL_DEVICE_PROXY_AVAILABLE", + "GUPNP_SIGNAL_DEVICE_PROXY_UNAVAILABLE", + "GUPNP_SIGNAL_NOTIFY_FAILED", + "GUPNP_SIGNAL_SERVICE_PROXY_AVAILABLE", + "GUPNP_SIGNAL_SERVICE_PROXY_UNAVAILABLE", + "GUPNP_SIGNAL_SUBSCRIPTION_LOST", + "GUPNP_TYPE_BOOLEAN", + "GUPNP_TYPE_DOUBLE", + "GUPNP_TYPE_FLOAT", + "GUPNP_TYPE_INT", + "GUPNP_TYPE_LONG", + "GUPNP_TYPE_STRING", + "HASH_HMAC", + "HTML_ENTITIES", + "HTML_SPECIALCHARS", + "IBASE_BKP_CONVERT", + "IBASE_BKP_IGNORE_CHECKSUMS", + "IBASE_BKP_IGNORE_LIMBO", + "IBASE_BKP_METADATA_ONLY", + "IBASE_BKP_NON_TRANSPORTABLE", + "IBASE_BKP_NO_GARBAGE_COLLECT", + "IBASE_BKP_OLD_DESCRIPTIONS", + "IBASE_PRP_ACCESS_MODE", + "IBASE_PRP_ACTIVATE", + "IBASE_PRP_AM_READONLY", + "IBASE_PRP_AM_READWRITE", + "IBASE_PRP_DB_ONLINE", + "IBASE_PRP_DENY_NEW_ATTACHMENTS", + "IBASE_PRP_DENY_NEW_TRANSACTIONS", + "IBASE_PRP_PAGE_BUFFERS", + "IBASE_PRP_RES", + "IBASE_PRP_RESERVE_SPACE", + "IBASE_PRP_RES_USE_FULL", + "IBASE_PRP_SET_SQL_DIALECT", + "IBASE_PRP_SHUTDOWN_DB", + "IBASE_PRP_SWEEP_INTERVAL", + "IBASE_PRP_WM_ASYNC", + "IBASE_PRP_WM_SYNC", + "IBASE_PRP_WRITE_MODE", + "IBASE_REC_VERSION", + "IBASE_RES_CREATE", + "IBASE_RES_DEACTIVATE_IDX", + "IBASE_RES_NO_SHADOW", + "IBASE_RES_NO_VALIDITY", + "IBASE_RES_ONE_AT_A_TIME", + "IBASE_RES_REPLACE", + "IBASE_RES_USE_ALL_SPACE", + "IBASE_RPR_CHECK_DB", + "IBASE_RPR_FULL", + "IBASE_RPR_IGNORE_CHECKSUM", + "IBASE_RPR_KILL_SHADOWS", + "IBASE_RPR_MEND_DB", + "IBASE_RPR_SWEEP_DB", + "IBASE_RPR_VALIDATE_DB", + "IBASE_STS_DATA_PAGES", + "IBASE_STS_DB_LOG", + "IBASE_STS_HDR_PAGES", + "IBASE_STS_IDX_PAGES", + "IBASE_STS_SYS_RELATIONS", + "IBASE_SVC_GET_ENV", + "IBASE_SVC_GET_ENV_LOCK", + "IBASE_SVC_GET_ENV_MSG", + "IBASE_SVC_GET_USERS", + "IBASE_SVC_IMPLEMENTATION", + "IBASE_SVC_SERVER_VERSION", + "IBASE_SVC_SVR_DB_INFO", + "IBASE_SVC_USER_DBPATH", + "IBASE_TEXT", + "ICONV_IMPL", + "ICONV_MIME_DECODE_CONTINUE_ON_ERROR", + "ICONV_MIME_DECODE_STRICT", + "ICONV_VERSION", + "ID3_BEST", + "ID3_V1_0", + "ID3_V1_1", + "ID3_V2_1", + "ID3_V2_2", + "ID3_V2_3", + "ID3_V2_4", + "IDNA_ALLOW_UNASSIGNED", + "IDNA_CHECK_BIDI", + "IDNA_CHECK_CONTEXTJ", + "IDNA_DEFAULT", + "IDNA_ERROR_EMPTY_LABEL", + "IDNA_NONTRANSITIONAL_TO_ASCII", + "IDNA_NONTRANSITIONAL_TO_UNICODE", + "IDNA_USE_STD3_RULES", + "IFX_HOLD", + "IFX_LO_APPEND", + "IFX_LO_BUFFER", + "IFX_LO_NOBUFFER", + "IFX_LO_RDONLY", + "IFX_LO_RDWR", + "IFX_LO_WRONLY", + "IFX_SCROLL", + "IIS_ANONYMOUS", + "IIS_BASIC", + "IIS_EXECUTE", + "IIS_NTLM", + "IIS_PAUSED", + "IIS_READ", + "IIS_RUNNING", + "IIS_SCRIPT", + "IIS_STARTING", + "IIS_STOPPED", + "IIS_WRITE", + "ILL_BADSTK", + "ILL_COPROC", + "ILL_ILLADR", + "ILL_ILLOPC", + "ILL_ILLOPN", + "ILL_ILLTRP", + "ILL_PRVOPC", + "ILL_PRVREG", + "IMAGETYPE_BMP", + "IMAGETYPE_GIF", + "IMAGETYPE_ICO", + "IMAGETYPE_IFF", + "IMAGETYPE_JB2", + "IMAGETYPE_JP2", + "IMAGETYPE_JPC", + "IMAGETYPE_JPEG", + "IMAGETYPE_JPEG2000", + "IMAGETYPE_JPX", + "IMAGETYPE_PNG", + "IMAGETYPE_PSD", + "IMAGETYPE_SWC", + "IMAGETYPE_SWF", + "IMAGETYPE_TIFF_II", + "IMAGETYPE_TIFF_MM", + "IMAGETYPE_WBMP", + "IMAGETYPE_WEBP", + "IMAGETYPE_XBM", + "IMAP_CLOSETIMEOUT", + "IMAP_GC_ELT", + "IMAP_GC_ENV", + "IMAP_GC_TEXTS", + "IMAP_OPENTIMEOUT", + "IMAP_READTIMEOUT", + "IMAP_WRITETIMEOUT", + "IMG_AFFINE_ROTATE", + "IMG_AFFINE_SCALE", + "IMG_AFFINE_SHEAR_HORIZONTAL", + "IMG_AFFINE_SHEAR_VERTICAL", + "IMG_AFFINE_TRANSLATE", + "IMG_ARC_CHORD", + "IMG_ARC_EDGED", + "IMG_ARC_NOFILL", + "IMG_ARC_PIE", + "IMG_ARC_ROUNDED", + "IMG_BELL", + "IMG_BESSEL", + "IMG_BICUBIC", + "IMG_BICUBIC_FIXED", + "IMG_BILINEAR_FIXED", + "IMG_BLACKMAN", + "IMG_BMP", + "IMG_BOX", + "IMG_BSPLINE", + "IMG_CATMULLROM", + "IMG_COLOR_BRUSHED", + "IMG_COLOR_STYLED", + "IMG_COLOR_STYLEDBRUSHED", + "IMG_COLOR_TILED", + "IMG_COLOR_TRANSPARENT", + "IMG_COLOR_TRANSLATE", + "IMG_EFFECT_ALPHABLEND", + "IMG_EFFECT_MULTIPLY", + "IMG_EFFECT_NORMAL", + "IMG_EFFECT_OVERLAY", + "IMG_EFFECT_REPLACE", + "IMG_FILTER_BRIGHTNESS", + "IMG_FILTER_COLORIZE", + "IMG_FILTER_CONTRAST", + "IMG_FILTER_EDGEDETECT", + "IMG_FILTER_EMBOSS", + "IMG_FILTER_GAUSSIAN_BLUR", + "IMG_FILTER_GRAYSCALE", + "IMG_FILTER_MEAN_REMOVAL", + "IMG_FILTER_NEGATE", + "IMG_FILTER_PIXELATE", + "IMG_FILTER_SELECTIVE_BLUR", + "IMG_FILTER_SMOOTH", + "IMG_FILTER_SCATTER", + "IMG_FLIP_BOTH", + "IMG_FLIP_HORIZONTAL", + "IMG_FLIP_VERTICAL", + "IMG_GAUSSIAN", + "IMG_GD2_COMPRESSED", + "IMG_GD2_RAW", + "IMG_GENERALIZED_CUBIC", + "IMG_GIF", + "IMG_HAMMING", + "IMG_HANNING", + "IMG_HERMITE", + "IMG_JPEG", + "IMG_JPG", + "IMG_MITCHELL", + "IMG_NEAREST_NEIGHBOUR", + "IMG_PNG", + "IMG_POWER", + "IMG_QUADRATIC", + "IMG_SINC", + "IMG_TRIANGLE", + "IMG_WBMP", + "IMG_WEBP", + "IMG_WEBP_LOSSLESS", + "IMG_WEIGHTED4", + "IMG_XPM", + "INF", + "INFO_ALL", + "INFO_CONFIGURATION", + "INFO_CREDITS", + "INFO_ENVIRONMENT", + "INFO_GENERAL", + "INFO_LICENSE", + "INFO_MODULES", + "INFO_VARIABLES", + "INGRES_API_VERSION", + "INGRES_ASSOC", + "INGRES_BOTH", + "INGRES_CURSOR_READONLY", + "INGRES_CURSOR_UPDATE", + "INGRES_DATE_DMY", + "INGRES_DATE_FINNISH", + "INGRES_DATE_GERMAN", + "INGRES_DATE_ISO", + "INGRES_DATE_ISO4", + "INGRES_DATE_MDY", + "INGRES_DATE_MULTINATIONAL", + "INGRES_DATE_MULTINATIONAL4", + "INGRES_DATE_YMD", + "INGRES_EXT_VERSION", + "INGRES_MONEY_LEADING", + "INGRES_MONEY_TRAILING", + "INGRES_NUM", + "INGRES_STRUCTURE_BTREE", + "INGRES_STRUCTURE_CBTREE", + "INGRES_STRUCTURE_CHASH", + "INGRES_STRUCTURE_CHEAP", + "INGRES_STRUCTURE_CISAM", + "INGRES_STRUCTURE_HASH", + "INGRES_STRUCTURE_HEAP", + "INGRES_STRUCTURE_ISAM", + "INI_SCANNER_NORMAL", + "INI_SCANNER_RAW", + "INI_SCANNER_TYPED", + "INPUT_COOKIE", + "INPUT_ENV", + "INPUT_GET", + "INPUT_POST", + "INPUT_REQUEST", + "INPUT_SERVER", + "INPUT_SESSION", + "INTL_IDNA_VARIANT_2003", + "INTL_IDNA_VARIANT_UTS46", + "INTL_MAX_LOCALE_LEN", + "INT_CURR_SYMBOL", + "INT_FRAC_DIGITS", + "INVALIDACL", + "INVALIDCALLBACK", + "INVALIDSTATE", + "IN_ACCESS", + "IN_ALL_EVENTS", + "IN_ATTRIB", + "IN_CLOSE", + "IN_CLOSE_NOWRITE", + "IN_CLOSE_WRITE", + "IN_CREATE", + "IN_DELETE", + "IN_DELETE_SELF", + "IN_DONT_FOLLOW", + "IN_IGNORED", + "IN_ISDIR", + "IN_MASK_ADD", + "IN_MODIFY", + "IN_MOVE", + "IN_MOVED_FROM", + "IN_MOVED_TO", + "IN_MOVE_SELF", + "IN_ONESHOT", + "IN_ONLYDIR", + "IN_OPEN", + "IN_Q_OVERFLOW", + "IN_UNMOUNT", + "IPV6_MULTICAST_HOPS", + "IPV6_MULTICAST_IF", + "IPV6_MULTICAST_LOOP", + "IP_MULTICAST_IF", + "IP_MULTICAST_LOOP", + "IP_MULTICAST_TTL", + "JSON_BIGINT_AS_STRING", + "JSON_ERROR_CTRL_CHAR", + "JSON_ERROR_DEPTH", + "JSON_ERROR_INF_OR_NAN", + "JSON_ERROR_INVALID_PROPERTY_NAME", + "JSON_ERROR_NONE", + "JSON_ERROR_RECURSION", + "JSON_ERROR_STATE_MISMATCH", + "JSON_ERROR_SYNTAX", + "JSON_ERROR_UNSUPPORTED_TYPE", + "JSON_ERROR_UTF8", + "JSON_ERROR_UTF16", + "JSON_FORCE_OBJECT", + "JSON_HEX_AMP", + "JSON_HEX_APOS", + "JSON_HEX_QUOT", + "JSON_HEX_TAG", + "JSON_NUMERIC_CHECK", + "JSON_OBJECT_AS_ARRAY", + "JSON_PARTIAL_OUTPUT_ON_ERROR", + "JSON_PRESERVE_ZERO_FRACTION", + "JSON_PRETTY_PRINT", + "JSON_THROW_ON_ERROR", + "JSON_UNESCAPED_LINE_TERMINATORS", + "JSON_UNESCAPED_SLASHES", + "JSON_UNESCAPED_UNICODE", + "LATT_HASCHILDREN", + "LATT_HASNOCHILDREN", + "LATT_MARKED", + "LATT_NOINFERIORS", + "LATT_NOSELECT", + "LATT_REFERRAL", + "LATT_UNMARKED", + "LC_ALL", + "LC_COLLATE", + "LC_CTYPE", + "LC_MESSAGES", + "LC_MONETARY", + "LC_NUMERIC", + "LC_TIME", + "LDAP_CONTROL_ASSERT", + "LDAP_CONTROL_AUTHZID_REQUEST", + "LDAP_CONTROL_AUTHZID_RESPONSE", + "LDAP_CONTROL_DONTUSECOPY", + "LDAP_CONTROL_MANAGEDSAIT", + "LDAP_CONTROL_PAGEDRESULTS", + "LDAP_CONTROL_PASSWORDPOLICYREQUEST", + "LDAP_CONTROL_PASSWORDPOLICYRESPONSE", + "LDAP_CONTROL_POST_READ", + "LDAP_CONTROL_PRE_READ", + "LDAP_CONTROL_PROXY_AUTHZ", + "LDAP_CONTROL_SORTREQUEST", + "LDAP_CONTROL_SORTRESPONSE", + "LDAP_CONTROL_SUBENTRIES", + "LDAP_CONTROL_SYNC", + "LDAP_CONTROL_SYNC_DONE", + "LDAP_CONTROL_SYNC_STATE", + "LDAP_CONTROL_VALUESRETURNFILTER", + "LDAP_CONTROL_VLVREQUEST", + "LDAP_CONTROL_VLVRESPONSE", + "LDAP_CONTROL_X_DOMAIN_SCOPE", + "LDAP_CONTROL_X_EXTENDED_DN", + "LDAP_CONTROL_X_INCREMENTAL_VALUES", + "LDAP_CONTROL_X_PERMISSIVE_MODIFY", + "LDAP_CONTROL_X_SEARCH_OPTIONS", + "LDAP_CONTROL_X_TREE_DELETE", + "LDAP_DEREF_ALWAYS", + "LDAP_DEREF_FINDING", + "LDAP_DEREF_NEVER", + "LDAP_DEREF_SEARCHING", + "LDAP_EXOP_MODIFY_PASSWD", + "LDAP_EXOP_REFRESH", + "LDAP_EXOP_START_TLS", + "LDAP_EXOP_TURN", + "LDAP_EXOP_WHO_AM_I", + "LDAP_OPT_CLIENT_CONTROLS", + "LDAP_OPT_DEBUG_LEVEL", + "LDAP_OPT_DEREF", + "LDAP_OPT_DIAGNOSTIC_MESSAGE", + "LDAP_OPT_ERROR_NUMBER", + "LDAP_OPT_ERROR_STRING", + "LDAP_OPT_HOST_NAME", + "LDAP_OPT_MATCHED_DN", + "LDAP_OPT_NETWORK_TIMEOUT", + "LDAP_OPT_PROTOCOL_VERSION", + "LDAP_OPT_REFERRALS", + "LDAP_OPT_RESTART", + "LDAP_OPT_SERVER_CONTROLS", + "LDAP_OPT_SIZELIMIT", + "LDAP_OPT_TIMELIMIT", + "LDAP_OPT_X_KEEPALIVE_IDLE", + "LDAP_OPT_X_KEEPALIVE_INTERVAL", + "LDAP_OPT_X_KEEPALIVE_PROBES", + "LDAP_OPT_X_TLS_CACERTDIR", + "LDAP_OPT_X_TLS_CACERTFILE", + "LDAP_OPT_X_TLS_CERTFILE", + "LDAP_OPT_X_TLS_CIPHER_SUITE", + "LDAP_OPT_X_TLS_CRLCHECK", + "LDAP_OPT_X_TLS_CRLFILE", + "LDAP_OPT_X_TLS_CRL_ALL", + "LDAP_OPT_X_TLS_CRL_NONE", + "LDAP_OPT_X_TLS_CRL_PEER", + "LDAP_OPT_X_TLS_DHFILE", + "LDAP_OPT_X_TLS_KEYFILE", + "LDAP_OPT_X_TLS_KEYILE", + "LDAP_OPT_X_TLS_PACKAGE", + "LDAP_OPT_X_TLS_PROTOCOL_MIN", + "LDAP_OPT_X_TLS_RANDOM_FILE", + "LDAP_OPT_X_TLS_REQUIRE_CERT", + "LIBEXSLT_DOTTED_VERSION", + "LIBEXSLT_VERSION", + "LIBXML_BIGLINES", + "LIBXML_COMPACT", + "LIBXML_DOTTED_VERSION", + "LIBXML_DTDATTR", + "LIBXML_DTDLOAD", + "LIBXML_DTDVALID", + "LIBXML_ERR_ERROR", + "LIBXML_ERR_FATAL", + "LIBXML_ERR_NONE", + "LIBXML_ERR_WARNING", + "LIBXML_HTML_NODEFDTD", + "LIBXML_HTML_NOIMPLIED", + "LIBXML_NOBLANKS", + "LIBXML_NOCDATA", + "LIBXML_NOEMPTYTAG", + "LIBXML_NOENT", + "LIBXML_NOERROR", + "LIBXML_NONET", + "LIBXML_NOWARNING", + "LIBXML_NOXMLDECL", + "LIBXML_NSCLEAN", + "LIBXML_PARSEHUGE", + "LIBXML_PEDANTIC", + "LIBXML_SCHEMA_CREATE", + "LIBXML_VERSION", + "LIBXML_XINCLUDE", + "LIBXSLT_DOTTED_VERSION", + "LIBXSLT_VERSION", + "LOCALE_NEUTRAL", + "LOCAL_CREDS_PERSISTENT", + "LOCK_EX", + "LOCK_NB", + "LOCK_SH", + "LOCK_UN", + "LOG_ALERT", + "LOG_AUTH", + "LOG_AUTHPRIV", + "LOG_CONS", + "LOG_CRIT", + "LOG_CRON", + "LOG_DAEMON", + "LOG_DEBUG", + "LOG_EMERG", + "LOG_ERR", + "LOG_INFO", + "LOG_KERN", + "LOG_LEVEL_DEBUG", + "LOG_LEVEL_ERROR", + "LOG_LEVEL_INFO", + "LOG_LEVEL_WARN", + "LOG_LOCAL0", + "LOG_LOCAL1", + "LOG_LOCAL2", + "LOG_LOCAL3", + "LOG_LOCAL4", + "LOG_LOCAL5", + "LOG_LOCAL6", + "LOG_LOCAL7", + "LOG_LPR", + "LOG_MAIL", + "LOG_NDELAY", + "LOG_NEWS", + "LOG_NOTICE", + "LOG_NOWAIT", + "LOG_ODELAY", + "LOG_PERROR", + "LOG_PID", + "LOG_SYSLOG", + "LOG_USER", + "LOG_UUCP", + "LOG_WARNING", + "MAILPARSE_EXTRACT_OUTPUT", + "MAILPARSE_EXTRACT_RETURN", + "MAILPARSE_EXTRACT_STREAM", + "MARSHALLINGERROR", + "MATCH", + "MAXDB_APPLICATION", + "MAXDB_APPVERSION", + "MAXDB_COMPNAME", + "MAXDB_CURSORPREFIX", + "MAXDB_ISOLATIONLEVEL", + "MAXDB_PACKETCOUNT", + "MAXDB_SQLMODE", + "MAXDB_STATEMENTCACHESIZE", + "MAXDB_TIMEOUT", + "MAXDB_UNICODE", + "MB_CASE_FOLD", + "MB_CASE_FOLD_SIMPLE", + "MB_CASE_LOWER", + "MB_CASE_LOWER_SIMPLE", + "MB_CASE_TITLE", + "MB_CASE_TITLE_SIMPLE", + "MB_CASE_UPPER", + "MB_OVERLOAD_MAIL", + "MB_OVERLOAD_REGEX", + "MB_OVERLOAD_STRING", + "MCAST_BLOCK_SOURCE", + "MCAST_JOIN_GROUP", + "MCAST_JOIN_SOURCE_GROUP", + "MCAST_LEAVE_GROUP", + "MCAST_LEAVE_SOURCE_GROUP", + "MCAST_UNBLOCK_SOURCE", + "MCRYPT_3DES", + "MCRYPT_ARCFOUR", + "MCRYPT_ARCFOUR_IV", + "MCRYPT_BLOWFISH", + "MCRYPT_CAST_128", + "MCRYPT_CAST_256", + "MCRYPT_CRYPT", + "MCRYPT_DECRYPT", + "MCRYPT_DES", + "MCRYPT_DES_COMPAT", + "MCRYPT_DEV_RANDOM", + "MCRYPT_DEV_URANDOM", + "MCRYPT_ENCRYPT", + "MCRYPT_ENIGMA", + "MCRYPT_GOST", + "MCRYPT_IDEA", + "MCRYPT_LOKI97", + "MCRYPT_MARS", + "MCRYPT_MODE_CBC", + "MCRYPT_MODE_CFB", + "MCRYPT_MODE_ECB", + "MCRYPT_MODE_NOFB", + "MCRYPT_MODE_OFB", + "MCRYPT_MODE_STREAM", + "MCRYPT_PANAMA", + "MCRYPT_RAND", + "MCRYPT_RC2", + "MCRYPT_RC4", + "MCRYPT_RC6", + "MCRYPT_RC6_128", + "MCRYPT_RC6_192", + "MCRYPT_RC6_256", + "MCRYPT_RIJNDAEL_128", + "MCRYPT_RIJNDAEL_192", + "MCRYPT_RIJNDAEL_256", + "MCRYPT_SAFER64", + "MCRYPT_SAFER128", + "MCRYPT_SAFERPLUS", + "MCRYPT_SERPENT", + "MCRYPT_SERPENT_128", + "MCRYPT_SERPENT_192", + "MCRYPT_SERPENT_256", + "MCRYPT_SKIPJACK", + "MCRYPT_TEAN", + "MCRYPT_THREEWAY", + "MCRYPT_TRIPLEDES", + "MCRYPT_TWOFISH", + "MCRYPT_TWOFISH128", + "MCRYPT_TWOFISH192", + "MCRYPT_TWOFISH256", + "MCRYPT_WAKE", + "MCRYPT_XTEA", + "MEMCACHE_COMPRESSED", + "MEMCACHE_HAVE_SESSION", + "MEMCACHE_USER1", + "MEMCACHE_USER2", + "MEMCACHE_USER3", + "MEMCACHE_USER4", + "MEMORY_TRACE", + "MHASH_ADLER32", + "MHASH_CRC32", + "MHASH_CRC32B", + "MHASH_GOST", + "MHASH_HAVAL128", + "MHASH_HAVAL160", + "MHASH_HAVAL192", + "MHASH_HAVAL224", + "MHASH_HAVAL256", + "MHASH_MD2", + "MHASH_MD4", + "MHASH_MD5", + "MHASH_RIPEMD128", + "MHASH_RIPEMD256", + "MHASH_RIPEMD320", + "MHASH_SHA1", + "MHASH_SHA192", + "MHASH_SHA224", + "MHASH_SHA256", + "MHASH_SHA384", + "MHASH_SHA512", + "MHASH_SNEFRU128", + "MHASH_SNEFRU256", + "MHASH_TIGER", + "MHASH_TIGER128", + "MHASH_TIGER160", + "MHASH_WHIRLPOOL", + "MING_NEW", + "MING_ZLIB", + "MK_E_UNAVAILABLE", + "MONGODB_STABILITY", + "MONGODB_VERSION", + "MONGO_STREAMS", + "MONGO_STREAM_NOTIFY_IO_COMPLETED", + "MONGO_STREAM_NOTIFY_IO_PROGRESS", + "MONGO_STREAM_NOTIFY_IO_READ", + "MONGO_STREAM_NOTIFY_IO_WRITE", + "MONGO_STREAM_NOTIFY_LOG_BATCHINSERT", + "MONGO_STREAM_NOTIFY_LOG_CMD_DELETE", + "MONGO_STREAM_NOTIFY_LOG_CMD_INSERT", + "MONGO_STREAM_NOTIFY_LOG_CMD_UPDATE", + "MONGO_STREAM_NOTIFY_LOG_DELETE", + "MONGO_STREAM_NOTIFY_LOG_GETMORE", + "MONGO_STREAM_NOTIFY_LOG_INSERT", + "MONGO_STREAM_NOTIFY_LOG_KILLCURSOR", + "MONGO_STREAM_NOTIFY_LOG_QUERY", + "MONGO_STREAM_NOTIFY_LOG_RESPONSE_HEADER", + "MONGO_STREAM_NOTIFY_LOG_UPDATE", + "MONGO_STREAM_NOTIFY_LOG_WRITE_BATCH", + "MONGO_STREAM_NOTIFY_LOG_WRITE_REPLY", + "MONGO_STREAM_NOTIFY_TYPE_IO_INIT", + "MONGO_STREAM_NOTIFY_TYPE_LOG", + "MONGO_SUPPORTS_AUTH_MECHANISM_GSSAPI", + "MONGO_SUPPORTS_AUTH_MECHANISM_MONGODB_CR", + "MONGO_SUPPORTS_AUTH_MECHANISM_MONGODB_X509", + "MONGO_SUPPORTS_AUTH_MECHANISM_PLAIN", + "MONGO_SUPPORTS_SSL", + "MONGO_SUPPORTS_STREAMS", + "MON_1", + "MON_2", + "MON_3", + "MON_4", + "MON_5", + "MON_6", + "MON_7", + "MON_8", + "MON_9", + "MON_10", + "MON_11", + "MON_12", + "MON_DECIMAL_POINT", + "MON_GROUPING", + "MON_THOUSANDS_SEP", + "MSG_DONTROUTE", + "MSG_DONTWAIT", + "MSG_EOF", + "MSG_EOR", + "MSG_EXCEPT", + "MSG_IPC_NOWAIT", + "MSG_NOERROR", + "MSG_OOB", + "MSG_PEEK", + "MSG_WAITALL", + "MSG_ZEROCOPY", + "MSQL_ASSOC", + "MSQL_BOTH", + "MSQL_NUM", + "MSSQL_ASSOC", + "MSSQL_BOTH", + "MSSQL_NUM", + "MT_RAND_MT19937", + "MT_RAND_PHP", + "MYSQLI_ASSOC", + "MYSQLI_AUTO_INCREMENT_FLAG", + "MYSQLI_BINARY_FLAG", + "MYSQLI_BLOB_FLAG", + "MYSQLI_BOTH", + "MYSQLI_CLIENT_COMPRESS", + "MYSQLI_CLIENT_FOUND_ROWS", + "MYSQLI_CLIENT_IGNORE_SPACE", + "MYSQLI_CLIENT_INTERACTIVE", + "MYSQLI_CLIENT_MULTI_QUERIES", + "MYSQLI_CLIENT_NO_SCHEMA", + "MYSQLI_CLIENT_SSL", + "MYSQLI_CLIENT_SSL_DONT_VERIFY_SERVER_CERT", + "MYSQLI_CURSOR_TYPE_FOR_UPDATE", + "MYSQLI_CURSOR_TYPE_NO_CURSOR", + "MYSQLI_CURSOR_TYPE_READ_ONLY", + "MYSQLI_CURSOR_TYPE_SCROLLABLE", + "MYSQLI_DATA_TRUNCATED", + "MYSQLI_DEBUG_TRACE_ENABLED", + "MYSQLI_ENUM_FLAG", + "MYSQLI_GROUP_FLAG", + "MYSQLI_INIT_COMMAND", + "MYSQLI_MULTIPLE_KEY_FLAG", + "MYSQLI_NEED_DATA", + "MYSQLI_NOT_NULL_FLAG", + "MYSQLI_NO_DATA", + "MYSQLI_NUM", + "MYSQLI_NUM_FLAG", + "MYSQLI_OPT_CONNECT_TIMEOUT", + "MYSQLI_OPT_READ_TIMEOUT", + "MYSQLI_OPT_INT_AND_FLOAT_NATIVE", + "MYSQLI_OPT_LOCAL_INFILE", + "MYSQLI_OPT_NET_CMD_BUFFER_SIZE", + "MYSQLI_OPT_NET_READ_BUFFER_SIZE", + "MYSQLI_OPT_SSL_VERIFY_SERVER_CERT", + "MYSQLI_PART_KEY_FLAG", + "MYSQLI_PRI_KEY_FLAG", + "MYSQLI_READ_DEFAULT_FILE", + "MYSQLI_READ_DEFAULT_GROUP", + "MYSQLI_REFRESH_GRANT", + "MYSQLI_REFRESH_HOSTS", + "MYSQLI_REFRESH_LOG", + "MYSQLI_REFRESH_MASTER", + "MYSQLI_REFRESH_REPLICA", + "MYSQLI_REFRESH_SLAVE", + "MYSQLI_REFRESH_STATUS", + "MYSQLI_REFRESH_TABLES", + "MYSQLI_REFRESH_THREADS", + "MYSQLI_REPORT_ALL", + "MYSQLI_REPORT_ERROR", + "MYSQLI_REPORT_INDEX", + "MYSQLI_REPORT_OFF", + "MYSQLI_REPORT_STRICT", + "MYSQLI_SERVER_PUBLIC_KEY", + "MYSQLI_SERVER_QUERY_NO_GOOD_INDEX_USED", + "MYSQLI_SERVER_QUERY_NO_INDEX_USED", + "MYSQLI_SET_CHARSET_NAME", + "MYSQLI_SET_FLAG", + "MYSQLI_STMT_ATTR_CURSOR_TYPE", + "MYSQLI_STMT_ATTR_PREFETCH_ROWS", + "MYSQLI_STMT_ATTR_UPDATE_MAX_LENGTH", + "MYSQLI_STORE_RESULT", + "MYSQLI_STORE_RESULT_COPY_DATA", + "MYSQLI_TIMESTAMP_FLAG", + "MYSQLI_TRANS_COR_AND_CHAIN", + "MYSQLI_TRANS_COR_AND_NO_CHAIN", + "MYSQLI_TRANS_COR_NO_RELEASE", + "MYSQLI_TRANS_COR_RELEASE", + "MYSQLI_TRANS_START_CONSISTENT_SNAPSHOT", + "MYSQLI_TRANS_START_READ_ONLY", + "MYSQLI_TRANS_START_READ_WRITE", + "MYSQLI_TYPE_BIT", + "MYSQLI_TYPE_BLOB", + "MYSQLI_TYPE_CHAR", + "MYSQLI_TYPE_DATE", + "MYSQLI_TYPE_DATETIME", + "MYSQLI_TYPE_DECIMAL", + "MYSQLI_TYPE_DOUBLE", + "MYSQLI_TYPE_ENUM", + "MYSQLI_TYPE_FLOAT", + "MYSQLI_TYPE_GEOMETRY", + "MYSQLI_TYPE_INT24", + "MYSQLI_TYPE_INTERVAL", + "MYSQLI_TYPE_LONG", + "MYSQLI_TYPE_LONGLONG", + "MYSQLI_TYPE_LONG_BLOB", + "MYSQLI_TYPE_MEDIUM_BLOB", + "MYSQLI_TYPE_NEWDATE", + "MYSQLI_TYPE_NEWDECIMAL", + "MYSQLI_TYPE_NULL", + "MYSQLI_TYPE_SET", + "MYSQLI_TYPE_SHORT", + "MYSQLI_TYPE_STRING", + "MYSQLI_TYPE_TIME", + "MYSQLI_TYPE_TIMESTAMP", + "MYSQLI_TYPE_TINY", + "MYSQLI_TYPE_TINY_BLOB", + "MYSQLI_TYPE_VAR_STRING", + "MYSQLI_TYPE_YEAR", + "MYSQLI_UNIQUE_KEY_FLAG", + "MYSQLI_UNSIGNED_FLAG", + "MYSQLI_USE_RESULT", + "MYSQLI_ZEROFILL_FLAG", + "MYSQLND_MEMCACHE_DEFAULT_REGEXP", + "MYSQLND_MEMCACHE_VERSION", + "MYSQLND_MEMCACHE_VERSION_ID", + "MYSQLND_MS_LAST_USED_SWITCH", + "MYSQLND_MS_MASTER_SWITCH", + "MYSQLND_MS_QOS_CONSISTENCY_EVENTUAL", + "MYSQLND_MS_QOS_CONSISTENCY_SESSION", + "MYSQLND_MS_QOS_CONSISTENCY_STRONG", + "MYSQLND_MS_QOS_OPTION_AGE", + "MYSQLND_MS_QOS_OPTION_GTID", + "MYSQLND_MS_QUERY_USE_LAST_USED", + "MYSQLND_MS_QUERY_USE_MASTER", + "MYSQLND_MS_QUERY_USE_SLAVE", + "MYSQLND_MS_SLAVE_SWITCH", + "MYSQLND_MS_VERSION", + "MYSQLND_MS_VERSION_ID", + "MYSQLND_MUX_VERSION", + "MYSQLND_MUX_VERSION_ID", + "MYSQLND_QC_CONDITION_META_SCHEMA_PATTERN", + "MYSQLND_QC_DISABLE_SWITCH", + "MYSQLND_QC_ENABLE_SWITCH", + "MYSQLND_QC_SERVER_ID_SWITCH", + "MYSQLND_QC_TTL_SWITCH", + "MYSQLND_QC_VERSION", + "MYSQLND_QC_VERSION_ID", + "MYSQLND_UH_MYSQLND_CHG_USER_RESP_PACKET", + "MYSQLND_UH_MYSQLND_CLOSE_DISCONNECTED", + "MYSQLND_UH_MYSQLND_CLOSE_EXPLICIT", + "MYSQLND_UH_MYSQLND_CLOSE_IMPLICIT", + "MYSQLND_UH_MYSQLND_CLOSE_LAST", + "MYSQLND_UH_MYSQLND_COM_BINLOG_DUMP", + "MYSQLND_UH_MYSQLND_COM_CHANGE_USER", + "MYSQLND_UH_MYSQLND_COM_CONNECT", + "MYSQLND_UH_MYSQLND_COM_CONNECT_OUT", + "MYSQLND_UH_MYSQLND_COM_CREATE_DB", + "MYSQLND_UH_MYSQLND_COM_DAEMON", + "MYSQLND_UH_MYSQLND_COM_DEBUG", + "MYSQLND_UH_MYSQLND_COM_DELAYED_INSERT", + "MYSQLND_UH_MYSQLND_COM_DROP_DB", + "MYSQLND_UH_MYSQLND_COM_END", + "MYSQLND_UH_MYSQLND_COM_FIELD_LIST", + "MYSQLND_UH_MYSQLND_COM_INIT_DB", + "MYSQLND_UH_MYSQLND_COM_PING", + "MYSQLND_UH_MYSQLND_COM_PROCESS_INFO", + "MYSQLND_UH_MYSQLND_COM_PROCESS_KILL", + "MYSQLND_UH_MYSQLND_COM_QUERY", + "MYSQLND_UH_MYSQLND_COM_QUIT", + "MYSQLND_UH_MYSQLND_COM_REFRESH", + "MYSQLND_UH_MYSQLND_COM_REGISTER_SLAVED", + "MYSQLND_UH_MYSQLND_COM_SET_OPTION", + "MYSQLND_UH_MYSQLND_COM_SHUTDOWN", + "MYSQLND_UH_MYSQLND_COM_SLEEP", + "MYSQLND_UH_MYSQLND_COM_STATISTICS", + "MYSQLND_UH_MYSQLND_COM_STMT_CLOSE", + "MYSQLND_UH_MYSQLND_COM_STMT_EXECUTE", + "MYSQLND_UH_MYSQLND_COM_STMT_FETCH", + "MYSQLND_UH_MYSQLND_COM_STMT_PREPARE", + "MYSQLND_UH_MYSQLND_COM_STMT_RESET", + "MYSQLND_UH_MYSQLND_COM_STMT_SEND_LONG_DATA", + "MYSQLND_UH_MYSQLND_COM_TABLE_DUMP", + "MYSQLND_UH_MYSQLND_COM_TIME", + "MYSQLND_UH_MYSQLND_OPTION_INIT_COMMAND", + "MYSQLND_UH_MYSQLND_OPTION_OPT_COMPRESS", + "MYSQLND_UH_MYSQLND_OPTION_OPT_CONNECT_TIMEOUT", + "MYSQLND_UH_MYSQLND_OPTION_OPT_NAMED_PIPE", + "MYSQLND_UH_MYSQLND_OPT_AUTH_PROTOCOL", + "MYSQLND_UH_MYSQLND_OPT_GUESS_CONNECTION", + "MYSQLND_UH_MYSQLND_OPT_INT_AND_FLOAT_NATIVE", + "MYSQLND_UH_MYSQLND_OPT_LOCAL_INFILE", + "MYSQLND_UH_MYSQLND_OPT_MAX_ALLOWED_PACKET", + "MYSQLND_UH_MYSQLND_OPT_NET_CMD_BUFFER_SIZE", + "MYSQLND_UH_MYSQLND_OPT_NET_READ_BUFFER_SIZE", + "MYSQLND_UH_MYSQLND_OPT_PROTOCOL", + "MYSQLND_UH_MYSQLND_OPT_READ_TIMEOUT", + "MYSQLND_UH_MYSQLND_OPT_RECONNECT", + "MYSQLND_UH_MYSQLND_OPT_SSL_CA", + "MYSQLND_UH_MYSQLND_OPT_SSL_CAPATH", + "MYSQLND_UH_MYSQLND_OPT_SSL_CERT", + "MYSQLND_UH_MYSQLND_OPT_SSL_CIPHER", + "MYSQLND_UH_MYSQLND_OPT_SSL_KEY", + "MYSQLND_UH_MYSQLND_OPT_SSL_PASSPHRASE", + "MYSQLND_UH_MYSQLND_OPT_SSL_VERIFY_SERVER_CERT", + "MYSQLND_UH_MYSQLND_OPT_USE_EMBEDDED_CONNECTION", + "MYSQLND_UH_MYSQLND_OPT_USE_REMOTE_CONNECTION", + "MYSQLND_UH_MYSQLND_OPT_USE_RESULT", + "MYSQLND_UH_MYSQLND_OPT_WRITE_TIMEOUT", + "MYSQLND_UH_MYSQLND_PREPARE_RESP_PACKET", + "MYSQLND_UH_MYSQLND_PROT_AUTH_PACKET", + "MYSQLND_UH_MYSQLND_PROT_CMD_PACKET", + "MYSQLND_UH_MYSQLND_PROT_EOF_PACKET", + "MYSQLND_UH_MYSQLND_PROT_GREET_PACKET", + "MYSQLND_UH_MYSQLND_PROT_LAST", + "MYSQLND_UH_MYSQLND_PROT_OK_PACKET", + "MYSQLND_UH_MYSQLND_PROT_ROW_PACKET", + "MYSQLND_UH_MYSQLND_PROT_RSET_FLD_PACKET", + "MYSQLND_UH_MYSQLND_PROT_RSET_HEADER_PACKET", + "MYSQLND_UH_MYSQLND_PROT_STATS_PACKET", + "MYSQLND_UH_MYSQLND_READ_DEFAULT_FILE", + "MYSQLND_UH_MYSQLND_READ_DEFAULT_GROUP", + "MYSQLND_UH_MYSQLND_REPORT_DATA_TRUNCATION", + "MYSQLND_UH_MYSQLND_SECURE_AUTH", + "MYSQLND_UH_MYSQLND_SET_CHARSET_DIR", + "MYSQLND_UH_MYSQLND_SET_CHARSET_NAME", + "MYSQLND_UH_MYSQLND_SET_CLIENT_IP", + "MYSQLND_UH_MYSQLND_SHARED_MEMORY_BASE_NAME", + "MYSQLND_UH_SERVER_OPTION_DEFAULT_AUTH", + "MYSQLND_UH_SERVER_OPTION_MULTI_STATEMENTS_OFF", + "MYSQLND_UH_SERVER_OPTION_MULTI_STATEMENTS_ON", + "MYSQLND_UH_SERVER_OPTION_PLUGIN_DIR", + "MYSQLND_UH_SERVER_OPTION_SET_CLIENT_IP", + "MYSQLND_UH_VERSION", + "MYSQLND_UH_VERSION_ID", + "MYSQLX_CLIENT_SSL", + "MYSQLX_LOCK_DEFAULT", + "MYSQLX_LOCK_NOWAIT", + "MYSQLX_LOCK_SKIP_LOCKED", + "MYSQLX_TYPE_BIGINT", + "MYSQLX_TYPE_BIT", + "MYSQLX_TYPE_BLOB", + "MYSQLX_TYPE_BYTES", + "MYSQLX_TYPE_CHAR", + "MYSQLX_TYPE_DATE", + "MYSQLX_TYPE_DATETIME", + "MYSQLX_TYPE_DECIMAL", + "MYSQLX_TYPE_DOUBLE", + "MYSQLX_TYPE_ENUM", + "MYSQLX_TYPE_FLOAT", + "MYSQLX_TYPE_GEOMETRY", + "MYSQLX_TYPE_INT", + "MYSQLX_TYPE_INT24", + "MYSQLX_TYPE_INTERVAL", + "MYSQLX_TYPE_JSON", + "MYSQLX_TYPE_LONG", + "MYSQLX_TYPE_LONGLONG", + "MYSQLX_TYPE_LONG_BLOB", + "MYSQLX_TYPE_MEDIUMINT", + "MYSQLX_TYPE_MEDIUM_BLOB", + "MYSQLX_TYPE_NEWDATE", + "MYSQLX_TYPE_NEWDECIMAL", + "MYSQLX_TYPE_NULL", + "MYSQLX_TYPE_SET", + "MYSQLX_TYPE_SHORT", + "MYSQLX_TYPE_SMALLINT", + "MYSQLX_TYPE_STRING", + "MYSQLX_TYPE_TIME", + "MYSQLX_TYPE_TIMESTAMP", + "MYSQLX_TYPE_TINY", + "MYSQLX_TYPE_TINY_BLOB", + "MYSQLX_TYPE_VAR_STRING", + "MYSQLX_TYPE_YEAR", + "MYSQL_ASSOC", + "MYSQL_BOTH", + "MYSQL_CLIENT_COMPRESS", + "MYSQL_CLIENT_IGNORE_SPACE", + "MYSQL_CLIENT_INTERACTIVE", + "MYSQL_CLIENT_SSL", + "MYSQL_NUM", + "M_1_PI", + "M_2_PI", + "M_2_SQRTPI", + "M_DONE", + "M_E", + "M_ERROR", + "M_EULER", + "M_FAIL", + "M_LN2", + "M_LN10", + "M_LNPI", + "M_LOG2E", + "M_LOG10E", + "M_PENDING", + "M_PI", + "M_PI_2", + "M_PI_4", + "M_SQRT1_2", + "M_SQRT2", + "M_SQRT3", + "M_SQRTPI", + "M_SUCCESS", + "NAN", + "NCURSES_ALL_MOUSE_EVENTS", + "NCURSES_BUTTON1_CLICKED", + "NCURSES_BUTTON1_DOUBLE_CLICKED", + "NCURSES_BUTTON1_PRESSED", + "NCURSES_BUTTON1_RELEASED", + "NCURSES_BUTTON1_TRIPLE_CLICKED", + "NCURSES_BUTTON_ALT", + "NCURSES_BUTTON_CTRL", + "NCURSES_BUTTON_SHIFT", + "NCURSES_COLOR_BLACK", + "NCURSES_COLOR_BLUE", + "NCURSES_COLOR_CYAN", + "NCURSES_COLOR_GREEN", + "NCURSES_COLOR_MAGENTA", + "NCURSES_COLOR_RED", + "NCURSES_COLOR_WHITE", + "NCURSES_COLOR_YELLOW", + "NCURSES_KEY_A1", + "NCURSES_KEY_A3", + "NCURSES_KEY_B2", + "NCURSES_KEY_BACKSPACE", + "NCURSES_KEY_BEG", + "NCURSES_KEY_BTAB", + "NCURSES_KEY_C1", + "NCURSES_KEY_C3", + "NCURSES_KEY_CANCEL", + "NCURSES_KEY_CATAB", + "NCURSES_KEY_CLEAR", + "NCURSES_KEY_CLOSE", + "NCURSES_KEY_COMMAND", + "NCURSES_KEY_COPY", + "NCURSES_KEY_CREATE", + "NCURSES_KEY_CTAB", + "NCURSES_KEY_DC", + "NCURSES_KEY_DL", + "NCURSES_KEY_DOWN", + "NCURSES_KEY_EIC", + "NCURSES_KEY_END", + "NCURSES_KEY_EOL", + "NCURSES_KEY_EOS", + "NCURSES_KEY_EXIT", + "NCURSES_KEY_F0", + "NCURSES_KEY_FIND", + "NCURSES_KEY_HELP", + "NCURSES_KEY_HOME", + "NCURSES_KEY_IC", + "NCURSES_KEY_IL", + "NCURSES_KEY_LEFT", + "NCURSES_KEY_LL", + "NCURSES_KEY_MARK", + "NCURSES_KEY_MAX", + "NCURSES_KEY_MESSAGE", + "NCURSES_KEY_MOUSE", + "NCURSES_KEY_MOVE", + "NCURSES_KEY_NEXT", + "NCURSES_KEY_NPAGE", + "NCURSES_KEY_OPEN", + "NCURSES_KEY_OPTIONS", + "NCURSES_KEY_PPAGE", + "NCURSES_KEY_PREVIOUS", + "NCURSES_KEY_PRINT", + "NCURSES_KEY_REDO", + "NCURSES_KEY_REFERENCE", + "NCURSES_KEY_REFRESH", + "NCURSES_KEY_REPLACE", + "NCURSES_KEY_RESET", + "NCURSES_KEY_RESTART", + "NCURSES_KEY_RESUME", + "NCURSES_KEY_RIGHT", + "NCURSES_KEY_SAVE", + "NCURSES_KEY_SBEG", + "NCURSES_KEY_SCANCEL", + "NCURSES_KEY_SCOMMAND", + "NCURSES_KEY_SCOPY", + "NCURSES_KEY_SCREATE", + "NCURSES_KEY_SDC", + "NCURSES_KEY_SDL", + "NCURSES_KEY_SELECT", + "NCURSES_KEY_SEND", + "NCURSES_KEY_SEOL", + "NCURSES_KEY_SEXIT", + "NCURSES_KEY_SF", + "NCURSES_KEY_SFIND", + "NCURSES_KEY_SHELP", + "NCURSES_KEY_SHOME", + "NCURSES_KEY_SIC", + "NCURSES_KEY_SLEFT", + "NCURSES_KEY_SMESSAGE", + "NCURSES_KEY_SMOVE", + "NCURSES_KEY_SNEXT", + "NCURSES_KEY_SOPTIONS", + "NCURSES_KEY_SPREVIOUS", + "NCURSES_KEY_SPRINT", + "NCURSES_KEY_SR", + "NCURSES_KEY_SREDO", + "NCURSES_KEY_SREPLACE", + "NCURSES_KEY_SRESET", + "NCURSES_KEY_SRIGHT", + "NCURSES_KEY_SRSUME", + "NCURSES_KEY_SSAVE", + "NCURSES_KEY_SSUSPEND", + "NCURSES_KEY_STAB", + "NCURSES_KEY_UNDO", + "NCURSES_KEY_UP", + "NCURSES_REPORT_MOUSE_POSITION", + "NEGATIVE_SIGN", + "NEWCONFIGNOQUORUM", + "NEWT_ANCHOR_BOTTOM", + "NEWT_ANCHOR_LEFT", + "NEWT_ANCHOR_RIGHT", + "NEWT_ANCHOR_TOP", + "NEWT_ARG_APPEND", + "NEWT_ARG_LAST", + "NEWT_CHECKBOXTREE_COLLAPSED", + "NEWT_CHECKBOXTREE_EXPANDED", + "NEWT_CHECKBOXTREE_HIDE_BOX", + "NEWT_CHECKBOXTREE_SELECTED", + "NEWT_CHECKBOXTREE_UNSELECTABLE", + "NEWT_CHECKBOXTREE_UNSELECTED", + "NEWT_COLORSET_ACTBUTTON", + "NEWT_COLORSET_ACTCHECKBOX", + "NEWT_COLORSET_ACTLISTBOX", + "NEWT_COLORSET_ACTSELLISTBOX", + "NEWT_COLORSET_ACTTEXTBOX", + "NEWT_COLORSET_BORDER", + "NEWT_COLORSET_BUTTON", + "NEWT_COLORSET_CHECKBOX", + "NEWT_COLORSET_COMPACTBUTTON", + "NEWT_COLORSET_DISENTRY", + "NEWT_COLORSET_EMPTYSCALE", + "NEWT_COLORSET_ENTRY", + "NEWT_COLORSET_FULLSCALE", + "NEWT_COLORSET_HELPLINE", + "NEWT_COLORSET_LABEL", + "NEWT_COLORSET_LISTBOX", + "NEWT_COLORSET_ROOT", + "NEWT_COLORSET_ROOTTEXT", + "NEWT_COLORSET_SELLISTBOX", + "NEWT_COLORSET_SHADOW", + "NEWT_COLORSET_TEXTBOX", + "NEWT_COLORSET_TITLE", + "NEWT_COLORSET_WINDOW", + "NEWT_ENTRY_DISABLED", + "NEWT_ENTRY_HIDDEN", + "NEWT_ENTRY_RETURNEXIT", + "NEWT_ENTRY_SCROLL", + "NEWT_EXIT_COMPONENT", + "NEWT_EXIT_FDREADY", + "NEWT_EXIT_HOTKEY", + "NEWT_EXIT_TIMER", + "NEWT_FD_EXCEPT", + "NEWT_FD_READ", + "NEWT_FD_WRITE", + "NEWT_FLAGS_RESET", + "NEWT_FLAGS_SET", + "NEWT_FLAGS_TOGGLE", + "NEWT_FLAG_BORDER", + "NEWT_FLAG_CHECKBOX", + "NEWT_FLAG_DISABLED", + "NEWT_FLAG_HIDDEN", + "NEWT_FLAG_MULTIPLE", + "NEWT_FLAG_NOF12", + "NEWT_FLAG_PASSWORD", + "NEWT_FLAG_RETURNEXIT", + "NEWT_FLAG_SCROLL", + "NEWT_FLAG_SELECTED", + "NEWT_FLAG_SHOWCURSOR", + "NEWT_FLAG_WRAP", + "NEWT_FORM_NOF12", + "NEWT_GRID_COMPONENT", + "NEWT_GRID_EMPTY", + "NEWT_GRID_FLAG_GROWX", + "NEWT_GRID_FLAG_GROWY", + "NEWT_GRID_SUBGRID", + "NEWT_KEY_BKSPC", + "NEWT_KEY_DELETE", + "NEWT_KEY_DOWN", + "NEWT_KEY_END", + "NEWT_KEY_ENTER", + "NEWT_KEY_ESCAPE", + "NEWT_KEY_EXTRA_BASE", + "NEWT_KEY_F1", + "NEWT_KEY_F2", + "NEWT_KEY_F3", + "NEWT_KEY_F4", + "NEWT_KEY_F5", + "NEWT_KEY_F6", + "NEWT_KEY_F7", + "NEWT_KEY_F8", + "NEWT_KEY_F9", + "NEWT_KEY_F10", + "NEWT_KEY_F11", + "NEWT_KEY_F12", + "NEWT_KEY_HOME", + "NEWT_KEY_INSERT", + "NEWT_KEY_LEFT", + "NEWT_KEY_PGDN", + "NEWT_KEY_PGUP", + "NEWT_KEY_RESIZE", + "NEWT_KEY_RETURN", + "NEWT_KEY_RIGHT", + "NEWT_KEY_SUSPEND", + "NEWT_KEY_TAB", + "NEWT_KEY_UNTAB", + "NEWT_KEY_UP", + "NEWT_LISTBOX_RETURNEXIT", + "NEWT_TEXTBOX_SCROLL", + "NEWT_TEXTBOX_WRAP", + "NIL", + "NOAUTH", + "NOCHILDRENFOREPHEMERALS", + "NODEEXISTS", + "NOEXPR", + "NONODE", + "NORM_IGNORECASE", + "NORM_IGNOREKANATYPE", + "NORM_IGNOREKASHIDA", + "NORM_IGNORENONSPACE", + "NORM_IGNORESYMBOLS", + "NORM_IGNOREWIDTH", + "NOSTR", + "NOTCONNECTED_STATE", + "NOTEMPTY", + "NOTHING", + "NOTREADONLY", + "NOTWATCHING_EVENT", + "NOWATCHER", + "N_CS_PRECEDES", + "N_SEP_BY_SPACE", + "N_SIGN_POSN", + "OAUTH_AUTH_TYPE_AUTHORIZATION", + "OAUTH_AUTH_TYPE_FORM", + "OAUTH_AUTH_TYPE_NONE", + "OAUTH_AUTH_TYPE_URI", + "OAUTH_BAD_NONCE", + "OAUTH_BAD_TIMESTAMP", + "OAUTH_CONSUMER_KEY_REFUSED", + "OAUTH_CONSUMER_KEY_UNKNOWN", + "OAUTH_HTTP_METHOD_DELETE", + "OAUTH_HTTP_METHOD_GET", + "OAUTH_HTTP_METHOD_HEAD", + "OAUTH_HTTP_METHOD_POST", + "OAUTH_HTTP_METHOD_PUT", + "OAUTH_INVALID_SIGNATURE", + "OAUTH_OK", + "OAUTH_PARAMETER_ABSENT", + "OAUTH_REQENGINE_CURL", + "OAUTH_REQENGINE_STREAMS", + "OAUTH_SIGNATURE_METHOD_REJECTED", + "OAUTH_SIG_METHOD_HMACSHA1", + "OAUTH_SIG_METHOD_HMACSHA256", + "OAUTH_SIG_METHOD_RSASHA1", + "OAUTH_TOKEN_EXPIRED", + "OAUTH_TOKEN_REJECTED", + "OAUTH_TOKEN_REVOKED", + "OAUTH_TOKEN_USED", + "OAUTH_VERIFIER_INVALID", + "OCI_ASSOC", + "OCI_BOTH", + "OCI_B_BFILE", + "OCI_B_BIN", + "OCI_B_BLOB", + "OCI_B_BOL", + "OCI_B_CFILEE", + "OCI_B_CLOB", + "OCI_B_CURSOR", + "OCI_B_INT", + "OCI_B_NTY", + "OCI_B_NUM", + "OCI_B_ROWID", + "OCI_B_SQLT_NTY", + "OCI_COMMIT_ON_SUCCESS", + "OCI_CRED_EXT", + "OCI_DESCRIBE_ONLY", + "OCI_DTYPE_FILE", + "OCI_DTYPE_LOB", + "OCI_DTYPE_ROWID", + "OCI_FETCHSTATEMENT_BY_COLUMN", + "OCI_FETCHSTATEMENT_BY_ROW", + "OCI_LOB_BUFFER_FREE", + "OCI_NO_AUTO_COMMIT", + "OCI_NUM", + "OCI_RETURN_LOBS", + "OCI_RETURN_NULLS", + "OCI_SEEK_CUR", + "OCI_SEEK_END", + "OCI_SEEK_SET", + "OCI_SYSDBA", + "OCI_SYSOPER", + "OCI_TEMP_BLOB", + "OCI_TEMP_CLOB", + "ODBC_BINMODE_CONVERT", + "ODBC_BINMODE_PASSTHRU", + "ODBC_BINMODE_RETURN", + "ODBC_TYPE", + "OGGVORBIS_PCM_S8", + "OGGVORBIS_PCM_S16_BE", + "OGGVORBIS_PCM_S16_LE", + "OGGVORBIS_PCM_U8", + "OGGVORBIS_PCM_U16_BE", + "OGGVORBIS_PCM_U16_LE", + "OK", + "OPENSSL_ALGO_DSS1", + "OPENSSL_ALGO_MD2", + "OPENSSL_ALGO_MD4", + "OPENSSL_ALGO_MD5", + "OPENSSL_ALGO_RMD160", + "OPENSSL_ALGO_SHA1", + "OPENSSL_ALGO_SHA224", + "OPENSSL_ALGO_SHA256", + "OPENSSL_ALGO_SHA384", + "OPENSSL_ALGO_SHA512", + "OPENSSL_CIPHER_3DES", + "OPENSSL_CIPHER_AES_128_CBC", + "OPENSSL_CIPHER_AES_192_CBC", + "OPENSSL_CIPHER_AES_256_CBC", + "OPENSSL_CIPHER_DES", + "OPENSSL_CIPHER_RC2_40", + "OPENSSL_CIPHER_RC2_64", + "OPENSSL_CIPHER_RC2_128", + "OPENSSL_KEYTYPE_DH", + "OPENSSL_KEYTYPE_DSA", + "OPENSSL_KEYTYPE_EC", + "OPENSSL_KEYTYPE_RSA", + "OPENSSL_NO_PADDING", + "OPENSSL_PKCS1_OAEP_PADDING", + "OPENSSL_PKCS1_PADDING", + "OPENSSL_SSLV23_PADDING", + "OPENSSL_TLSEXT_SERVER_NAME", + "OPENSSL_VERSION_NUMBER", + "OPENSSL_VERSION_TEXT", + "OPERATIONTIMEOUT", + "OP_ANONYMOUS", + "OP_DEBUG", + "OP_EXPUNGE", + "OP_HALFOPEN", + "OP_PROTOTYPE", + "OP_READONLY", + "OP_SECURE", + "OP_SHORTCACHE", + "OP_SILENT", + "O_APPEND", + "O_ASYNC", + "O_CREAT", + "O_EXCL", + "O_NDELAY", + "O_NOCTTY", + "O_NONBLOCK", + "O_RDONLY", + "O_RDWR", + "O_SYNC", + "O_TRUNC", + "O_WRONLY", + "PARSEKIT_EXTENDED_VALUE", + "PARSEKIT_IS_CONST", + "PARSEKIT_IS_TMP_VAR", + "PARSEKIT_IS_UNUSED", + "PARSEKIT_IS_VAR", + "PARSEKIT_QUIET", + "PARSEKIT_RESULT_CONST", + "PARSEKIT_RESULT_EA_TYPE", + "PARSEKIT_RESULT_JMP_ADDR", + "PARSEKIT_RESULT_OPARRAY", + "PARSEKIT_RESULT_OPLINE", + "PARSEKIT_RESULT_VAR", + "PARSEKIT_SIMPLE", + "PARSEKIT_USAGE_UNKNOWN", + "PARSEKIT_ZEND_ADD", + "PARSEKIT_ZEND_ADD_ARRAY_ELEMENT", + "PARSEKIT_ZEND_ADD_CHAR", + "PARSEKIT_ZEND_ADD_INTERFACE", + "PARSEKIT_ZEND_ADD_STRING", + "PARSEKIT_ZEND_ADD_VAR", + "PARSEKIT_ZEND_ASSIGN", + "PARSEKIT_ZEND_ASSIGN_ADD", + "PARSEKIT_ZEND_ASSIGN_BW_AND", + "PARSEKIT_ZEND_ASSIGN_BW_OR", + "PARSEKIT_ZEND_ASSIGN_BW_XOR", + "PARSEKIT_ZEND_ASSIGN_CONCAT", + "PARSEKIT_ZEND_ASSIGN_DIM", + "PARSEKIT_ZEND_ASSIGN_DIV", + "PARSEKIT_ZEND_ASSIGN_MOD", + "PARSEKIT_ZEND_ASSIGN_MUL", + "PARSEKIT_ZEND_ASSIGN_OBJ", + "PARSEKIT_ZEND_ASSIGN_REF", + "PARSEKIT_ZEND_ASSIGN_SL", + "PARSEKIT_ZEND_ASSIGN_SR", + "PARSEKIT_ZEND_ASSIGN_SUB", + "PARSEKIT_ZEND_BEGIN_SILENCE", + "PARSEKIT_ZEND_BOOL", + "PARSEKIT_ZEND_BOOL_NOT", + "PARSEKIT_ZEND_BOOL_XOR", + "PARSEKIT_ZEND_BRK", + "PARSEKIT_ZEND_BW_AND", + "PARSEKIT_ZEND_BW_NOT", + "PARSEKIT_ZEND_BW_OR", + "PARSEKIT_ZEND_BW_XOR", + "PARSEKIT_ZEND_CASE", + "PARSEKIT_ZEND_CAST", + "PARSEKIT_ZEND_CATCH", + "PARSEKIT_ZEND_CLONE", + "PARSEKIT_ZEND_CONCAT", + "PARSEKIT_ZEND_CONT", + "PARSEKIT_ZEND_DECLARE_CLASS", + "PARSEKIT_ZEND_DECLARE_FUNCTION", + "PARSEKIT_ZEND_DECLARE_INHERITED_CLASS", + "PARSEKIT_ZEND_DIV", + "PARSEKIT_ZEND_DO_FCALL", + "PARSEKIT_ZEND_DO_FCALL_BY_NAME", + "PARSEKIT_ZEND_ECHO", + "PARSEKIT_ZEND_END_SILENCE", + "PARSEKIT_ZEND_EVAL_CODE", + "PARSEKIT_ZEND_EXIT", + "PARSEKIT_ZEND_EXT_FCALL_BEGIN", + "PARSEKIT_ZEND_EXT_FCALL_END", + "PARSEKIT_ZEND_EXT_NOP", + "PARSEKIT_ZEND_EXT_STMT", + "PARSEKIT_ZEND_FETCH_CLASS", + "PARSEKIT_ZEND_FETCH_CONSTANT", + "PARSEKIT_ZEND_FETCH_DIM_FUNC_ARG", + "PARSEKIT_ZEND_FETCH_DIM_IS", + "PARSEKIT_ZEND_FETCH_DIM_R", + "PARSEKIT_ZEND_FETCH_DIM_RW", + "PARSEKIT_ZEND_FETCH_DIM_TMP_VAR", + "PARSEKIT_ZEND_FETCH_DIM_UNSET", + "PARSEKIT_ZEND_FETCH_DIM_W", + "PARSEKIT_ZEND_FETCH_FUNC_ARG", + "PARSEKIT_ZEND_FETCH_IS", + "PARSEKIT_ZEND_FETCH_OBJ_FUNC_ARG", + "PARSEKIT_ZEND_FETCH_OBJ_IS", + "PARSEKIT_ZEND_FETCH_OBJ_R", + "PARSEKIT_ZEND_FETCH_OBJ_RW", + "PARSEKIT_ZEND_FETCH_OBJ_UNSET", + "PARSEKIT_ZEND_FETCH_OBJ_W", + "PARSEKIT_ZEND_FETCH_R", + "PARSEKIT_ZEND_FETCH_RW", + "PARSEKIT_ZEND_FETCH_UNSET", + "PARSEKIT_ZEND_FETCH_W", + "PARSEKIT_ZEND_FE_FETCH", + "PARSEKIT_ZEND_FE_RESET", + "PARSEKIT_ZEND_FREE", + "PARSEKIT_ZEND_HANDLE_EXCEPTION", + "PARSEKIT_ZEND_IMPORT_CLASS", + "PARSEKIT_ZEND_IMPORT_CONST", + "PARSEKIT_ZEND_IMPORT_FUNCTION", + "PARSEKIT_ZEND_INCLUDE_OR_EVAL", + "PARSEKIT_ZEND_INIT_ARRAY", + "PARSEKIT_ZEND_INIT_CTOR_CALL", + "PARSEKIT_ZEND_INIT_FCALL_BY_NAME", + "PARSEKIT_ZEND_INIT_METHOD_CALL", + "PARSEKIT_ZEND_INIT_STATIC_METHOD_CALL", + "PARSEKIT_ZEND_INIT_STRING", + "PARSEKIT_ZEND_INSTANCEOF", + "PARSEKIT_ZEND_INTERNAL_CLASS", + "PARSEKIT_ZEND_INTERNAL_FUNCTION", + "PARSEKIT_ZEND_ISSET_ISEMPTY", + "PARSEKIT_ZEND_ISSET_ISEMPTY_DIM_OBJ", + "PARSEKIT_ZEND_ISSET_ISEMPTY_PROP_OBJ", + "PARSEKIT_ZEND_ISSET_ISEMPTY_VAR", + "PARSEKIT_ZEND_IS_EQUAL", + "PARSEKIT_ZEND_IS_IDENTICAL", + "PARSEKIT_ZEND_IS_NOT_EQUAL", + "PARSEKIT_ZEND_IS_NOT_IDENTICAL", + "PARSEKIT_ZEND_IS_SMALLER", + "PARSEKIT_ZEND_IS_SMALLER_OR_EQUAL", + "PARSEKIT_ZEND_JMP", + "PARSEKIT_ZEND_JMPNZ", + "PARSEKIT_ZEND_JMPNZ_EX", + "PARSEKIT_ZEND_JMPZ", + "PARSEKIT_ZEND_JMPZNZ", + "PARSEKIT_ZEND_JMPZ_EX", + "PARSEKIT_ZEND_JMP_NO_CTOR", + "PARSEKIT_ZEND_MOD", + "PARSEKIT_ZEND_MUL", + "PARSEKIT_ZEND_NEW", + "PARSEKIT_ZEND_NOP", + "PARSEKIT_ZEND_OP_DATA", + "PARSEKIT_ZEND_OVERLOADED_FUNCTION", + "PARSEKIT_ZEND_OVERLOADED_FUNCTION_TEMPORARY", + "PARSEKIT_ZEND_POST_DEC", + "PARSEKIT_ZEND_POST_DEC_OBJ", + "PARSEKIT_ZEND_POST_INC", + "PARSEKIT_ZEND_POST_INC_OBJ", + "PARSEKIT_ZEND_PRE_DEC", + "PARSEKIT_ZEND_PRE_DEC_OBJ", + "PARSEKIT_ZEND_PRE_INC", + "PARSEKIT_ZEND_PRE_INC_OBJ", + "PARSEKIT_ZEND_PRINT", + "PARSEKIT_ZEND_QM_ASSIGN", + "PARSEKIT_ZEND_RAISE_ABSTRACT_ERROR", + "PARSEKIT_ZEND_RECV", + "PARSEKIT_ZEND_RECV_INIT", + "PARSEKIT_ZEND_RETURN", + "PARSEKIT_ZEND_SEND_REF", + "PARSEKIT_ZEND_SEND_VAL", + "PARSEKIT_ZEND_SEND_VAR", + "PARSEKIT_ZEND_SEND_VAR_NO_REF", + "PARSEKIT_ZEND_SL", + "PARSEKIT_ZEND_SR", + "PARSEKIT_ZEND_SUB", + "PARSEKIT_ZEND_SWITCH_FREE", + "PARSEKIT_ZEND_THROW", + "PARSEKIT_ZEND_TICKS", + "PARSEKIT_ZEND_UNSET_DIM_OBJ", + "PARSEKIT_ZEND_UNSET_VAR", + "PARSEKIT_ZEND_USER_CLASS", + "PARSEKIT_ZEND_USER_FUNCTION", + "PARSEKIT_ZEND_VERIFY_ABSTRACT_CLASS", + "PASSWORD_ARGON2I", + "PASSWORD_ARGON2ID", + "PASSWORD_ARGON2_DEFAULT_MEMORY_COST", + "PASSWORD_ARGON2_DEFAULT_THREADS", + "PASSWORD_ARGON2_DEFAULT_TIME_COST", + "PASSWORD_BCRYPT", + "PASSWORD_DEFAULT", + "PATHINFO_BASENAME", + "PATHINFO_DIRNAME", + "PATHINFO_EXTENSION", + "PATHINFO_FILENAME", + "PATH_SEPARATOR", + "PCRE_VERSION", + "PERM_ADMIN", + "PERM_ALL", + "PERM_CREATE", + "PERM_DELETE", + "PERM_READ", + "PERM_WRITE", + "PGSQL_ASSOC", + "PGSQL_BAD_RESPONSE", + "PGSQL_BOTH", + "PGSQL_COMMAND_OK", + "PGSQL_CONNECTION_AUTH_OK", + "PGSQL_CONNECTION_AWAITING_RESPONSE", + "PGSQL_CONNECTION_BAD", + "PGSQL_CONNECTION_MADE", + "PGSQL_CONNECTION_OK", + "PGSQL_CONNECTION_SETENV", + "PGSQL_CONNECTION_SSL_STARTUP", + "PGSQL_CONNECTION_STARTED", + "PGSQL_CONNECT_ASYNC", + "PGSQL_CONNECT_FORCE_NEW", + "PGSQL_CONV_FORCE_NULL", + "PGSQL_CONV_IGNORE_DEFAULT", + "PGSQL_CONV_IGNORE_NOT_NULL", + "PGSQL_COPY_IN", + "PGSQL_COPY_OUT", + "PGSQL_DIAG_COLUMN_NAME", + "PGSQL_DIAG_CONSTRAINT_NAME", + "PGSQL_DIAG_CONTEXT", + "PGSQL_DIAG_DATATYPE_NAME", + "PGSQL_DIAG_INTERNAL_POSITION", + "PGSQL_DIAG_INTERNAL_QUERY", + "PGSQL_DIAG_MESSAGE_DETAIL", + "PGSQL_DIAG_MESSAGE_HINT", + "PGSQL_DIAG_MESSAGE_PRIMARY", + "PGSQL_DIAG_SCHEMA_NAME", + "PGSQL_DIAG_SEVERITY", + "PGSQL_DIAG_SEVERITY_NONLOCALIZED", + "PGSQL_DIAG_SOURCE_FILE", + "PGSQL_DIAG_SOURCE_FUNCTION", + "PGSQL_DIAG_SOURCE_LINE", + "PGSQL_DIAG_SQLSTATE", + "PGSQL_DIAG_STATEMENT_POSITION", + "PGSQL_DIAG_TABLE_NAME", + "PGSQL_DML_ASYNC", + "PGSQL_DML_ESCAPE", + "PGSQL_DML_EXEC", + "PGSQL_DML_NO_CONV", + "PGSQL_DML_STRING", + "PGSQL_EMPTY_QUERY", + "PGSQL_ERRORS_DEFAULT", + "PGSQL_ERRORS_TERSE", + "PGSQL_ERRORS_VERBOSE", + "PGSQL_FATAL_ERROR", + "PGSQL_LIBPQ_VERSION", + "PGSQL_LIBPQ_VERSION_STR", + "PGSQL_NONFATAL_ERROR", + "PGSQL_NOTICE_ALL", + "PGSQL_NOTICE_CLEAR", + "PGSQL_NOTICE_LAST", + "PGSQL_NUM", + "PGSQL_POLLING_ACTIVE", + "PGSQL_POLLING_FAILED", + "PGSQL_POLLING_OK", + "PGSQL_POLLING_READING", + "PGSQL_POLLING_WRITING", + "PGSQL_SEEK_CUR", + "PGSQL_SEEK_END", + "PGSQL_SEEK_SET", + "PGSQL_STATUS_LONG", + "PGSQL_STATUS_STRING", + "PGSQL_TRANSACTION_ACTIVE", + "PGSQL_TRANSACTION_IDLE", + "PGSQL_TRANSACTION_INERROR", + "PGSQL_TRANSACTION_INTRANS", + "PGSQL_TRANSACTION_UNKNOWN", + "PGSQL_TUPLES_OK", + "PHPDBG_COLOR_ERROR", + "PHPDBG_COLOR_NOTICE", + "PHPDBG_COLOR_PROMPT", + "PHPDBG_FILE", + "PHPDBG_FUNC", + "PHPDBG_LINENO", + "PHPDBG_METHOD", + "PHPDBG_VERSION", + "PHP_BINARY_READ", + "PHP_NORMAL_READ", + "PHP_OUTPUT_HANDLER_CLEAN", + "PHP_OUTPUT_HANDLER_CLEANABLE", + "PHP_OUTPUT_HANDLER_CONT", + "PHP_OUTPUT_HANDLER_END", + "PHP_OUTPUT_HANDLER_FINAL", + "PHP_OUTPUT_HANDLER_FLUSH", + "PHP_OUTPUT_HANDLER_FLUSHABLE", + "PHP_OUTPUT_HANDLER_REMOVABLE", + "PHP_OUTPUT_HANDLER_START", + "PHP_OUTPUT_HANDLER_STDFLAGS", + "PHP_OUTPUT_HANDLER_WRITE", + "PHP_QUERY_RFC1738", + "PHP_QUERY_RFC3986", + "PHP_ROUND_HALF_DOWN", + "PHP_ROUND_HALF_EVEN", + "PHP_ROUND_HALF_ODD", + "PHP_ROUND_HALF_UP", + "PHP_SESSION_ACTIVE", + "PHP_SESSION_DISABLED", + "PHP_SESSION_NONE", + "PHP_SVN_AUTH_PARAM_IGNORE_SSL_VERIFY_ERRORS", + "PHP_URL_FRAGMENT", + "PHP_URL_HOST", + "PHP_URL_PASS", + "PHP_URL_PATH", + "PHP_URL_PORT", + "PHP_URL_QUERY", + "PHP_URL_SCHEME", + "PHP_URL_USER", + "PHP_WINDOWS_NT_DOMAIN_CONTROLLER", + "PHP_WINDOWS_NT_SERVER", + "PHP_WINDOWS_NT_WORKSTATION", + "PHP_WINDOWS_VERSION_BUILD", + "PHP_WINDOWS_VERSION_MAJOR", + "PHP_WINDOWS_VERSION_MINOR", + "PHP_WINDOWS_VERSION_PLATFORM", + "PHP_WINDOWS_VERSION_PRODUCTTYPE", + "PHP_WINDOWS_VERSION_SP_MAJOR", + "PHP_WINDOWS_VERSION_SP_MINOR", + "PHP_WINDOWS_VERSION_SUITEMASK", + "PKCS7_BINARY", + "PKCS7_DETACHED", + "PKCS7_NOATTR", + "PKCS7_NOCERTS", + "PKCS7_NOCHAIN", + "PKCS7_NOINTERN", + "PKCS7_NOSIGS", + "PKCS7_NOVERIFY", + "PKCS7_TEXT", + "PM_STR", + "PNG_ALL_FILTERS", + "PNG_FILTER_AVG", + "PNG_FILTER_NONE", + "PNG_FILTER_PAETH", + "PNG_FILTER_SUB", + "PNG_FILTER_UP", + "PNG_NO_FILTER", + "POLL_ERR", + "POLL_HUP", + "POLL_IN", + "POLL_MSG", + "POLL_OUT", + "POLL_PRI", + "POSITIVE_SIGN", + "POSIX_F_OK", + "POSIX_RLIMIT_AS", + "POSIX_RLIMIT_CORE", + "POSIX_RLIMIT_CPU", + "POSIX_RLIMIT_DATA", + "POSIX_RLIMIT_FSIZE", + "POSIX_RLIMIT_INFINITY", + "POSIX_RLIMIT_KQUEUES", + "POSIX_RLIMIT_LOCKS", + "POSIX_RLIMIT_MEMLOCK", + "POSIX_RLIMIT_MSGQUEUE", + "POSIX_RLIMIT_NICE", + "POSIX_RLIMIT_NOFILE", + "POSIX_RLIMIT_NPROC", + "POSIX_RLIMIT_NPTS", + "POSIX_RLIMIT_RSS", + "POSIX_RLIMIT_RTPRIO", + "POSIX_RLIMIT_RTTIME", + "POSIX_RLIMIT_SIGPENDING", + "POSIX_RLIMIT_STACK", + "POSIX_R_OK", + "POSIX_S_IFBLK", + "POSIX_S_IFCHR", + "POSIX_S_IFIFO", + "POSIX_S_IFREG", + "POSIX_S_IFSOCK", + "POSIX_W_OK", + "POSIX_X_OK", + "PREG_BACKTRACK_LIMIT_ERROR", + "PREG_BAD_UTF8_ERROR", + "PREG_BAD_UTF8_OFFSET_ERROR", + "PREG_INTERNAL_ERROR", + "PREG_JIT_STACKLIMIT_ERROR", + "PREG_NO_ERROR", + "PREG_OFFSET_CAPTURE", + "PREG_PATTERN_ORDER", + "PREG_RECURSION_LIMIT_ERROR", + "PREG_SET_ORDER", + "PREG_SPLIT_DELIM_CAPTURE", + "PREG_SPLIT_NO_EMPTY", + "PREG_SPLIT_OFFSET_CAPTURE", + "PREG_UNMATCHED_AS_NULL", + "PROF_TRACE", + "PSFS_ERR_FATAL", + "PSFS_FEED_ME", + "PSFS_FLAG_FLUSH_CLOSE", + "PSFS_FLAG_FLUSH_INC", + "PSFS_FLAG_NORMAL", + "PSFS_PASS_ON", + "PSPELL_BAD_SPELLERS", + "PSPELL_FAST", + "PSPELL_NORMAL", + "PSPELL_RUN_TOGETHER", + "PTHREADS_ALLOW_HEADERS", + "PTHREADS_INHERIT_ALL", + "PTHREADS_INHERIT_CLASSES", + "PTHREADS_INHERIT_COMMENTS", + "PTHREADS_INHERIT_CONSTANTS", + "PTHREADS_INHERIT_FUNCTIONS", + "PTHREADS_INHERIT_INCLUDES", + "PTHREADS_INHERIT_INI", + "PTHREADS_INHERIT_NONE", + "P_CS_PRECEDES", + "P_SEP_BY_SPACE", + "P_SIGN_POSN", + "RADIUS_ACCESS_ACCEPT", + "RADIUS_ACCESS_CHALLENGE", + "RADIUS_ACCESS_REJECT", + "RADIUS_ACCESS_REQUEST", + "RADIUS_ACCOUNTING_REQUEST", + "RADIUS_ACCOUNTING_RESPONSE", + "RADIUS_ACCT_AUTHENTIC", + "RADIUS_ACCT_DELAY_TIME", + "RADIUS_ACCT_INPUT_OCTETS", + "RADIUS_ACCT_INPUT_PACKETS", + "RADIUS_ACCT_LINK_COUNT", + "RADIUS_ACCT_MULTI_SESSION_ID", + "RADIUS_ACCT_OUTPUT_OCTETS", + "RADIUS_ACCT_OUTPUT_PACKETS", + "RADIUS_ACCT_SESSION_ID", + "RADIUS_ACCT_SESSION_TIME", + "RADIUS_ACCT_STATUS_TYPE", + "RADIUS_ACCT_TERMINATE_CAUSE", + "RADIUS_CALLBACK_ID", + "RADIUS_CALLBACK_NUMBER", + "RADIUS_CALLED_STATION_ID", + "RADIUS_CALLING_STATION_ID", + "RADIUS_CHAP_CHALLENGE", + "RADIUS_CHAP_PASSWORD", + "RADIUS_CLASS", + "RADIUS_COA_ACK", + "RADIUS_COA_NAK", + "RADIUS_COA_REQUEST", + "RADIUS_CONNECT_INFO", + "RADIUS_DISCONNECT_ACK", + "RADIUS_DISCONNECT_NAK", + "RADIUS_DISCONNECT_REQUEST", + "RADIUS_FILTER_ID", + "RADIUS_FRAMED_APPLETALK_LINK", + "RADIUS_FRAMED_APPLETALK_NETWORK", + "RADIUS_FRAMED_APPLETALK_ZONE", + "RADIUS_FRAMED_COMPRESSION", + "RADIUS_FRAMED_IPX_NETWORK", + "RADIUS_FRAMED_IP_ADDRESS", + "RADIUS_FRAMED_IP_NETMASK", + "RADIUS_FRAMED_MTU", + "RADIUS_FRAMED_PROTOCOL", + "RADIUS_FRAMED_ROUTE", + "RADIUS_FRAMED_ROUTING", + "RADIUS_IDLE_TIMEOUT", + "RADIUS_LOGIN_IP_HOST", + "RADIUS_LOGIN_LAT_GROUP", + "RADIUS_LOGIN_LAT_NODE", + "RADIUS_LOGIN_LAT_PORT", + "RADIUS_LOGIN_LAT_SERVICE", + "RADIUS_LOGIN_SERVICE", + "RADIUS_LOGIN_TCP_PORT", + "RADIUS_MPPE_KEY_LEN", + "RADIUS_NAS_IDENTIFIER", + "RADIUS_NAS_IP_ADDRESS", + "RADIUS_NAS_PORT", + "RADIUS_NAS_PORT_TYPE", + "RADIUS_OPTION_SALT", + "RADIUS_OPTION_TAGGED", + "RADIUS_PORT_LIMIT", + "RADIUS_PROXY_STATE", + "RADIUS_REPLY_MESSAGE", + "RADIUS_SERVICE_TYPE", + "RADIUS_SESSION_TIMEOUT", + "RADIUS_STATE", + "RADIUS_TERMINATION_ACTION", + "RADIUS_USER_NAME", + "RADIUS_USER_PASSWORD", + "RADIUS_VENDOR_MICROSOFT", + "RADIUS_VENDOR_SPECIFIC", + "RADIXCHAR", + "RAR_HOST_BEOS", + "RAR_HOST_MSDOS", + "RAR_HOST_OS2", + "RAR_HOST_UNIX", + "RAR_HOST_WIN32", + "READONLY_STATE", + "RECONFIGDISABLED", + "RECONFIGINPROGRESS", + "REPLACE", + "RPMREADER_ARCH", + "RPMREADER_ARCHIVESIZE", + "RPMREADER_BASENAMES", + "RPMREADER_BUILDARCHS", + "RPMREADER_BUILDHOST", + "RPMREADER_BUILDTIME", + "RPMREADER_CACHECTIME", + "RPMREADER_CACHEPKGMTIME", + "RPMREADER_CACHEPKGPATH", + "RPMREADER_CACHEPKGSIZE", + "RPMREADER_CHANGELOGNAME", + "RPMREADER_CHANGELOGTEXT", + "RPMREADER_CHANGELOGTIME", + "RPMREADER_CLASSDICT", + "RPMREADER_CONFLICTFLAGS", + "RPMREADER_CONFLICTNAME", + "RPMREADER_CONFLICTVERSION", + "RPMREADER_COOKIE", + "RPMREADER_COPYRIGHT", + "RPMREADER_DEPENDSDICT", + "RPMREADER_DESCRIPTION", + "RPMREADER_DIRINDEXES", + "RPMREADER_DIRNAMES", + "RPMREADER_DISTRIBUTION", + "RPMREADER_DISTURL", + "RPMREADER_EPOCH", + "RPMREADER_EXCLUDEARCH", + "RPMREADER_EXCLUDEOS", + "RPMREADER_EXCLUSIVEARCH", + "RPMREADER_EXCLUSIVEOS", + "RPMREADER_FILECLASS", + "RPMREADER_FILECOLORS", + "RPMREADER_FILECONTEXTS", + "RPMREADER_FILEDEPENDSN", + "RPMREADER_FILEDEPENDSX", + "RPMREADER_FILEDEVICES", + "RPMREADER_FILEFLAGS", + "RPMREADER_FILEGROUPNAME", + "RPMREADER_FILEINODES", + "RPMREADER_FILELANGS", + "RPMREADER_FILELINKTOS", + "RPMREADER_FILEMD5S", + "RPMREADER_FILEMODES", + "RPMREADER_FILEMTIMES", + "RPMREADER_FILERDEVS", + "RPMREADER_FILESIZES", + "RPMREADER_FILESTATES", + "RPMREADER_FILEUSERNAME", + "RPMREADER_FILEVERIFYFLAGS", + "RPMREADER_FSCONTEXTS", + "RPMREADER_GIF", + "RPMREADER_GROUP", + "RPMREADER_ICON", + "RPMREADER_INSTALLCOLOR", + "RPMREADER_INSTALLTID", + "RPMREADER_INSTALLTIME", + "RPMREADER_INSTPREFIXES", + "RPMREADER_LICENSE", + "RPMREADER_MAXIMUM", + "RPMREADER_MINIMUM", + "RPMREADER_NAME", + "RPMREADER_OBSOLETEFLAGS", + "RPMREADER_OBSOLETENAME", + "RPMREADER_OBSOLETES", + "RPMREADER_OBSOLETEVERSION", + "RPMREADER_OLDFILENAMES", + "RPMREADER_OPTFLAGS", + "RPMREADER_OS", + "RPMREADER_PACKAGER", + "RPMREADER_PATCH", + "RPMREADER_PATCHESFLAGS", + "RPMREADER_PATCHESNAME", + "RPMREADER_PATCHESVERSION", + "RPMREADER_PAYLOADCOMPRESSOR", + "RPMREADER_PAYLOADFLAGS", + "RPMREADER_PAYLOADFORMAT", + "RPMREADER_PLATFORM", + "RPMREADER_POLICIES", + "RPMREADER_POSTIN", + "RPMREADER_POSTINPROG", + "RPMREADER_POSTUN", + "RPMREADER_POSTUNPROG", + "RPMREADER_PREFIXES", + "RPMREADER_PREIN", + "RPMREADER_PREINPROG", + "RPMREADER_PREUN", + "RPMREADER_PREUNPROG", + "RPMREADER_PROVIDEFLAGS", + "RPMREADER_PROVIDENAME", + "RPMREADER_PROVIDES", + "RPMREADER_PROVIDEVERSION", + "RPMREADER_RECONTEXTS", + "RPMREADER_RELEASE", + "RPMREADER_REMOVETID", + "RPMREADER_REQUIREFLAGS", + "RPMREADER_REQUIRENAME", + "RPMREADER_REQUIREVERSION", + "RPMREADER_RHNPLATFORM", + "RPMREADER_RPMVERSION", + "RPMREADER_SERIAL", + "RPMREADER_SIZE", + "RPMREADER_SOURCE", + "RPMREADER_SOURCEPKGID", + "RPMREADER_SOURCERPM", + "RPMREADER_SUMMARY", + "RPMREADER_TRIGGERFLAGS", + "RPMREADER_TRIGGERINDEX", + "RPMREADER_TRIGGERNAME", + "RPMREADER_TRIGGERSCRIPTPROG", + "RPMREADER_TRIGGERSCRIPTS", + "RPMREADER_TRIGGERVERSION", + "RPMREADER_URL", + "RPMREADER_VENDOR", + "RPMREADER_VERIFYSCRIPT", + "RPMREADER_VERIFYSCRIPTPROG", + "RPMREADER_VERSION", + "RPMREADER_XPM", + "RUNKIT_ACC_PRIVATE", + "RUNKIT_ACC_PROTECTED", + "RUNKIT_ACC_PUBLIC", + "RUNKIT_ACC_STATIC", + "RUNKIT_IMPORT_CLASSES", + "RUNKIT_IMPORT_CLASS_CONSTS", + "RUNKIT_IMPORT_CLASS_METHODS", + "RUNKIT_IMPORT_CLASS_PROPS", + "RUNKIT_IMPORT_CLASS_STATIC_PROPS", + "RUNKIT_IMPORT_FUNCTIONS", + "RUNKIT_IMPORT_OVERRIDE", + "RUNKIT_VERSION", + "RUNTIMEINCONSISTENCY", + "SAM_AUTO", + "SAM_BOOLEAN", + "SAM_BUS", + "SAM_BYTE", + "SAM_BYTES", + "SAM_CORRELID", + "SAM_DELIVERYMODE", + "SAM_DOUBLE", + "SAM_ENDPOINTS", + "SAM_FLOAT", + "SAM_HOST", + "SAM_INT", + "SAM_LONG", + "SAM_MANUAL", + "SAM_MESSAGEID", + "SAM_MQTT", + "SAM_MQTT_CLEANSTART", + "SAM_NON_PERSISTENT", + "SAM_PASSWORD", + "SAM_PERSISTENT", + "SAM_PORT", + "SAM_PRIORITY", + "SAM_REPLY_TO", + "SAM_RTT", + "SAM_STRING", + "SAM_TARGETCHAIN", + "SAM_TEXT", + "SAM_TIMETOLIVE", + "SAM_TRANSACTIONS", + "SAM_TYPE", + "SAM_USERID", + "SAM_WAIT", + "SAM_WMQ", + "SAM_WMQ_BINDINGS", + "SAM_WMQ_CLIENT", + "SAM_WMQ_TARGET_CLIENT", + "SAM_WPM", + "SA_ALL", + "SA_MESSAGES", + "SA_RECENT", + "SA_UIDNEXT", + "SA_UIDVALIDITY", + "SA_UNSEEN", + "SCANDIR_SORT_ASCENDING", + "SCANDIR_SORT_DESCENDING", + "SCANDIR_SORT_NONE", + "SCM_CREDS2", + "SEARCHD_ERROR", + "SEARCHD_OK", + "SEARCHD_RETRY", + "SEARCHD_WARNING", + "SEASLOG_ALERT", + "SEASLOG_ALL", + "SEASLOG_APPENDER_FILE", + "SEASLOG_APPENDER_TCP", + "SEASLOG_APPENDER_UDP", + "SEASLOG_AUTHOR", + "SEASLOG_CLOSE_LOGGER_STREAM_MOD_ALL", + "SEASLOG_CLOSE_LOGGER_STREAM_MOD_ASSIGN", + "SEASLOG_CRITICAL", + "SEASLOG_DEBUG", + "SEASLOG_DETAIL_ORDER_ASC", + "SEASLOG_DETAIL_ORDER_DESC", + "SEASLOG_EMERGENCY", + "SEASLOG_ERROR", + "SEASLOG_INFO", + "SEASLOG_NOTICE", + "SEASLOG_REQUEST_VARIABLE_CLIENT_IP", + "SEASLOG_REQUEST_VARIABLE_DOMAIN_PORT", + "SEASLOG_REQUEST_VARIABLE_REQUEST_METHOD", + "SEASLOG_REQUEST_VARIABLE_REQUEST_URI", + "SEASLOG_VERSION", + "SEASLOG_WARNING", + "SEEK_CUR", + "SEEK_END", + "SEEK_SET", + "SEGV_ACCERR", + "SEGV_MAPERR", + "SEQUENCE", + "SESSIONEXPIRED", + "SESSIONMOVED", + "SESSION_EVENT", + "SE_FREE", + "SE_NOPREFETCH", + "SE_UID", + "SID", + "SIGABRT", + "SIGALRM", + "SIGBABY", + "SIGBUS", + "SIGCHLD", + "SIGCLD", + "SIGCONT", + "SIGFPE", + "SIGHUP", + "SIGILL", + "SIGINT", + "SIGIO", + "SIGIOT", + "SIGKILL", + "SIGPIPE", + "SIGPOLL", + "SIGPROF", + "SIGPWR", + "SIGQUIT", + "SIGSEGV", + "SIGSTKFLT", + "SIGSTOP", + "SIGSYS", + "SIGTERM", + "SIGTRAP", + "SIGTSTP", + "SIGTTIN", + "SIGTTOU", + "SIGURG", + "SIGUSR1", + "SIGUSR2", + "SIGVTALRM", + "SIGWINCH", + "SIGXCPU", + "SIGXFSZ", + "SIG_BLOCK", + "SIG_DFL", + "SIG_ERR", + "SIG_IGN", + "SIG_SETMASK", + "SIG_UNBLOCK", + "SI_ASYNCIO", + "SI_KERNEL", + "SI_MSGGQ", + "SI_NOINFO", + "SI_QUEUE", + "SI_SIGIO", + "SI_TIMER", + "SI_TKILL", + "SI_USER", + "SKF_AD_ALU_XOR_X", + "SKF_AD_CPU", + "SKF_AD_HATYPE", + "SKF_AD_IFINDEX", + "SKF_AD_MARK", + "SKF_AD_MAX", + "SKF_AD_NLATTR", + "SKF_AD_NLATTR_NEST", + "SKF_AD_OFF", + "SKF_AD_PAY_OFFSET", + "SKF_AD_PKTTYPE", + "SKF_AD_PROTOCOL", + "SKF_AD_QUEUE", + "SKF_AD_RANDOM", + "SKF_AD_RXHASH", + "SKF_AD_VLAN_TAG", + "SKF_AD_VLAN_TAG_PRESENT", + "SKF_AD_VLAN_TPID", + "SNMP_BIT_STR", + "SNMP_COUNTER", + "SNMP_COUNTER64", + "SNMP_INTEGER", + "SNMP_IPADDRESS", + "SNMP_NULL", + "SNMP_OBJECT_ID", + "SNMP_OCTET_STR", + "SNMP_OID_OUTPUT_FULL", + "SNMP_OID_OUTPUT_MODULE", + "SNMP_OID_OUTPUT_NONE", + "SNMP_OID_OUTPUT_NUMERIC", + "SNMP_OID_OUTPUT_SUFFIX", + "SNMP_OID_OUTPUT_UCD", + "SNMP_OPAQUE", + "SNMP_TIMETICKS", + "SNMP_UINTEGER", + "SNMP_UNSIGNED", + "SNMP_VALUE_LIBRARY", + "SNMP_VALUE_OBJECT", + "SNMP_VALUE_PLAIN", + "SOAP_1_1", + "SOAP_1_2", + "SOAP_ACTOR_NEXT", + "SOAP_ACTOR_NONE", + "SOAP_ACTOR_UNLIMATERECEIVER", + "SOAP_AUTHENTICATION_BASIC", + "SOAP_AUTHENTICATION_DIGEST", + "SOAP_COMPRESSION_ACCEPT", + "SOAP_COMPRESSION_DEFLATE", + "SOAP_COMPRESSION_GZIP", + "SOAP_DOCUMENT", + "SOAP_ENCODED", + "SOAP_ENC_ARRAY", + "SOAP_ENC_OBJECT", + "SOAP_FUNCTIONS_ALL", + "SOAP_LITERAL", + "SOAP_PERSISTENCE_REQUEST", + "SOAP_PERSISTENCE_SESSION", + "SOAP_RPC", + "SOAP_SINGLE_ELEMENT_ARRAYS", + "SOAP_SSL_METHOD_SSLv2", + "SOAP_SSL_METHOD_SSLv3", + "SOAP_SSL_METHOD_SSLv23", + "SOAP_SSL_METHOD_TLS", + "SOAP_USE_XSI_ARRAY_TYPE", + "SOAP_WAIT_ONE_WAY_CALLS", + "SOCKET_ADDRINUSE", + "SOCKET_E2BIG", + "SOCKET_EACCES", + "SOCKET_EADDRINUSE", + "SOCKET_EADDRNOTAVAIL", + "SOCKET_EADV", + "SOCKET_EAFNOSUPPORT", + "SOCKET_EAGAIN", + "SOCKET_EALREADY", + "SOCKET_EBADE", + "SOCKET_EBADF", + "SOCKET_EBADFD", + "SOCKET_EBADMSG", + "SOCKET_EBADR", + "SOCKET_EBADRQC", + "SOCKET_EBADSLT", + "SOCKET_EBUSY", + "SOCKET_ECHRNG", + "SOCKET_ECOMM", + "SOCKET_ECONNABORTED", + "SOCKET_ECONNREFUSED", + "SOCKET_ECONNRESET", + "SOCKET_EDESTADDRREQ", + "SOCKET_EDISCON", + "SOCKET_EDQUOT", + "SOCKET_EDUOT", + "SOCKET_EEXIST", + "SOCKET_EFAULT", + "SOCKET_EHOSTDOWN", + "SOCKET_EHOSTUNREACH", + "SOCKET_EIDRM", + "SOCKET_EINPROGRESS", + "SOCKET_EINTR", + "SOCKET_EINVAL", + "SOCKET_EIO", + "SOCKET_EISCONN", + "SOCKET_EISDIR", + "SOCKET_EISNAM", + "SOCKET_EL2HLT", + "SOCKET_EL2NSYNC", + "SOCKET_EL3HLT", + "SOCKET_EL3RST", + "SOCKET_ELNRNG", + "SOCKET_ELOOP", + "SOCKET_EMEDIUMTYPE", + "SOCKET_EMFILE", + "SOCKET_EMLINK", + "SOCKET_EMSGSIZE", + "SOCKET_EMULTIHOP", + "SOCKET_ENAMETOOLONG", + "SOCKET_ENETDOWN", + "SOCKET_ENETRESET", + "SOCKET_ENETUNREACH", + "SOCKET_ENFILE", + "SOCKET_ENOANO", + "SOCKET_ENOBUFS", + "SOCKET_ENOCSI", + "SOCKET_ENODATA", + "SOCKET_ENODEV", + "SOCKET_ENOENT", + "SOCKET_ENOLCK", + "SOCKET_ENOLINK", + "SOCKET_ENOMEDIUM", + "SOCKET_ENOMEM", + "SOCKET_ENOMSG", + "SOCKET_ENONET", + "SOCKET_ENOPROTOOPT", + "SOCKET_ENOSPC", + "SOCKET_ENOSR", + "SOCKET_ENOSTR", + "SOCKET_ENOSYS", + "SOCKET_ENOTBLK", + "SOCKET_ENOTCONN", + "SOCKET_ENOTDIR", + "SOCKET_ENOTEMPTY", + "SOCKET_ENOTSOCK", + "SOCKET_ENOTTY", + "SOCKET_ENOTUNIQ", + "SOCKET_ENXIO", + "SOCKET_EOPNOTSUPP", + "SOCKET_EPERM", + "SOCKET_EPFNOSUPPORT", + "SOCKET_EPIPE", + "SOCKET_EPROCLIM", + "SOCKET_EPROTO", + "SOCKET_EPROTONOSUPPORT", + "SOCKET_EPROTOOPT", + "SOCKET_EPROTOTYPE", + "SOCKET_EREMCHG", + "SOCKET_EREMOTE", + "SOCKET_EREMOTEIO", + "SOCKET_ERESTART", + "SOCKET_EROFS", + "SOCKET_ESHUTDOWN", + "SOCKET_ESOCKTNOSUPPORT", + "SOCKET_ESPIPE", + "SOCKET_ESRMNT", + "SOCKET_ESTALE", + "SOCKET_ESTRPIPE", + "SOCKET_ETIME", + "SOCKET_ETIMEDOUT", + "SOCKET_ETOOMANYREFS", + "SOCKET_ETOOMYREFS", + "SOCKET_EUNATCH", + "SOCKET_EUSERS", + "SOCKET_EWOULDBLOCK", + "SOCKET_EXDEV", + "SOCKET_EXFULL", + "SOCKET_HOST_NOT_FOUND", + "SOCKET_NOTINITIALISED", + "SOCKET_NO_ADDRESS", + "SOCKET_NO_DATA", + "SOCKET_NO_RECOVERY", + "SOCKET_SYSNOTREADY", + "SOCKET_TRY_AGAIN", + "SOCKET_VERNOTSUPPORTED", + "SOCK_DGRAM", + "SOCK_RAW", + "SOCK_RDM", + "SOCK_SEQPACKET", + "SOCK_STREAM", + "SODIUM_CRYPTO_AEAD_AES256GCM_ABYTES", + "SODIUM_CRYPTO_AEAD_AES256GCM_KEYBYTES", + "SODIUM_CRYPTO_AEAD_AES256GCM_NPUBBYTES", + "SODIUM_CRYPTO_AEAD_AES256GCM_NSECBYTES", + "SODIUM_CRYPTO_AEAD_CHACHA20POLY1305_ABYTES", + "SODIUM_CRYPTO_AEAD_CHACHA20POLY1305_IETF_ABYTES", + "SODIUM_CRYPTO_AEAD_CHACHA20POLY1305_IETF_KEYBYTES", + "SODIUM_CRYPTO_AEAD_CHACHA20POLY1305_IETF_NPUBBYTES", + "SODIUM_CRYPTO_AEAD_CHACHA20POLY1305_IETF_NSECBYTES", + "SODIUM_CRYPTO_AEAD_CHACHA20POLY1305_KEYBYTES", + "SODIUM_CRYPTO_AEAD_CHACHA20POLY1305_NPUBBYTES", + "SODIUM_CRYPTO_AEAD_CHACHA20POLY1305_NSECBYTES", + "SODIUM_CRYPTO_AUTH_BYTES", + "SODIUM_CRYPTO_AUTH_KEYBYTES", + "SODIUM_CRYPTO_BOX_KEYPAIRBYTES", + "SODIUM_CRYPTO_BOX_MACBYTES", + "SODIUM_CRYPTO_BOX_NONCEBYTES", + "SODIUM_CRYPTO_BOX_PUBLICKEYBYTES", + "SODIUM_CRYPTO_BOX_SEALBYTES", + "SODIUM_CRYPTO_BOX_SECRETKEYBYTES", + "SODIUM_CRYPTO_BOX_SEEDBYTES", + "SODIUM_CRYPTO_CORE_RISTRETTO255_BYTES", + "SODIUM_CRYPTO_CORE_RISTRETTO255_HASHBYTES", + "SODIUM_CRYPTO_CORE_RISTRETTO255_NONREDUCEDSCALARBYTES", + "SODIUM_CRYPTO_CORE_RISTRETTO255_SCALARBYTES", + "SODIUM_CRYPTO_GENERICHASH_BYTES", + "SODIUM_CRYPTO_GENERICHASH_BYTES_MAX", + "SODIUM_CRYPTO_GENERICHASH_BYTES_MIN", + "SODIUM_CRYPTO_GENERICHASH_KEYBYTES", + "SODIUM_CRYPTO_GENERICHASH_KEYBYTES_MAX", + "SODIUM_CRYPTO_GENERICHASH_KEYBYTES_MIN", + "SODIUM_CRYPTO_KDF_BYTES_MAX", + "SODIUM_CRYPTO_KDF_BYTES_MIN", + "SODIUM_CRYPTO_KDF_CONTEXTBYTES", + "SODIUM_CRYPTO_KDF_KEYBYTES", + "SODIUM_CRYPTO_KX_KEYPAIRBYTES", + "SODIUM_CRYPTO_KX_PUBLICKEYBYTES", + "SODIUM_CRYPTO_KX_SECRETKEYBYTES", + "SODIUM_CRYPTO_KX_SEEDBYTES", + "SODIUM_CRYPTO_KX_SESSIONKEYBYTES", + "SODIUM_CRYPTO_PWHASH_ALG_ARGON2I13", + "SODIUM_CRYPTO_PWHASH_ALG_ARGON2ID13", + "SODIUM_CRYPTO_PWHASH_ALG_DEFAULT", + "SODIUM_CRYPTO_PWHASH_MEMLIMIT_INTERACTIVE", + "SODIUM_CRYPTO_PWHASH_MEMLIMIT_MODERATE", + "SODIUM_CRYPTO_PWHASH_MEMLIMIT_SENSITIVE", + "SODIUM_CRYPTO_PWHASH_OPSLIMIT_INTERACTIVE", + "SODIUM_CRYPTO_PWHASH_OPSLIMIT_MODERATE", + "SODIUM_CRYPTO_PWHASH_OPSLIMIT_SENSITIVE", + "SODIUM_CRYPTO_PWHASH_SALTBYTES", + "SODIUM_CRYPTO_PWHASH_SCRYPTSALSA208SHA256_MEMLIMIT_INTERACTIVE", + "SODIUM_CRYPTO_PWHASH_SCRYPTSALSA208SHA256_MEMLIMIT_SENSITIVE", + "SODIUM_CRYPTO_PWHASH_SCRYPTSALSA208SHA256_OPSLIMIT_INTERACTIVE", + "SODIUM_CRYPTO_PWHASH_SCRYPTSALSA208SHA256_OPSLIMIT_SENSITIVE", + "SODIUM_CRYPTO_PWHASH_SCRYPTSALSA208SHA256_SALTBYTES", + "SODIUM_CRYPTO_PWHASH_SCRYPTSALSA208SHA256_STRPREFIX", + "SODIUM_CRYPTO_PWHASH_STRPREFIX", + "SODIUM_CRYPTO_SCALARMULT_BYTES", + "SODIUM_CRYPTO_SCALARMULT_RISTRETTO255_BYTES", + "SODIUM_CRYPTO_SCALARMULT_RISTRETTO255_SCALARBYTES", + "SODIUM_CRYPTO_SCALARMULT_SCALARBYTES", + "SODIUM_CRYPTO_SECRETBOX_KEYBYTES", + "SODIUM_CRYPTO_SECRETBOX_MACBYTES", + "SODIUM_CRYPTO_SECRETBOX_NONCEBYTES", + "SODIUM_CRYPTO_SHORTHASH_BYTES", + "SODIUM_CRYPTO_SHORTHASH_KEYBYTES", + "SODIUM_CRYPTO_SIGN_BYTES", + "SODIUM_CRYPTO_SIGN_KEYPAIRBYTES", + "SODIUM_CRYPTO_SIGN_PUBLICKEYBYTES", + "SODIUM_CRYPTO_SIGN_SECRETKEYBYTES", + "SODIUM_CRYPTO_SIGN_SEEDBYTES", + "SODIUM_CRYPTO_STREAM_KEYBYTES", + "SODIUM_CRYPTO_STREAM_NONCEBYTES", + "SODIUM_CRYPTO_STREAM_XCHACHA20_KEYBYTES", + "SODIUM_CRYPTO_STREAM_XCHACHA20_NONCEBYTES", + "SODIUM_LIBRARY_MAJOR_VERSION", + "SODIUM_LIBRARY_MINOR_VERSION", + "SODIUM_LIBRARY_VERSION", + "SOLR_EXTENSION_VERSION", + "SOLR_MAJOR_VERSION", + "SOLR_MINOR_VERSION", + "SOLR_PATCH_VERSION", + "SOL_SOCKET", + "SOL_TCP", + "SOL_UDP", + "SORTARRIVAL", + "SORTCC", + "SORTDATE", + "SORTFROM", + "SORTSIZE", + "SORTSUBJECT", + "SORTTO", + "SORT_ASC", + "SORT_DESC", + "SORT_FLAG_CASE", + "SORT_LOCALE_STRING", + "SORT_NATURAL", + "SORT_NUMERIC", + "SORT_REGULAR", + "SORT_STRING", + "SO_ACCEPTFILTER", + "SO_BPF_EXTENSIONS", + "SO_BROADCAST", + "SO_DEBUG", + "SO_DONTROUTE", + "SO_DONTTRUNC", + "SO_ERROR", + "SO_FREE", + "SO_INCOMING_CPU", + "SO_KEEPALIVE", + "SO_LINGER", + "SO_MARK", + "SO_MEMINFO", + "SO_NOSERVER", + "SO_OOBINLINE", + "SO_RCVBUF", + "SO_RCVLOWAT", + "SO_RCVTIMEO", + "SO_REUSEADDR", + "SO_REUSEPORT", + "SO_RTABLE", + "SO_SETFIB", + "SO_SNDBUF", + "SO_SNDLOWAT", + "SO_SNDTIMEO", + "SO_TYPE", + "SO_WANTMORE", + "SO_ZEROCOPY", + "SPH_ATTR_BOOL", + "SPH_ATTR_FLOAT", + "SPH_ATTR_INTEGER", + "SPH_ATTR_MULTI", + "SPH_ATTR_ORDINAL", + "SPH_ATTR_TIMESTAMP", + "SPH_FILTER_FLOATRANGE", + "SPH_FILTER_RANGE", + "SPH_FILTER_VALUES", + "SPH_GROUPBY_ATTR", + "SPH_GROUPBY_ATTRPAIR", + "SPH_GROUPBY_DAY", + "SPH_GROUPBY_MONTH", + "SPH_GROUPBY_WEEK", + "SPH_GROUPBY_YEAR", + "SPH_MATCH_ALL", + "SPH_MATCH_ANY", + "SPH_MATCH_BOOLEAN", + "SPH_MATCH_EXTENDED", + "SPH_MATCH_EXTENDED2", + "SPH_MATCH_FULLSCAN", + "SPH_MATCH_PHRASE", + "SPH_RANK_BM25", + "SPH_RANK_NONE", + "SPH_RANK_PROXIMITY_BM25", + "SPH_RANK_WORDCOUNT", + "SPH_SORT_ATTR_ASC", + "SPH_SORT_ATTR_DESC", + "SPH_SORT_EXPR", + "SPH_SORT_EXTENDED", + "SPH_SORT_RELEVANCE", + "SPH_SORT_TIME_SEGMENTS", + "SPLIT", + "SQLBIT", + "SQLCHAR", + "SQLFLT4", + "SQLFLT8", + "SQLINT1", + "SQLINT2", + "SQLINT4", + "SQLITE3_ASSOC", + "SQLITE3_BLOB", + "SQLITE3_BOTH", + "SQLITE3_DETERMINISTIC", + "SQLITE3_FLOAT", + "SQLITE3_INTEGER", + "SQLITE3_NULL", + "SQLITE3_NUM", + "SQLITE3_OPEN_CREATE", + "SQLITE3_OPEN_READONLY", + "SQLITE3_OPEN_READWRITE", + "SQLITE3_TEXT", + "SQLITE_ABORT", + "SQLITE_ASSOC", + "SQLITE_AUTH", + "SQLITE_BOTH", + "SQLITE_BUSY", + "SQLITE_CANTOPEN", + "SQLITE_CONSTRAINT", + "SQLITE_CORRUPT", + "SQLITE_DONE", + "SQLITE_EMPTY", + "SQLITE_ERROR", + "SQLITE_FORMAT", + "SQLITE_FULL", + "SQLITE_INTERNAL", + "SQLITE_INTERRUPT", + "SQLITE_IOERR", + "SQLITE_LOCKED", + "SQLITE_MISMATCH", + "SQLITE_MISUSE", + "SQLITE_NOLFS", + "SQLITE_NOMEM", + "SQLITE_NOTADB", + "SQLITE_NOTFOUND", + "SQLITE_NUM", + "SQLITE_OK", + "SQLITE_PERM", + "SQLITE_PROTOCOL", + "SQLITE_READONLY", + "SQLITE_ROW", + "SQLITE_SCHEMA", + "SQLITE_TOOBIG", + "SQLSRV_CURSOR_BUFFERED", + "SQLSRV_CURSOR_DYNAMIC", + "SQLSRV_CURSOR_FORWARD", + "SQLSRV_CURSOR_KEYSET", + "SQLSRV_CURSOR_STATIC", + "SQLSRV_ENC_BINARY", + "SQLSRV_ENC_CHAR", + "SQLSRV_ERR_ALL", + "SQLSRV_ERR_ERRORS", + "SQLSRV_ERR_WARNINGS", + "SQLSRV_FETCH_ASSOC", + "SQLSRV_FETCH_BOTH", + "SQLSRV_FETCH_NUMERIC", + "SQLSRV_LOG_SEVERITY_ALL", + "SQLSRV_LOG_SEVERITY_ERROR", + "SQLSRV_LOG_SEVERITY_NOTICE", + "SQLSRV_LOG_SEVERITY_WARNING", + "SQLSRV_LOG_SYSTEM_ALL", + "SQLSRV_LOG_SYSTEM_CONN", + "SQLSRV_LOG_SYSTEM_INIT", + "SQLSRV_LOG_SYSTEM_OFF", + "SQLSRV_LOG_SYSTEM_STMT", + "SQLSRV_LOG_SYSTEM_UTIL", + "SQLSRV_NULLABLE_NO", + "SQLSRV_NULLABLE_UNKNOWN", + "SQLSRV_NULLABLE_YES", + "SQLSRV_PARAM_IN", + "SQLSRV_PARAM_INOUT", + "SQLSRV_PARAM_OUT", + "SQLSRV_PHPTYPE_DATETIME", + "SQLSRV_PHPTYPE_FLOAT", + "SQLSRV_PHPTYPE_INT", + "SQLSRV_PHPTYPE_STREAM", + "SQLSRV_PHPTYPE_STRING", + "SQLSRV_SCROLL_ABSOLUTE", + "SQLSRV_SCROLL_FIRST", + "SQLSRV_SCROLL_LAST", + "SQLSRV_SCROLL_NEXT", + "SQLSRV_SCROLL_PRIOR", + "SQLSRV_SCROLL_RELATIVE", + "SQLSRV_SQLTYPE_BIGINT", + "SQLSRV_SQLTYPE_BINARY", + "SQLSRV_SQLTYPE_BIT", + "SQLSRV_SQLTYPE_CHAR", + "SQLSRV_SQLTYPE_DATE", + "SQLSRV_SQLTYPE_DATETIME", + "SQLSRV_SQLTYPE_DATETIME2", + "SQLSRV_SQLTYPE_DATETIMEOFFSET", + "SQLSRV_SQLTYPE_DECIMAL", + "SQLSRV_SQLTYPE_FLOAT", + "SQLSRV_SQLTYPE_IMAGE", + "SQLSRV_SQLTYPE_INT", + "SQLSRV_SQLTYPE_MONEY", + "SQLSRV_SQLTYPE_NCHAR", + "SQLSRV_SQLTYPE_NTEXT", + "SQLSRV_SQLTYPE_NUMERIC", + "SQLSRV_SQLTYPE_NVARCHAR", + "SQLSRV_SQLTYPE_REAL", + "SQLSRV_SQLTYPE_SMALLDATETIME", + "SQLSRV_SQLTYPE_SMALLINT", + "SQLSRV_SQLTYPE_SMALLMONEY", + "SQLSRV_SQLTYPE_TEXT", + "SQLSRV_SQLTYPE_TIME", + "SQLSRV_SQLTYPE_TIMESTAMP", + "SQLSRV_SQLTYPE_TINYINT", + "SQLSRV_SQLTYPE_UDT", + "SQLSRV_SQLTYPE_UNIQUEIDENTIFIER", + "SQLSRV_SQLTYPE_VARBINARY", + "SQLSRV_SQLTYPE_VARCHAR", + "SQLSRV_SQLTYPE_XML", + "SQLSRV_TXN_READ_COMMITTED", + "SQLSRV_TXN_READ_SERIALIZABLE", + "SQLSRV_TXN_READ_UNCOMMITTED", + "SQLSRV_TXN_REPEATABLE_READ", + "SQLSRV_TXN_SNAPSHOT", + "SQLTEXT", + "SQLT_AFC", + "SQLT_AVC", + "SQLT_BDOUBLE", + "SQLT_BFILEE", + "SQLT_BFLOAT", + "SQLT_BIN", + "SQLT_BLOB", + "SQLT_BOL", + "SQLT_CFILEE", + "SQLT_CHR", + "SQLT_CLOB", + "SQLT_FLT", + "SQLT_INT", + "SQLT_LBI", + "SQLT_LNG", + "SQLT_LVC", + "SQLT_NTY", + "SQLT_NUM", + "SQLT_ODT", + "SQLT_RDD", + "SQLT_RSET", + "SQLT_STR", + "SQLT_UIN", + "SQLT_VCS", + "SQLVARCHAR", + "SQL_BEST_ROWID", + "SQL_BIGINT", + "SQL_BINARY", + "SQL_BIT", + "SQL_CHAR", + "SQL_CONCURRENCY", + "SQL_CONCUR_LOCK", + "SQL_CONCUR_READ_ONLY", + "SQL_CONCUR_ROWVER", + "SQL_CONCUR_VALUES", + "SQL_CURSOR_DYNAMIC", + "SQL_CURSOR_FORWARD_ONLY", + "SQL_CURSOR_KEYSET_DRIVEN", + "SQL_CURSOR_STATIC", + "SQL_CURSOR_TYPE", + "SQL_CUR_USE_DRIVER", + "SQL_CUR_USE_IF_NEEDED", + "SQL_CUR_USE_ODBC", + "SQL_DATE", + "SQL_DECIMAL", + "SQL_DOUBLE", + "SQL_ENSURE", + "SQL_FLOAT", + "SQL_INDEX_ALL", + "SQL_INDEX_UNIQUE", + "SQL_INTEGER", + "SQL_KEYSET_SIZE", + "SQL_LONGVARBINARY", + "SQL_LONGVARCHAR", + "SQL_NO_NULLS", + "SQL_NULLABLE", + "SQL_NUMERIC", + "SQL_ODBC_CURSORS", + "SQL_QUICK", + "SQL_REAL", + "SQL_ROWVER", + "SQL_SCOPE_CURROW", + "SQL_SCOPE_SESSION", + "SQL_SCOPE_TRANSACTION", + "SQL_SMALLINT", + "SQL_TIME", + "SQL_TIMESTAMP", + "SQL_TINYINT", + "SQL_TYPE_DATE", + "SQL_TYPE_TIME", + "SQL_TYPE_TIMESTAMP", + "SQL_VARBINARY", + "SQL_VARCHAR", + "SSH2_DEFAULT_TERMINAL", + "SSH2_DEFAULT_TERM_HEIGHT", + "SSH2_DEFAULT_TERM_UNIT", + "SSH2_DEFAULT_TERM_WIDTH", + "SSH2_FINGERPRINT_HEX", + "SSH2_FINGERPRINT_MD5", + "SSH2_FINGERPRINT_RAW", + "SSH2_FINGERPRINT_SHA1", + "SSH2_STREAM_STDERR", + "SSH2_STREAM_STDIO", + "SSH2_TERM_UNIT_CHARS", + "SSH2_TERM_UNIT_PIXELS", + "STATEMENT_TRACE", + "STDERR", + "STDIN", + "STDOUT", + "STD_PROP_LIST", + "STREAM_CAST_AS_STREAM", + "STREAM_CAST_FOR_SELECT", + "STREAM_CLIENT_ASYNC_CONNECT", + "STREAM_CLIENT_CONNECT", + "STREAM_CLIENT_PERSISTENT", + "STREAM_FILTER_ALL", + "STREAM_FILTER_READ", + "STREAM_FILTER_WRITE", + "STREAM_IPPROTO_ICMP", + "STREAM_IPPROTO_IP", + "STREAM_IPPROTO_RAW", + "STREAM_IPPROTO_TCP", + "STREAM_IPPROTO_UDP", + "STREAM_META_ACCESS", + "STREAM_META_GROUP", + "STREAM_META_GROUP_NAME", + "STREAM_META_OWNER", + "STREAM_META_OWNER_NAME", + "STREAM_META_TOUCH", + "STREAM_NOTIFY_AUTH_REQUIRED", + "STREAM_NOTIFY_AUTH_RESULT", + "STREAM_NOTIFY_COMPLETED", + "STREAM_NOTIFY_CONNECT", + "STREAM_NOTIFY_FAILURE", + "STREAM_NOTIFY_FILE_SIZE_IS", + "STREAM_NOTIFY_MIME_TYPE_IS", + "STREAM_NOTIFY_PROGRESS", + "STREAM_NOTIFY_REDIRECTED", + "STREAM_NOTIFY_RESOLVE", + "STREAM_NOTIFY_SEVERITY_ERR", + "STREAM_NOTIFY_SEVERITY_INFO", + "STREAM_NOTIFY_SEVERITY_WARN", + "STREAM_OOB", + "STREAM_PEEK", + "STREAM_PF_INET", + "STREAM_PF_INET6", + "STREAM_PF_UNIX", + "STREAM_REPORT_ERRORS", + "STREAM_SERVER_BIND", + "STREAM_SERVER_LISTEN", + "STREAM_SHUT_RD", + "STREAM_SHUT_RDWR", + "STREAM_SHUT_WR", + "STREAM_SOCK_DGRAM", + "STREAM_SOCK_RAW", + "STREAM_SOCK_RDM", + "STREAM_SOCK_SEQPACKET", + "STREAM_SOCK_STREAM", + "STREAM_URL_STAT_LINK", + "STREAM_URL_STAT_QUIET", + "STREAM_USE_PATH", + "STR_PAD_BOTH", + "STR_PAD_LEFT", + "STR_PAD_RIGHT", + "ST_SET", + "ST_SILENT", + "ST_UID", + "SUMMARY_TRACE", + "SUNFUNCS_RET_DOUBLE", + "SUNFUNCS_RET_STRING", + "SUNFUNCS_RET_TIMESTAMP", + "SVN_AUTH_PARAM_CONFIG", + "SVN_AUTH_PARAM_CONFIG_DIR", + "SVN_AUTH_PARAM_DEFAULT_PASSWORD", + "SVN_AUTH_PARAM_DEFAULT_USERNAME", + "SVN_AUTH_PARAM_DONT_STORE_PASSWORDS", + "SVN_AUTH_PARAM_NON_INTERACTIVE", + "SVN_AUTH_PARAM_NO_AUTH_CACHE", + "SVN_AUTH_PARAM_SERVER_GROUP", + "SVN_AUTH_PARAM_SSL_SERVER_CERT_INFO", + "SVN_AUTH_PARAM_SSL_SERVER_FAILURES", + "SVN_FS_CONFIG_FS_TYPE", + "SVN_FS_TYPE_BDB", + "SVN_FS_TYPE_FSFS", + "SVN_NODE_DIR", + "SVN_NODE_FILE", + "SVN_NODE_NONE", + "SVN_NODE_UNKNOWN", + "SVN_PROP_REVISION_AUTHOR", + "SVN_PROP_REVISION_DATE", + "SVN_PROP_REVISION_LOG", + "SVN_PROP_REVISION_ORIG_DATE", + "SVN_REVISION_HEAD", + "SVN_WC_STATUS_ADDED", + "SVN_WC_STATUS_CONFLICTED", + "SVN_WC_STATUS_DELETED", + "SVN_WC_STATUS_EXTERNAL", + "SVN_WC_STATUS_IGNORED", + "SVN_WC_STATUS_INCOMPLETE", + "SVN_WC_STATUS_MERGED", + "SVN_WC_STATUS_MISSING", + "SVN_WC_STATUS_MODIFIED", + "SVN_WC_STATUS_NONE", + "SVN_WC_STATUS_NORMAL", + "SVN_WC_STATUS_OBSTRUCTED", + "SVN_WC_STATUS_REPLACED", + "SVN_WC_STATUS_UNVERSIONED", + "SWFACTION_DATA", + "SWFACTION_ENTERFRAME", + "SWFACTION_KEYDOWN", + "SWFACTION_KEYUP", + "SWFACTION_MOUSEDOWN", + "SWFACTION_MOUSEMOVE", + "SWFACTION_MOUSEUP", + "SWFACTION_ONLOAD", + "SWFACTION_UNLOAD", + "SWFBUTTON_DOWN", + "SWFBUTTON_DRAGOUT", + "SWFBUTTON_DRAGOVER", + "SWFBUTTON_HIT", + "SWFBUTTON_MOUSEDOWN", + "SWFBUTTON_MOUSEOUT", + "SWFBUTTON_MOUSEOVER", + "SWFBUTTON_MOUSEUP", + "SWFBUTTON_MOUSEUPOUTSIDE", + "SWFBUTTON_OVER", + "SWFBUTTON_UP", + "SWFFILL_CLIPPED_BITMAP", + "SWFFILL_LINEAR_GRADIENT", + "SWFFILL_RADIAL_GRADIENT", + "SWFFILL_TILED_BITMAP", + "SWFTEXTFIELD_ALIGN_CENTER", + "SWFTEXTFIELD_ALIGN_JUSTIFY", + "SWFTEXTFIELD_ALIGN_LEFT", + "SWFTEXTFIELD_ALIGN_RIGHT", + "SWFTEXTFIELD_DRAWBOX", + "SWFTEXTFIELD_HASLENGTH", + "SWFTEXTFIELD_HTML", + "SWFTEXTFIELD_MULTILINE", + "SWFTEXTFIELD_NOEDIT", + "SWFTEXTFIELD_NOSELECT", + "SWFTEXTFIELD_PASSWORD", + "SWFTEXTFIELD_WORDWRAP", + "SWOOLE_AIO_BASE", + "SWOOLE_AIO_LINUX", + "SWOOLE_ASYNC", + "SWOOLE_BASE", + "SWOOLE_EVENT_READ", + "SWOOLE_EVENT_WRITE", + "SWOOLE_FAST_PACK", + "SWOOLE_FILELOCK", + "SWOOLE_IPC_MSGQUEUE", + "SWOOLE_IPC_PREEMPTIVE", + "SWOOLE_IPC_UNSOCK", + "SWOOLE_KEEP", + "SWOOLE_MUTEX", + "SWOOLE_PROCESS", + "SWOOLE_RWLOCK", + "SWOOLE_SEM", + "SWOOLE_SOCK_ASYNC", + "SWOOLE_SOCK_SYNC", + "SWOOLE_SOCK_TCP", + "SWOOLE_SOCK_TCP6", + "SWOOLE_SOCK_UDP", + "SWOOLE_SOCK_UDP6", + "SWOOLE_SOCK_UNIX_DGRAM", + "SWOOLE_SOCK_UNIX_STREAM", + "SWOOLE_SYNC", + "SWOOLE_TCP", + "SWOOLE_TCP6", + "SWOOLE_THREAD", + "SWOOLE_UDP", + "SWOOLE_UDP6", + "SWOOLE_UNIX_DGRAM", + "SWOOLE_UNIX_STREAM", + "SWOOLE_VERSION", + "SYSTEMERROR", + "S_ALL", + "S_EXECUTOR", + "S_FILES", + "S_INCLUDE", + "S_INTERNAL", + "S_IRGRP", + "S_IROTH", + "S_IRUSR", + "S_IRWXG", + "S_IRWXO", + "S_IRWXU", + "S_IWGRP", + "S_IWOTH", + "S_IWUSR", + "S_IXGRP", + "S_IXOTH", + "S_IXUSR", + "S_MAIL", + "S_MEMORY", + "S_MISC", + "S_SESSION", + "S_SQL", + "S_VARS", + "TCP_CONGESTION", + "TCP_DEFER_ACCEPT", + "TCP_KEEPALIVE", + "TCP_KEEPCNT", + "TCP_KEEPIDLE", + "TCP_KEEPINTVL", + "TCP_NODELAY", + "TCP_NOTSENT_LOWAT", + "THOUSANDS_SEP", + "THOUSEP", + "TIDY_NODETYPE_ASP", + "TIDY_NODETYPE_CDATA", + "TIDY_NODETYPE_COMMENT", + "TIDY_NODETYPE_DOCTYPE", + "TIDY_NODETYPE_END", + "TIDY_NODETYPE_JSTE", + "TIDY_NODETYPE_PHP", + "TIDY_NODETYPE_PROCINS", + "TIDY_NODETYPE_ROOT", + "TIDY_NODETYPE_SECTION", + "TIDY_NODETYPE_START", + "TIDY_NODETYPE_STARTEND", + "TIDY_NODETYPE_TEXT", + "TIDY_NODETYPE_XMLDECL", + "TIDY_TAG_A", + "TIDY_TAG_ABBR", + "TIDY_TAG_ACRONYM", + "TIDY_TAG_ALIGN", + "TIDY_TAG_APPLET", + "TIDY_TAG_AREA", + "TIDY_TAG_ARTICLE", + "TIDY_TAG_ASIDE", + "TIDY_TAG_AUDIO", + "TIDY_TAG_B", + "TIDY_TAG_BASE", + "TIDY_TAG_BASEFONT", + "TIDY_TAG_BDI", + "TIDY_TAG_BDO", + "TIDY_TAG_BGSOUND", + "TIDY_TAG_BIG", + "TIDY_TAG_BLINK", + "TIDY_TAG_BLOCKQUOTE", + "TIDY_TAG_BODY", + "TIDY_TAG_BR", + "TIDY_TAG_BUTTON", + "TIDY_TAG_CANVAS", + "TIDY_TAG_CAPTION", + "TIDY_TAG_CENTER", + "TIDY_TAG_CITE", + "TIDY_TAG_CODE", + "TIDY_TAG_COL", + "TIDY_TAG_COLGROUP", + "TIDY_TAG_COMMAND", + "TIDY_TAG_COMMENT", + "TIDY_TAG_DATALIST", + "TIDY_TAG_DD", + "TIDY_TAG_DEL", + "TIDY_TAG_DETAILS", + "TIDY_TAG_DFN", + "TIDY_TAG_DIALOG", + "TIDY_TAG_DIR", + "TIDY_TAG_DIV", + "TIDY_TAG_DL", + "TIDY_TAG_DT", + "TIDY_TAG_EM", + "TIDY_TAG_EMBED", + "TIDY_TAG_FIELDSET", + "TIDY_TAG_FIGCAPTION", + "TIDY_TAG_FIGURE", + "TIDY_TAG_FONT", + "TIDY_TAG_FOOTER", + "TIDY_TAG_FORM", + "TIDY_TAG_FRAME", + "TIDY_TAG_FRAMESET", + "TIDY_TAG_H1", + "TIDY_TAG_H2", + "TIDY_TAG_H3", + "TIDY_TAG_H4", + "TIDY_TAG_H5", + "TIDY_TAG_H6", + "TIDY_TAG_HEAD", + "TIDY_TAG_HEADER", + "TIDY_TAG_HGROUP", + "TIDY_TAG_HR", + "TIDY_TAG_HTML", + "TIDY_TAG_I", + "TIDY_TAG_IFRAME", + "TIDY_TAG_ILAYER", + "TIDY_TAG_IMG", + "TIDY_TAG_INPUT", + "TIDY_TAG_INS", + "TIDY_TAG_ISINDEX", + "TIDY_TAG_KBD", + "TIDY_TAG_KEYGEN", + "TIDY_TAG_LABEL", + "TIDY_TAG_LAYER", + "TIDY_TAG_LEGEND", + "TIDY_TAG_LI", + "TIDY_TAG_LINK", + "TIDY_TAG_LISTING", + "TIDY_TAG_MAIN", + "TIDY_TAG_MAP", + "TIDY_TAG_MARK", + "TIDY_TAG_MARQUEE", + "TIDY_TAG_MENU", + "TIDY_TAG_MENUITEM", + "TIDY_TAG_META", + "TIDY_TAG_METER", + "TIDY_TAG_MULTICOL", + "TIDY_TAG_NAV", + "TIDY_TAG_NOBR", + "TIDY_TAG_NOEMBED", + "TIDY_TAG_NOFRAMES", + "TIDY_TAG_NOLAYER", + "TIDY_TAG_NOSAVE", + "TIDY_TAG_NOSCRIPT", + "TIDY_TAG_OBJECT", + "TIDY_TAG_OL", + "TIDY_TAG_OPTGROUP", + "TIDY_TAG_OPTION", + "TIDY_TAG_OUTPUT", + "TIDY_TAG_P", + "TIDY_TAG_PARAM", + "TIDY_TAG_PLAINTEXT", + "TIDY_TAG_PRE", + "TIDY_TAG_PROGRESS", + "TIDY_TAG_Q", + "TIDY_TAG_RB", + "TIDY_TAG_RBC", + "TIDY_TAG_RP", + "TIDY_TAG_RT", + "TIDY_TAG_RTC", + "TIDY_TAG_RUBY", + "TIDY_TAG_S", + "TIDY_TAG_SAMP", + "TIDY_TAG_SCRIPT", + "TIDY_TAG_SECTION", + "TIDY_TAG_SELECT", + "TIDY_TAG_SERVER", + "TIDY_TAG_SERVLET", + "TIDY_TAG_SMALL", + "TIDY_TAG_SOURCE", + "TIDY_TAG_SPACER", + "TIDY_TAG_SPAN", + "TIDY_TAG_STRIKE", + "TIDY_TAG_STRONG", + "TIDY_TAG_STYLE", + "TIDY_TAG_SUB", + "TIDY_TAG_SUMMARY", + "TIDY_TAG_SUP", + "TIDY_TAG_TABLE", + "TIDY_TAG_TBODY", + "TIDY_TAG_TD", + "TIDY_TAG_TEMPLATE", + "TIDY_TAG_TEXTAREA", + "TIDY_TAG_TFOOT", + "TIDY_TAG_TH", + "TIDY_TAG_THEAD", + "TIDY_TAG_TIME", + "TIDY_TAG_TITLE", + "TIDY_TAG_TR", + "TIDY_TAG_TRACK", + "TIDY_TAG_TT", + "TIDY_TAG_U", + "TIDY_TAG_UL", + "TIDY_TAG_UNKNOWN", + "TIDY_TAG_VAR", + "TIDY_TAG_VIDEO", + "TIDY_TAG_WBR", + "TIDY_TAG_XMP", + "TIMING_TRACE", + "TRADER_COMPATIBILITY_DEFAULT", + "TRADER_COMPATIBILITY_METASTOCK", + "TRADER_ERR_ALLOC_ERR", + "TRADER_ERR_BAD_OBJECT", + "TRADER_ERR_BAD_PARAM", + "TRADER_ERR_FUNC_NOT_FOUND", + "TRADER_ERR_GROUP_NOT_FOUND", + "TRADER_ERR_INPUT_NOT_ALL_INITIALIZE", + "TRADER_ERR_INTERNAL_ERROR", + "TRADER_ERR_INVALID_HANDLE", + "TRADER_ERR_INVALID_LIST_TYPE", + "TRADER_ERR_INVALID_PARAM_FUNCTION", + "TRADER_ERR_INVALID_PARAM_HOLDER", + "TRADER_ERR_INVALID_PARAM_HOLDER_TYPE", + "TRADER_ERR_LIB_NOT_INITIALIZE", + "TRADER_ERR_NOT_SUPPORTED", + "TRADER_ERR_OUTPUT_NOT_ALL_INITIALIZE", + "TRADER_ERR_OUT_OF_RANGE_END_INDEX", + "TRADER_ERR_OUT_OF_RANGE_START_INDEX", + "TRADER_ERR_SUCCESS", + "TRADER_ERR_UNKNOWN_ERROR", + "TRADER_FUNC_UNST_ADX", + "TRADER_FUNC_UNST_ADXR", + "TRADER_FUNC_UNST_ALL", + "TRADER_FUNC_UNST_ATR", + "TRADER_FUNC_UNST_CMO", + "TRADER_FUNC_UNST_DX", + "TRADER_FUNC_UNST_EMA", + "TRADER_FUNC_UNST_HT_DCPERIOD", + "TRADER_FUNC_UNST_HT_DCPHASE", + "TRADER_FUNC_UNST_HT_PHASOR", + "TRADER_FUNC_UNST_HT_SINE", + "TRADER_FUNC_UNST_HT_TRENDLINE", + "TRADER_FUNC_UNST_HT_TRENDMODE", + "TRADER_FUNC_UNST_KAMA", + "TRADER_FUNC_UNST_MAMA", + "TRADER_FUNC_UNST_MFI", + "TRADER_FUNC_UNST_MINUS_DI", + "TRADER_FUNC_UNST_MINUS_DM", + "TRADER_FUNC_UNST_NATR", + "TRADER_FUNC_UNST_NONE", + "TRADER_FUNC_UNST_PLUS_DI", + "TRADER_FUNC_UNST_PLUS_DM", + "TRADER_FUNC_UNST_RSI", + "TRADER_FUNC_UNST_STOCHRSI", + "TRADER_FUNC_UNST_T3", + "TRADER_MA_TYPE_DEMA", + "TRADER_MA_TYPE_EMA", + "TRADER_MA_TYPE_KAMA", + "TRADER_MA_TYPE_MAMA", + "TRADER_MA_TYPE_SMA", + "TRADER_MA_TYPE_T3", + "TRADER_MA_TYPE_TEMA", + "TRADER_MA_TYPE_TRIMA", + "TRADER_MA_TYPE_WMA", + "TRADER_REAL_MAX", + "TRADER_REAL_MIN", + "TRAP_BRKPT", + "TRAP_TRACE", + "TYPEAPPLICATION", + "TYPEAUDIO", + "TYPEIMAGE", + "TYPEMESSAGE", + "TYPEMODEL", + "TYPEMULTIPART", + "TYPEOTHER", + "TYPETEXT", + "TYPEVIDEO", + "T_ABSTRACT", + "T_AND_EQUAL", + "T_ARRAY", + "T_ARRAY_CAST", + "T_AS", + "T_BAD_CHARACTER", + "T_BOOLEAN_AND", + "T_BOOLEAN_OR", + "T_BOOL_CAST", + "T_BREAK", + "T_CALLABLE", + "T_CASE", + "T_CATCH", + "T_CHARACTER", + "T_CLASS", + "T_CLASS_C", + "T_CLONE", + "T_CLOSE_TAG", + "T_COALESCE", + "T_COMMENT", + "T_CONCAT_EQUAL", + "T_CONST", + "T_CONSTANT_ENCAPSED_STRING", + "T_CONTINUE", + "T_CURLY_OPEN", + "T_DEC", + "T_DECLARE", + "T_DEFAULT", + "T_DIR", + "T_DIV_EQUAL", + "T_DNUMBER", + "T_DO", + "T_DOC_COMMENT", + "T_DOLLAR_OPEN_CURLY_BRACES", + "T_DOUBLE_ARROW", + "T_DOUBLE_CAST", + "T_DOUBLE_COLON", + "T_ECHO", + "T_ELLIPSIS", + "T_ELSE", + "T_ELSEIF", + "T_EMPTY", + "T_ENCAPSED_AND_WHITESPACE", + "T_ENDDECLARE", + "T_ENDFOR", + "T_ENDFOREACH", + "T_ENDIF", + "T_ENDSWITCH", + "T_ENDWHILE", + "T_END_HEREDOC", + "T_EVAL", + "T_EXIT", + "T_EXTENDS", + "T_FILE", + "T_FINAL", + "T_FINALLY", + "T_FMT", + "T_FMT_AMPM", + "T_FOR", + "T_FOREACH", + "T_FUNCTION", + "T_FUNC_C", + "T_GLOBAL", + "T_GOTO", + "T_HALT_COMPILER", + "T_IF", + "T_IMPLEMENTS", + "T_INC", + "T_INCLUDE", + "T_INCLUDE_ONCE", + "T_INLINE_HTML", + "T_INSTANCEOF", + "T_INSTEADOF", + "T_INTERFACE", + "T_INT_CAST", + "T_ISSET", + "T_IS_EQUAL", + "T_IS_GREATER_OR_EQUAL", + "T_IS_IDENTICAL", + "T_IS_NOT_EQUAL", + "T_IS_NOT_IDENTICAL", + "T_IS_SMALLER_OR_EQUAL", + "T_LINE", + "T_LIST", + "T_LNUMBER", + "T_LOGICAL_AND", + "T_LOGICAL_OR", + "T_LOGICAL_XOR", + "T_METHOD_C", + "T_MINUS_EQUAL", + "T_MOD_EQUAL", + "T_MUL_EQUAL", + "T_NAMESPACE", + "T_NEW", + "T_NS_C", + "T_NS_SEPARATOR", + "T_NUM_STRING", + "T_OBJECT_CAST", + "T_OBJECT_OPERATOR", + "T_OPEN_TAG", + "T_OPEN_TAG_WITH_ECHO", + "T_OR_EQUAL", + "T_PAAMAYIM_NEKUDOTAYIM", + "T_PLUS_EQUAL", + "T_POW", + "T_POW_EQUAL", + "T_PRINT", + "T_PRIVATE", + "T_PROTECTED", + "T_PUBLIC", + "T_REQUIRE", + "T_REQUIRE_ONCE", + "T_RETURN", + "T_SL", + "T_SL_EQUAL", + "T_SPACESHIP", + "T_SR", + "T_SR_EQUAL", + "T_START_HEREDOC", + "T_STATIC", + "T_STRING", + "T_STRING_CAST", + "T_STRING_VARNAME", + "T_SWITCH", + "T_THROW", + "T_TRAIT", + "T_TRAIT_C", + "T_TRY", + "T_UNSET", + "T_UNSET_CAST", + "T_USE", + "T_VAR", + "T_VARIABLE", + "T_WHILE", + "T_WHITESPACE", + "T_XOR_EQUAL", + "T_YIELD", + "T_YIELD_FROM", + "UDM_CACHE_DISABLED", + "UDM_CACHE_ENABLED", + "UDM_CROSSWORDS_DISABLED", + "UDM_CROSSWORDS_ENABLED", + "UDM_CROSS_WORDS_DISABLED", + "UDM_CROSS_WORDS_ENABLED", + "UDM_FIELD_CATEGORY", + "UDM_FIELD_CHARSET", + "UDM_FIELD_CONTENT", + "UDM_FIELD_CRC", + "UDM_FIELD_DESC", + "UDM_FIELD_DESCRIPTION", + "UDM_FIELD_KEYWORDS", + "UDM_FIELD_LANG", + "UDM_FIELD_MODIFIED", + "UDM_FIELD_ORDER", + "UDM_FIELD_RATING", + "UDM_FIELD_SCORE", + "UDM_FIELD_SIZE", + "UDM_FIELD_TEXT", + "UDM_FIELD_TITLE", + "UDM_FIELD_URL", + "UDM_FIELD_URLID", + "UDM_ISPELL_PREFIXES_DISABLED", + "UDM_ISPELL_PREFIXES_ENABLED", + "UDM_ISPELL_PREFIX_DISABLED", + "UDM_ISPELL_PREFIX_ENABLED", + "UDM_ISPELL_TYPE_AFFIX", + "UDM_ISPELL_TYPE_DB", + "UDM_ISPELL_TYPE_SERVER", + "UDM_ISPELL_TYPE_SPELL", + "UDM_LIMIT_CAT", + "UDM_LIMIT_DATE", + "UDM_LIMIT_LANG", + "UDM_LIMIT_TAG", + "UDM_LIMIT_URL", + "UDM_MATCH_BEGIN", + "UDM_MATCH_END", + "UDM_MATCH_SUBSTR", + "UDM_MATCH_WORD", + "UDM_MODE_ALL", + "UDM_MODE_ANY", + "UDM_MODE_BOOL", + "UDM_MODE_PHRASE", + "UDM_PARAM_BROWSER_CHARSET", + "UDM_PARAM_CACHE_MODE", + "UDM_PARAM_CHARSET", + "UDM_PARAM_CROSSWORDS", + "UDM_PARAM_CROSS_WORDS", + "UDM_PARAM_DATADIR", + "UDM_PARAM_FIRST_DOC", + "UDM_PARAM_FOUND", + "UDM_PARAM_HLBEG", + "UDM_PARAM_HLEND", + "UDM_PARAM_ISPELL_PREFIX", + "UDM_PARAM_ISPELL_PREFIXES", + "UDM_PARAM_LAST_DOC", + "UDM_PARAM_LOCAL_CHARSET", + "UDM_PARAM_MAX_WORDLEN", + "UDM_PARAM_MAX_WORD_LEN", + "UDM_PARAM_MIN_WORDLEN", + "UDM_PARAM_MIN_WORD_LEN", + "UDM_PARAM_NUM_ROWS", + "UDM_PARAM_PAGE_NUM", + "UDM_PARAM_PAGE_SIZE", + "UDM_PARAM_PHRASE_MODE", + "UDM_PARAM_PREFIX", + "UDM_PARAM_PREFIXES", + "UDM_PARAM_QSTRING", + "UDM_PARAM_REMOTE_ADDR", + "UDM_PARAM_SEARCHD", + "UDM_PARAM_SEARCHTIME", + "UDM_PARAM_SEARCH_MODE", + "UDM_PARAM_SEARCH_TIME", + "UDM_PARAM_STOPFILE", + "UDM_PARAM_STOPTABLE", + "UDM_PARAM_STOP_FILE", + "UDM_PARAM_STOP_TABLE", + "UDM_PARAM_SYNONYM", + "UDM_PARAM_TRACK_MODE", + "UDM_PARAM_VARDIR", + "UDM_PARAM_WEIGHT_FACTOR", + "UDM_PARAM_WORDINFO", + "UDM_PARAM_WORD_INFO", + "UDM_PARAM_WORD_MATCH", + "UDM_PHRASE_DISABLED", + "UDM_PHRASE_ENABLED", + "UDM_PREFIXES_DISABLED", + "UDM_PREFIXES_ENABLED", + "UDM_PREFIX_DISABLED", + "UDM_PREFIX_ENABLED", + "UDM_TRACK_DISABLED", + "UDM_TRACK_ENABLED", + "UNIMPLEMENTED", + "UNKNOWN_TYPE", + "UPLOAD_ERR_CANT_WRITE", + "UPLOAD_ERR_EXTENSION", + "UPLOAD_ERR_FORM_SIZE", + "UPLOAD_ERR_INI_SIZE", + "UPLOAD_ERR_NO_FILE", + "UPLOAD_ERR_NO_TMP_DIR", + "UPLOAD_ERR_OK", + "UPLOAD_ERR_PARTIAL", + "USE_KEY", + "UTF-8", + "VARCMP_EQ", + "VARCMP_GT", + "VARCMP_LT", + "VARCMP_NULL", + "VARNISH_COMPAT_2", + "VARNISH_COMPAT_3", + "VARNISH_CONFIG_COMPAT", + "VARNISH_CONFIG_HOST", + "VARNISH_CONFIG_IDENT", + "VARNISH_CONFIG_PORT", + "VARNISH_CONFIG_SECRET", + "VARNISH_CONFIG_TIMEOUT", + "VARNISH_STATUS_AUTH", + "VARNISH_STATUS_CANT", + "VARNISH_STATUS_CLOSE", + "VARNISH_STATUS_COMMS", + "VARNISH_STATUS_OK", + "VARNISH_STATUS_PARAM", + "VARNISH_STATUS_SYNTAX", + "VARNISH_STATUS_TOOFEW", + "VARNISH_STATUS_TOOMANY", + "VARNISH_STATUS_UNIMPL", + "VARNISH_STATUS_UNKNOWN", + "VT_ARRAY", + "VT_BOOL", + "VT_BSTR", + "VT_BYREF", + "VT_CY", + "VT_DATE", + "VT_DECIMAL", + "VT_DISPATCH", + "VT_EMPTY", + "VT_ERROR", + "VT_I1", + "VT_I2", + "VT_I4", + "VT_I8", + "VT_INT", + "VT_NULL", + "VT_R4", + "VT_R8", + "VT_UI1", + "VT_UI2", + "VT_UI4", + "VT_UI8", + "VT_UINT", + "VT_UNKNOWN", + "VT_VARIANT", + "WEBSOCKET_OPCODE_BINARY", + "WEBSOCKET_OPCODE_PING", + "WEBSOCKET_OPCODE_TEXT", + "WEBSOCKET_STATUS_ACTIVE", + "WEBSOCKET_STATUS_CONNECTION", + "WEBSOCKET_STATUS_FRAME", + "WEBSOCKET_STATUS_HANDSHAKE", + "WIN32_ABOVE_NORMAL_PRIORITY_CLASS", + "WIN32_BELOW_NORMAL_PRIORITY_CLASS", + "WIN32_ERROR_ACCESS_DENIED", + "WIN32_ERROR_CIRCULAR_DEPENDENCY", + "WIN32_ERROR_DATABASE_DOES_NOT_EXIST", + "WIN32_ERROR_DEPENDENT_SERVICES_RUNNING", + "WIN32_ERROR_DUPLICATE_SERVICE_NAME", + "WIN32_ERROR_FAILED_SERVICE_CONTROLLER_CONNECT", + "WIN32_ERROR_INSUFFICIENT_BUFFER", + "WIN32_ERROR_INVALID_DATA", + "WIN32_ERROR_INVALID_HANDLE", + "WIN32_ERROR_INVALID_LEVEL", + "WIN32_ERROR_INVALID_NAME", + "WIN32_ERROR_INVALID_PARAMETER", + "WIN32_ERROR_INVALID_SERVICE_ACCOUNT", + "WIN32_ERROR_INVALID_SERVICE_CONTROL", + "WIN32_ERROR_PATH_NOT_FOUND", + "WIN32_ERROR_SERVICE_ALREADY_RUNNING", + "WIN32_ERROR_SERVICE_CANNOT_ACCEPT_CTRL", + "WIN32_ERROR_SERVICE_DATABASE_LOCKED", + "WIN32_ERROR_SERVICE_DEPENDENCY_DELETED", + "WIN32_ERROR_SERVICE_DEPENDENCY_FAIL", + "WIN32_ERROR_SERVICE_DISABLED", + "WIN32_ERROR_SERVICE_DOES_NOT_EXIST", + "WIN32_ERROR_SERVICE_EXISTS", + "WIN32_ERROR_SERVICE_LOGON_FAILED", + "WIN32_ERROR_SERVICE_MARKED_FOR_DELETE", + "WIN32_ERROR_SERVICE_NOT_ACTIVE", + "WIN32_ERROR_SERVICE_NO_THREAD", + "WIN32_ERROR_SERVICE_REQUEST_TIMEOUT", + "WIN32_ERROR_SHUTDOWN_IN_PROGRESS", + "WIN32_HIGH_PRIORITY_CLASS", + "WIN32_IDLE_PRIORITY_CLASS", + "WIN32_NORMAL_PRIORITY_CLASS", + "WIN32_NO_ERROR", + "WIN32_REALTIME_PRIORITY_CLASS", + "WIN32_SERVICE_ACCEPT_PAUSE_CONTINUE", + "WIN32_SERVICE_ACCEPT_PRESHUTDOWN", + "WIN32_SERVICE_ACCEPT_SHUTDOWN", + "WIN32_SERVICE_ACCEPT_STOP", + "WIN32_SERVICE_AUTO_START", + "WIN32_SERVICE_CONTINUE_PENDING", + "WIN32_SERVICE_CONTROL_CONTINUE", + "WIN32_SERVICE_CONTROL_INTERROGATE", + "WIN32_SERVICE_CONTROL_PAUSE", + "WIN32_SERVICE_CONTROL_PRESHUTDOWN", + "WIN32_SERVICE_CONTROL_SHUTDOWN", + "WIN32_SERVICE_CONTROL_STOP", + "WIN32_SERVICE_DEMAND_START", + "WIN32_SERVICE_DISABLED", + "WIN32_SERVICE_ERROR_IGNORE", + "WIN32_SERVICE_ERROR_NORMAL", + "WIN32_SERVICE_INTERACTIVE_PROCESS", + "WIN32_SERVICE_PAUSED", + "WIN32_SERVICE_PAUSE_PENDING", + "WIN32_SERVICE_RUNNING", + "WIN32_SERVICE_RUNS_IN_SYSTEM_PROCESS", + "WIN32_SERVICE_START_PENDING", + "WIN32_SERVICE_STOPPED", + "WIN32_SERVICE_STOP_PENDING", + "WIN32_SERVICE_WIN32_OWN_PROCESS", + "WIN32_SERVICE_WIN32_OWN_PROCESS_INTERACTIVE", + "WNOHANG", + "WSDL_CACHE_BOTH", + "WSDL_CACHE_DISK", + "WSDL_CACHE_MEMORY", + "WSDL_CACHE_NONE", + "WUNTRACED", + "X509_PURPOSE_ANY", + "X509_PURPOSE_CRL_SIGN", + "X509_PURPOSE_NS_SSL_SERVER", + "X509_PURPOSE_SMIME_ENCRYPT", + "X509_PURPOSE_SMIME_SIGN", + "X509_PURPOSE_SSL_CLIENT", + "X509_PURPOSE_SSL_SERVER", + "XATTR_CREATE", + "XATTR_DONTFOLLOW", + "XATTR_REPLACE", + "XATTR_ROOT", + "XDIFF_PATCH_NORMAL", + "XDIFF_PATCH_REVERSE", + "XHPROF_FLAGS_CPU", + "XHPROF_FLAGS_MEMORY", + "XHPROF_FLAGS_NO_BUILTINS", + "XML_ATTRIBUTE_CDATA", + "XML_ATTRIBUTE_DECL_NODE", + "XML_ATTRIBUTE_ENTITY", + "XML_ATTRIBUTE_ENUMERATION", + "XML_ATTRIBUTE_ID", + "XML_ATTRIBUTE_IDREF", + "XML_ATTRIBUTE_IDREFS", + "XML_ATTRIBUTE_NMTOKEN", + "XML_ATTRIBUTE_NMTOKENS", + "XML_ATTRIBUTE_NODE", + "XML_ATTRIBUTE_NOTATION", + "XML_CDATA_SECTION_NODE", + "XML_COMMENT_NODE", + "XML_DOCUMENT_FRAG_NODE", + "XML_DOCUMENT_NODE", + "XML_DOCUMENT_TYPE_NODE", + "XML_DTD_NODE", + "XML_ELEMENT_DECL_NODE", + "XML_ELEMENT_NODE", + "XML_ENTITY_DECL_NODE", + "XML_ENTITY_NODE", + "XML_ENTITY_REF_NODE", + "XML_ERROR_ASYNC_ENTITY", + "XML_ERROR_ATTRIBUTE_EXTERNAL_ENTITY_REF", + "XML_ERROR_BAD_CHAR_REF", + "XML_ERROR_BINARY_ENTITY_REF", + "XML_ERROR_DUPLICATE_ATTRIBUTE", + "XML_ERROR_EXTERNAL_ENTITY_HANDLING", + "XML_ERROR_INCORRECT_ENCODING", + "XML_ERROR_INVALID_TOKEN", + "XML_ERROR_JUNK_AFTER_DOC_ELEMENT", + "XML_ERROR_MISPLACED_XML_PI", + "XML_ERROR_NONE", + "XML_ERROR_NO_ELEMENTS", + "XML_ERROR_NO_MEMORY", + "XML_ERROR_PARAM_ENTITY_REF", + "XML_ERROR_PARTIAL_CHAR", + "XML_ERROR_RECURSIVE_ENTITY_REF", + "XML_ERROR_SYNTAX", + "XML_ERROR_TAG_MISMATCH", + "XML_ERROR_UNCLOSED_CDATA_SECTION", + "XML_ERROR_UNCLOSED_TOKEN", + "XML_ERROR_UNDEFINED_ENTITY", + "XML_ERROR_UNKNOWN_ENCODING", + "XML_HTML_DOCUMENT_NODE", + "XML_NAMESPACE_DECL_NODE", + "XML_NOTATION_NODE", + "XML_OPTION_CASE_FOLDING", + "XML_OPTION_SKIP_TAGSTART", + "XML_OPTION_SKIP_WHITE", + "XML_OPTION_TARGET_ENCODING", + "XML_PI_NODE", + "XML_SAX_IMPL", + "XML_TEXT_NODE", + "XSD_1999_NAMESPACE", + "XSD_1999_TIMEINSTANT", + "XSD_ANYTYPE", + "XSD_ANYURI", + "XSD_ANYXML", + "XSD_BASE64BINARY", + "XSD_BOOLEAN", + "XSD_BYTE", + "XSD_DATE", + "XSD_DATETIME", + "XSD_DECIMAL", + "XSD_DOUBLE", + "XSD_DURATION", + "XSD_ENTITIES", + "XSD_ENTITY", + "XSD_FLOAT", + "XSD_GDAY", + "XSD_GMONTH", + "XSD_GMONTHDAY", + "XSD_GYEAR", + "XSD_GYEARMONTH", + "XSD_HEXBINARY", + "XSD_ID", + "XSD_IDREF", + "XSD_IDREFS", + "XSD_INT", + "XSD_INTEGER", + "XSD_LANGUAGE", + "XSD_LONG", + "XSD_NAME", + "XSD_NAMESPACE", + "XSD_NCNAME", + "XSD_NEGATIVEINTEGER", + "XSD_NMTOKEN", + "XSD_NMTOKENS", + "XSD_NONNEGATIVEINTEGER", + "XSD_NONPOSITIVEINTEGER", + "XSD_NORMALIZEDSTRING", + "XSD_NOTATION", + "XSD_POSITIVEINTEGER", + "XSD_QNAME", + "XSD_SHORT", + "XSD_STRING", + "XSD_TIME", + "XSD_TOKEN", + "XSD_UNSIGNEDBYTE", + "XSD_UNSIGNEDINT", + "XSD_UNSIGNEDLONG", + "XSD_UNSIGNEDSHORT", + "XSL_CLONE_ALWAYS", + "XSL_CLONE_AUTO", + "XSL_CLONE_NEVER", + "XSL_SECPREF_CREATE_DIRECTORY", + "XSL_SECPREF_DEFAULT", + "XSL_SECPREF_NONE", + "XSL_SECPREF_READ_FILE", + "XSL_SECPREF_READ_NETWORK", + "XSL_SECPREF_WRITE_FILE", + "XSL_SECPREF_WRITE_NETWORK", + "YAF_ENVIRON", + "YAF_ERR_AUTOLOAD_FAILED", + "YAF_ERR_CALL_FAILED", + "YAF_ERR_DISPATCH_FAILED", + "YAF_ERR_NOTFOUND_ACTION", + "YAF_ERR_NOTFOUND_CONTROLLER", + "YAF_ERR_NOTFOUND_MODULE", + "YAF_ERR_NOTFOUND_VIEW", + "YAF_ERR_ROUTE_FAILED", + "YAF_ERR_STARTUP_FAILED", + "YAF_ERR_TYPE_ERROR", + "YAF_VERSION", + "YAML_ANY_BREAK", + "YAML_ANY_ENCODING", + "YAML_ANY_SCALAR_STYLE", + "YAML_BOOL_TAG", + "YAML_CRLN_BREAK", + "YAML_CR_BREAK", + "YAML_DOUBLE_QUOTED_SCALAR_STYLE", + "YAML_FLOAT_TAG", + "YAML_FOLDED_SCALAR_STYLE", + "YAML_INT_TAG", + "YAML_LITERAL_SCALAR_STYLE", + "YAML_LN_BREAK", + "YAML_MAP_TAG", + "YAML_NULL_TAG", + "YAML_PHP_TAG", + "YAML_PLAIN_SCALAR_STYLE", + "YAML_SEQ_TAG", + "YAML_SINGLE_QUOTED_SCALAR_STYLE", + "YAML_STR_TAG", + "YAML_TIMESTAMP_TAG", + "YAML_UTF8_ENCODING", + "YAML_UTF16BE_ENCODING", + "YAML_UTF16LE_ENCODING", + "YAR_CLIENT_PROTOCOL_HTTP", + "YAR_ERR_EXCEPTION", + "YAR_ERR_OKEY", + "YAR_ERR_OUTPUT", + "YAR_ERR_PACKAGER", + "YAR_ERR_PROTOCOL", + "YAR_ERR_REQUEST", + "YAR_ERR_TRANSPORT", + "YAR_OPT_CONNECT_TIMEOUT", + "YAR_OPT_HEADER", + "YAR_OPT_PACKAGER", + "YAR_OPT_TIMEOUT", + "YAR_PACKAGER_JSON", + "YAR_PACKAGER_PHP", + "YAR_VERSION", + "YESEXPR", + "YESSTR", + "YPERR_ACCESS", + "YPERR_BADARGS", + "YPERR_BADDB", + "YPERR_BUSY", + "YPERR_DOMAIN", + "YPERR_KEY", + "YPERR_MAP", + "YPERR_NODOM", + "YPERR_NOMORE", + "YPERR_PMAP", + "YPERR_RESRC", + "YPERR_RPC", + "YPERR_VERS", + "YPERR_YPBIND", + "YPERR_YPERR", + "YPERR_YPSERV", + "ZEND_ACC_ABSTRACT", + "ZEND_ACC_CLASS", + "ZEND_ACC_FETCH", + "ZEND_ACC_FINAL", + "ZEND_ACC_INTERFACE", + "ZEND_ACC_PRIVATE", + "ZEND_ACC_PROTECTED", + "ZEND_ACC_PUBLIC", + "ZEND_ACC_STATIC", + "ZEND_ACC_TRAIT", + "ZEND_ADD_INTERFACE", + "ZEND_ADD_TRAIT", + "ZEND_EXIT", + "ZEND_FETCH_CLASS", + "ZEND_INSTANCEOF", + "ZEND_NEW", + "ZEND_THROW", + "ZEND_USER_OPCODE_CONTINUE", + "ZEND_USER_OPCODE_DISPATCH", + "ZEND_USER_OPCODE_DISPATCH_TO", + "ZEND_USER_OPCODE_ENTER", + "ZEND_USER_OPCODE_LEAVE", + "ZEND_USER_OPCODE_RETURN", + "ZLIB_BLOCK", + "ZLIB_DEFAULT_STRATEGY", + "ZLIB_ENCODING_DEFLATE", + "ZLIB_ENCODING_GZIP", + "ZLIB_ENCODING_RAW", + "ZLIB_FILTERED", + "ZLIB_FINISH", + "ZLIB_FIXED", + "ZLIB_FULL_FLUSH", + "ZLIB_HUFFMAN_ONLY", + "ZLIB_NO_FLUSH", + "ZLIB_PARTIAL_FLUSH", + "ZLIB_RLE", + "ZLIB_SYNC_FLUSH" + ], + "special_methods": [ + "__autoload", + "__call", + "__callStatic", + "__clone", + "__construct", + "__debugInfo", + "__destruct", + "__get", + "__invoke", + "__isset", + "__serialize", + "__set", + "__set_state", + "__sleep", + "__toString", + "__unserialize", + "__unset", + "__wakeup" + ], + "functions": [ + "_", + "abs", + "acos", + "acosh", + "addcslashes", + "addfill", + "addslashes", + "apache_child_terminate", + "apache_getenv", + "apache_get_modules", + "apache_get_version", + "apache_lookup_uri", + "apache_note", + "apache_request_headers", + "apache_reset_timeout", + "apache_response_headers", + "apache_setenv", + "apcu_add", + "apcu_cache_info", + "apcu_cas", + "apcu_clear_cache", + "apcu_dec", + "apcu_delete", + "apcu_entry", + "apcu_exists", + "apcu_fetch", + "apcu_inc", + "apcu_sma_info", + "apcu_store", + "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", + "apc_delete_file", + "apc_exists", + "apc_fetch", + "apc_inc", + "apc_load_constants", + "apc_sma_info", + "apc_store", + "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", + "apd_set_session_trace", + "apd_set_session_trace_socket", + "array_change_key_case", + "array_chunk", + "array_column", + "array_combine", + "array_count_values", + "array_diff", + "array_diff_assoc", + "array_diff_key", + "array_diff_uassoc", + "array_diff_ukey", + "array_fill", + "array_fill_keys", + "array_filter", + "array_flip", + "array_intersect", + "array_intersect_assoc", + "array_intersect_key", + "array_intersect_uassoc", + "array_intersect_ukey", + "array_is_list", + "array_keys", + "array_key_exists", + "array_key_first", + "array_key_last", + "array_map", + "array_merge", + "array_merge_recursive", + "array_multisort", + "array_pad", + "array_pop", + "array_product", + "array_push", + "array_rand", + "array_reduce", + "array_replace", + "array_replace_recursive", + "array_reverse", + "array_search", + "array_shift", + "array_slice", + "array_splice", + "array_sum", + "array_udiff", + "array_udiff_assoc", + "array_udiff_uassoc", + "array_uintersect", + "array_uintersect_assoc", + "array_uintersect_uassoc", + "array_unique", + "array_unshift", + "array_values", + "array_walk", + "array_walk_recursive", + "arsort", + "asin", + "asinh", + "asort", + "assert", + "assert_options", + "atan", + "atan2", + "atanh", + "base64_decode", + "base64_encode", + "basename", + "base_convert", + "bbcode_add_element", + "bbcode_add_smiley", + "bbcode_create", + "bbcode_destroy", + "bbcode_parse", + "bbcode_set_arg_parser", + "bbcode_set_flags", + "bcadd", + "bccomp", + "bcdiv", + "bcmod", + "bcmul", + "bcompiler_load", + "bcompiler_load_exe", + "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", + "bcpow", + "bcpowmod", + "bcscale", + "bcsqrt", + "bcsub", + "bin2hex", + "bindec", + "bindtextdomain", + "bind_textdomain_codeset", + "blenc_encrypt", + "boolval", + "bson_decode", + "bson_encode", + "bzclose", + "bzcompress", + "bzdecompress", + "bzerrno", + "bzerror", + "bzerrstr", + "bzflush", + "bzopen", + "bzread", + "bzwrite", + "cairo_append_path", + "cairo_arc", + "cairo_arc_negative", + "cairo_available_fonts", + "cairo_available_surfaces", + "cairo_clip", + "cairo_clip_extents", + "cairo_clip_preserve", + "cairo_clip_rectangle_list", + "cairo_close_path", + "cairo_copy_page", + "cairo_copy_path", + "cairo_copy_path_flat", + "cairo_create", + "cairo_curve_to", + "cairo_device_to_user", + "cairo_device_to_user_distance", + "cairo_fill", + "cairo_fill_extents", + "cairo_fill_preserve", + "cairo_font_extents", + "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_get_antialias", + "cairo_get_current_point", + "cairo_get_dash", + "cairo_get_dash_count", + "cairo_get_fill_rule", + "cairo_get_font_face", + "cairo_get_font_matrix", + "cairo_get_font_options", + "cairo_get_group_target", + "cairo_get_line_cap", + "cairo_get_line_join", + "cairo_get_line_width", + "cairo_get_matrix", + "cairo_get_miter_limit", + "cairo_get_operator", + "cairo_get_scaled_font", + "cairo_get_source", + "cairo_get_target", + "cairo_get_tolerance", + "cairo_glyph_path", + "cairo_has_current_point", + "cairo_identity_matrix", + "cairo_image_surface_create", + "cairo_image_surface_create_for_data", + "cairo_image_surface_create_from_png", + "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_in_fill", + "cairo_in_stroke", + "cairo_line_to", + "cairo_mask", + "cairo_mask_surface", + "cairo_matrix_create_scale", + "cairo_matrix_create_translate", + "cairo_matrix_init", + "cairo_matrix_init_identity", + "cairo_matrix_init_rotate", + "cairo_matrix_init_scale", + "cairo_matrix_init_translate", + "cairo_matrix_invert", + "cairo_matrix_multiply", + "cairo_matrix_rotate", + "cairo_matrix_scale", + "cairo_matrix_transform_distance", + "cairo_matrix_transform_point", + "cairo_matrix_translate", + "cairo_move_to", + "cairo_new_path", + "cairo_new_sub_path", + "cairo_paint", + "cairo_paint_with_alpha", + "cairo_path_extents", + "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_pop_group", + "cairo_pop_group_to_source", + "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_push_group", + "cairo_push_group_with_content", + "cairo_rectangle", + "cairo_rel_curve_to", + "cairo_rel_line_to", + "cairo_rel_move_to", + "cairo_reset_clip", + "cairo_restore", + "cairo_rotate", + "cairo_save", + "cairo_scale", + "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_select_font_face", + "cairo_set_antialias", + "cairo_set_dash", + "cairo_set_fill_rule", + "cairo_set_font_face", + "cairo_set_font_matrix", + "cairo_set_font_options", + "cairo_set_font_size", + "cairo_set_line_cap", + "cairo_set_line_join", + "cairo_set_line_width", + "cairo_set_matrix", + "cairo_set_miter_limit", + "cairo_set_operator", + "cairo_set_scaled_font", + "cairo_set_source", + "cairo_set_source_surface", + "cairo_set_tolerance", + "cairo_show_page", + "cairo_show_text", + "cairo_status", + "cairo_status_to_string", + "cairo_stroke", + "cairo_stroke_extents", + "cairo_stroke_preserve", + "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", + "cairo_surface_mark_dirty_rectangle", + "cairo_surface_set_device_offset", + "cairo_surface_set_fallback_resolution", + "cairo_surface_show_page", + "cairo_surface_status", + "cairo_surface_write_to_png", + "cairo_svg_get_versions", + "cairo_svg_surface_create", + "cairo_svg_surface_restrict_to_version", + "cairo_svg_version_to_string", + "cairo_text_extents", + "cairo_text_path", + "cairo_transform", + "cairo_translate", + "cairo_user_to_device", + "cairo_user_to_device_distance", + "cairo_version", + "cairo_version_string", + "call_user_func", + "call_user_func_array", + "cal_days_in_month", + "cal_from_jd", + "cal_info", + "cal_to_jd", + "ceil", + "chdb_create", + "chdir", + "checkdate", + "checkdnsrr", + "chgrp", + "chmod", + "chop", + "chown", + "chr", + "chroot", + "chunk_split", + "classkit_import", + "classkit_method_add", + "classkit_method_copy", + "classkit_method_redefine", + "classkit_method_remove", + "classkit_method_rename", + "class_alias", + "class_exists", + "class_implements", + "class_parents", + "class_uses", + "clearstatcache", + "cli_get_process_title", + "cli_set_process_title", + "closedir", + "closelog", + "collator_asort", + "collator_compare", + "collator_create", + "collator_get_attribute", + "collator_get_error_code", + "collator_get_error_message", + "collator_get_locale", + "collator_get_sort_key", + "collator_get_strength", + "collator_set_attribute", + "collator_set_strength", + "collator_sort", + "collator_sort_with_sort_keys", + "com_create_guid", + "com_event_sink", + "com_get_active_object", + "com_load_typelib", + "com_message_pump", + "com_print_typeinfo", + "compact", + "connection_aborted", + "connection_status", + "constant", + "convert_cyr_string", + "convert_uudecode", + "convert_uuencode", + "copy", + "cos", + "cosh", + "count", + "count_chars", + "crack_check", + "crack_closedict", + "crack_getlastmessage", + "crack_opendict", + "crc32", + "crypt", + "ctype_alnum", + "ctype_alpha", + "ctype_cntrl", + "ctype_digit", + "ctype_graph", + "ctype_lower", + "ctype_print", + "ctype_punct", + "ctype_space", + "ctype_upper", + "ctype_xdigit", + "cubrid_affected_rows", + "cubrid_bind", + "cubrid_client_encoding", + "cubrid_close", + "cubrid_close_prepare", + "cubrid_close_request", + "cubrid_column_names", + "cubrid_column_types", + "cubrid_col_get", + "cubrid_col_size", + "cubrid_commit", + "cubrid_connect", + "cubrid_connect_with_url", + "cubrid_current_oid", + "cubrid_data_seek", + "cubrid_db_name", + "cubrid_disconnect", + "cubrid_drop", + "cubrid_errno", + "cubrid_error", + "cubrid_error_code", + "cubrid_error_code_facility", + "cubrid_error_msg", + "cubrid_execute", + "cubrid_fetch", + "cubrid_fetch_array", + "cubrid_fetch_assoc", + "cubrid_fetch_field", + "cubrid_fetch_lengths", + "cubrid_fetch_object", + "cubrid_fetch_row", + "cubrid_field_flags", + "cubrid_field_len", + "cubrid_field_name", + "cubrid_field_seek", + "cubrid_field_table", + "cubrid_field_type", + "cubrid_free_result", + "cubrid_get", + "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_insert_id", + "cubrid_is_instance", + "cubrid_list_dbs", + "cubrid_load_from_glo", + "cubrid_lob2_bind", + "cubrid_lob2_close", + "cubrid_lob2_export", + "cubrid_lob2_import", + "cubrid_lob2_new", + "cubrid_lob2_read", + "cubrid_lob2_seek", + "cubrid_lob2_seek64", + "cubrid_lob2_size", + "cubrid_lob2_size64", + "cubrid_lob2_tell", + "cubrid_lob2_tell64", + "cubrid_lob2_write", + "cubrid_lob_close", + "cubrid_lob_export", + "cubrid_lob_get", + "cubrid_lob_send", + "cubrid_lob_size", + "cubrid_lock_read", + "cubrid_lock_write", + "cubrid_move_cursor", + "cubrid_new_glo", + "cubrid_next_result", + "cubrid_num_cols", + "cubrid_num_fields", + "cubrid_num_rows", + "cubrid_pconnect", + "cubrid_pconnect_with_url", + "cubrid_ping", + "cubrid_prepare", + "cubrid_put", + "cubrid_query", + "cubrid_real_escape_string", + "cubrid_result", + "cubrid_rollback", + "cubrid_save_to_glo", + "cubrid_schema", + "cubrid_send_glo", + "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_unbuffered_query", + "cubrid_version", + "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_errno", + "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", + "curl_setopt_array", + "curl_share_close", + "curl_share_errno", + "curl_share_init", + "curl_share_setopt", + "curl_share_strerror", + "curl_strerror", + "curl_unescape", + "curl_upkeep", + "curl_version", + "current", + "cyrus_authenticate", + "cyrus_bind", + "cyrus_close", + "cyrus_connect", + "cyrus_query", + "cyrus_unbind", + "date", + "datefmt_create", + "datefmt_format", + "datefmt_format_object", + "datefmt_get_calendar", + "datefmt_get_calendar_object", + "datefmt_get_datetype", + "datefmt_get_error_code", + "datefmt_get_error_message", + "datefmt_get_locale", + "datefmt_get_pattern", + "datefmt_get_timetype", + "datefmt_get_timezone", + "datefmt_get_timezone_id", + "datefmt_is_lenient", + "datefmt_localtime", + "datefmt_parse", + "datefmt_set_calendar", + "datefmt_set_lenient", + "datefmt_set_pattern", + "datefmt_set_timezone", + "date_add", + "date_create", + "date_create_from_format", + "date_create_immutable", + "date_create_immutable_from_format", + "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", + "date_parse_from_format", + "date_sub", + "date_sunrise", + "date_sunset", + "date_sun_info", + "date_timestamp_get", + "date_timestamp_set", + "date_timezone_get", + "date_timezone_set", + "date_time_set", + "db2_autocommit", + "db2_bind_param", + "db2_client_info", + "db2_close", + "db2_columns", + "db2_column_privileges", + "db2_commit", + "db2_connect", + "db2_conn_error", + "db2_conn_errormsg", + "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_procedures", + "db2_procedure_columns", + "db2_result", + "db2_rollback", + "db2_server_info", + "db2_set_option", + "db2_special_columns", + "db2_statistics", + "db2_stmt_error", + "db2_stmt_errormsg", + "db2_tables", + "db2_table_privileges", + "dbase_add_record", + "dbase_close", + "dbase_create", + "dbase_delete_record", + "dbase_get_header_info", + "dbase_get_record", + "dbase_get_record_with_names", + "dbase_numfields", + "dbase_numrecords", + "dbase_open", + "dbase_pack", + "dbase_replace_record", + "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", + "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", + "dbx_close", + "dbx_compare", + "dbx_connect", + "dbx_error", + "dbx_escape_string", + "dbx_fetch_row", + "dbx_query", + "dbx_sort", + "dcgettext", + "dcngettext", + "debug_backtrace", + "debug_print_backtrace", + "debug_zval_dump", + "decbin", + "dechex", + "decoct", + "define", + "defined", + "deflate_add", + "deflate_init", + "deg2rad", + "dgettext", + "dio_close", + "dio_fcntl", + "dio_open", + "dio_read", + "dio_seek", + "dio_stat", + "dio_tcsetattr", + "dio_truncate", + "dio_write", + "dir", + "dirname", + "diskfreespace", + "disk_free_space", + "disk_total_space", + "dl", + "dngettext", + "dns_check_record", + "dns_get_mx", + "dns_get_record", + "dom_import_simplexml", + "doubleval", + "easter_date", + "easter_days", + "eio_busy", + "eio_cancel", + "eio_chmod", + "eio_chown", + "eio_close", + "eio_custom", + "eio_dup2", + "eio_event_loop", + "eio_fallocate", + "eio_fchmod", + "eio_fchown", + "eio_fdatasync", + "eio_fstat", + "eio_fstatvfs", + "eio_fsync", + "eio_ftruncate", + "eio_futime", + "eio_get_event_stream", + "eio_get_last_error", + "eio_grp", + "eio_grp_add", + "eio_grp_cancel", + "eio_grp_limit", + "eio_init", + "eio_link", + "eio_lstat", + "eio_mkdir", + "eio_mknod", + "eio_nop", + "eio_npending", + "eio_nready", + "eio_nreqs", + "eio_nthreads", + "eio_open", + "eio_poll", + "eio_read", + "eio_readahead", + "eio_readdir", + "eio_readlink", + "eio_realpath", + "eio_rename", + "eio_rmdir", + "eio_seek", + "eio_sendfile", + "eio_set_max_idle", + "eio_set_max_parallel", + "eio_set_max_poll_reqs", + "eio_set_max_poll_time", + "eio_set_min_parallel", + "eio_stat", + "eio_statvfs", + "eio_symlink", + "eio_sync", + "eio_syncfs", + "eio_sync_file_range", + "eio_truncate", + "eio_unlink", + "eio_utime", + "eio_write", + "enchant_broker_describe", + "enchant_broker_dict_exists", + "enchant_broker_free", + "enchant_broker_free_dict", + "enchant_broker_get_dict_path", + "enchant_broker_get_error", + "enchant_broker_init", + "enchant_broker_list_dicts", + "enchant_broker_request_dict", + "enchant_broker_request_pwl_dict", + "enchant_broker_set_dict_path", + "enchant_broker_set_ordering", + "enchant_dict_add_to_personal", + "enchant_dict_add_to_session", + "enchant_dict_check", + "enchant_dict_describe", + "enchant_dict_get_error", + "enchant_dict_is_in_session", + "enchant_dict_quick_check", + "enchant_dict_store_replacement", + "enchant_dict_suggest", + "end", + "error_clear_last", + "error_get_last", + "error_log", + "error_reporting", + "escapeshellarg", + "escapeshellcmd", + "event_add", + "event_base_free", + "event_base_loop", + "event_base_loopbreak", + "event_base_loopexit", + "event_base_new", + "event_base_priority_init", + "event_base_reinit", + "event_base_set", + "event_buffer_base_set", + "event_buffer_disable", + "event_buffer_enable", + "event_buffer_fd_set", + "event_buffer_free", + "event_buffer_new", + "event_buffer_priority_set", + "event_buffer_read", + "event_buffer_set_callback", + "event_buffer_timeout_set", + "event_buffer_watermark_set", + "event_buffer_write", + "event_del", + "event_free", + "event_new", + "event_priority_set", + "event_set", + "event_timer_add", + "event_timer_del", + "event_timer_new", + "event_timer_set", + "exec", + "exif_imagetype", + "exif_read_data", + "exif_tagname", + "exif_thumbnail", + "exp", + "expect_expectl", + "expect_popen", + "explode", + "expm1", + "extension_loaded", + "extract", + "ezmlm_hash", + "fam_cancel_monitor", + "fam_close", + "fam_monitor_collection", + "fam_monitor_directory", + "fam_monitor_file", + "fam_next_event", + "fam_open", + "fam_pending", + "fam_resume_monitor", + "fam_suspend_monitor", + "fann_cascadetrain_on_data", + "fann_cascadetrain_on_file", + "fann_clear_scaling_params", + "fann_copy", + "fann_create_from_file", + "fann_create_shortcut", + "fann_create_shortcut_array", + "fann_create_sparse", + "fann_create_sparse_array", + "fann_create_standard", + "fann_create_standard_array", + "fann_create_train", + "fann_create_train_from_callback", + "fann_descale_input", + "fann_descale_output", + "fann_descale_train", + "fann_destroy", + "fann_destroy_train", + "fann_duplicate_train_data", + "fann_get_activation_function", + "fann_get_activation_steepness", + "fann_get_bias_array", + "fann_get_bit_fail", + "fann_get_bit_fail_limit", + "fann_get_cascade_activation_functions", + "fann_get_cascade_activation_functions_count", + "fann_get_cascade_activation_steepnesses", + "fann_get_cascade_activation_steepnesses_count", + "fann_get_cascade_candidate_change_fraction", + "fann_get_cascade_candidate_limit", + "fann_get_cascade_candidate_stagnation_epochs", + "fann_get_cascade_max_cand_epochs", + "fann_get_cascade_max_out_epochs", + "fann_get_cascade_min_cand_epochs", + "fann_get_cascade_min_out_epochs", + "fann_get_cascade_num_candidates", + "fann_get_cascade_num_candidate_groups", + "fann_get_cascade_output_change_fraction", + "fann_get_cascade_output_stagnation_epochs", + "fann_get_cascade_weight_multiplier", + "fann_get_connection_array", + "fann_get_connection_rate", + "fann_get_errno", + "fann_get_errstr", + "fann_get_layer_array", + "fann_get_learning_momentum", + "fann_get_learning_rate", + "fann_get_mse", + "fann_get_network_type", + "fann_get_num_input", + "fann_get_num_layers", + "fann_get_num_output", + "fann_get_quickprop_decay", + "fann_get_quickprop_mu", + "fann_get_rprop_decrease_factor", + "fann_get_rprop_delta_max", + "fann_get_rprop_delta_min", + "fann_get_rprop_delta_zero", + "fann_get_rprop_increase_factor", + "fann_get_sarprop_step_error_shift", + "fann_get_sarprop_step_error_threshold_factor", + "fann_get_sarprop_temperature", + "fann_get_sarprop_weight_decay_shift", + "fann_get_total_connections", + "fann_get_total_neurons", + "fann_get_training_algorithm", + "fann_get_train_error_function", + "fann_get_train_stop_function", + "fann_init_weights", + "fann_length_train_data", + "fann_merge_train_data", + "fann_num_input_train_data", + "fann_num_output_train_data", + "fann_print_error", + "fann_randomize_weights", + "fann_read_train_from_file", + "fann_reset_errno", + "fann_reset_errstr", + "fann_reset_mse", + "fann_run", + "fann_save", + "fann_save_train", + "fann_scale_input", + "fann_scale_input_train_data", + "fann_scale_output", + "fann_scale_output_train_data", + "fann_scale_train", + "fann_scale_train_data", + "fann_set_activation_function", + "fann_set_activation_function_hidden", + "fann_set_activation_function_layer", + "fann_set_activation_function_output", + "fann_set_activation_steepness", + "fann_set_activation_steepness_hidden", + "fann_set_activation_steepness_layer", + "fann_set_activation_steepness_output", + "fann_set_bit_fail_limit", + "fann_set_callback", + "fann_set_cascade_activation_functions", + "fann_set_cascade_activation_steepnesses", + "fann_set_cascade_candidate_change_fraction", + "fann_set_cascade_candidate_limit", + "fann_set_cascade_candidate_stagnation_epochs", + "fann_set_cascade_max_cand_epochs", + "fann_set_cascade_max_out_epochs", + "fann_set_cascade_min_cand_epochs", + "fann_set_cascade_min_out_epochs", + "fann_set_cascade_num_candidate_groups", + "fann_set_cascade_output_change_fraction", + "fann_set_cascade_output_stagnation_epochs", + "fann_set_cascade_weight_multiplier", + "fann_set_error_log", + "fann_set_input_scaling_params", + "fann_set_learning_momentum", + "fann_set_learning_rate", + "fann_set_output_scaling_params", + "fann_set_quickprop_decay", + "fann_set_quickprop_mu", + "fann_set_rprop_decrease_factor", + "fann_set_rprop_delta_max", + "fann_set_rprop_delta_min", + "fann_set_rprop_delta_zero", + "fann_set_rprop_increase_factor", + "fann_set_sarprop_step_error_shift", + "fann_set_sarprop_step_error_threshold_factor", + "fann_set_sarprop_temperature", + "fann_set_sarprop_weight_decay_shift", + "fann_set_scaling_params", + "fann_set_training_algorithm", + "fann_set_train_error_function", + "fann_set_train_stop_function", + "fann_set_weight", + "fann_set_weight_array", + "fann_shuffle_train_data", + "fann_subset_train_data", + "fann_test", + "fann_test_data", + "fann_train", + "fann_train_epoch", + "fann_train_on_data", + "fann_train_on_file", + "fastcgi_finish_request", + "fbsql_affected_rows", + "fbsql_autocommit", + "fbsql_blob_size", + "fbsql_change_user", + "fbsql_clob_size", + "fbsql_close", + "fbsql_commit", + "fbsql_connect", + "fbsql_create_blob", + "fbsql_create_clob", + "fbsql_create_db", + "fbsql_database", + "fbsql_database_password", + "fbsql_data_seek", + "fbsql_db_query", + "fbsql_db_status", + "fbsql_drop_db", + "fbsql_errno", + "fbsql_error", + "fbsql_fetch_array", + "fbsql_fetch_assoc", + "fbsql_fetch_field", + "fbsql_fetch_lengths", + "fbsql_fetch_object", + "fbsql_fetch_row", + "fbsql_field_flags", + "fbsql_field_len", + "fbsql_field_name", + "fbsql_field_seek", + "fbsql_field_table", + "fbsql_field_type", + "fbsql_free_result", + "fbsql_get_autostart_info", + "fbsql_hostname", + "fbsql_insert_id", + "fbsql_list_dbs", + "fbsql_list_fields", + "fbsql_list_tables", + "fbsql_next_result", + "fbsql_num_fields", + "fbsql_num_rows", + "fbsql_password", + "fbsql_pconnect", + "fbsql_query", + "fbsql_read_blob", + "fbsql_read_clob", + "fbsql_result", + "fbsql_rollback", + "fbsql_rows_fetched", + "fbsql_select_db", + "fbsql_set_characterset", + "fbsql_set_lob_mode", + "fbsql_set_password", + "fbsql_set_transaction", + "fbsql_start_db", + "fbsql_stop_db", + "fbsql_tablename", + "fbsql_table_name", + "fbsql_username", + "fbsql_warnings", + "fclose", + "fdatasync", + "fdf_add_doc_javascript", + "fdf_add_template", + "fdf_close", + "fdf_create", + "fdf_enum_values", + "fdf_errno", + "fdf_error", + "fdf_get_ap", + "fdf_get_attachment", + "fdf_get_encoding", + "fdf_get_file", + "fdf_get_flags", + "fdf_get_opt", + "fdf_get_status", + "fdf_get_value", + "fdf_get_version", + "fdf_header", + "fdf_next_field_name", + "fdf_open", + "fdf_open_string", + "fdf_remove_item", + "fdf_save", + "fdf_save_string", + "fdf_set_ap", + "fdf_set_encoding", + "fdf_set_file", + "fdf_set_flags", + "fdf_set_javascript_action", + "fdf_set_on_import_javascript", + "fdf_set_opt", + "fdf_set_status", + "fdf_set_submit_form_action", + "fdf_set_target_frame", + "fdf_set_value", + "fdf_set_version", + "fdiv", + "feof", + "fflush", + "fgetc", + "fgetcsv", + "fgets", + "fgetss", + "file", + "fileatime", + "filectime", + "filegroup", + "fileinode", + "filemtime", + "fileowner", + "fileperms", + "filepro", + "filepro_fieldcount", + "filepro_fieldname", + "filepro_fieldtype", + "filepro_fieldwidth", + "filepro_retrieve", + "filepro_rowcount", + "filesize", + "filetype", + "file_exists", + "file_get_contents", + "file_put_contents", + "filter_has_var", + "filter_id", + "filter_input", + "filter_input_array", + "filter_list", + "filter_var", + "filter_var_array", + "finfo_buffer", + "finfo_close", + "finfo_file", + "finfo_open", + "finfo_set_flags", + "floatval", + "flock", + "floor", + "flush", + "fmod", + "fnmatch", + "fopen", + "forward_static_call", + "forward_static_call_array", + "fpassthru", + "fprintf", + "fputcsv", + "fputs", + "fread", + "frenchtojd", + "fribidi_log2vis", + "fscanf", + "fseek", + "fsockopen", + "fstat", + "fsync", + "ftell", + "ftok", + "ftp_alloc", + "ftp_append", + "ftp_cdup", + "ftp_chdir", + "ftp_chmod", + "ftp_close", + "ftp_connect", + "ftp_delete", + "ftp_exec", + "ftp_fget", + "ftp_fput", + "ftp_get", + "ftp_get_option", + "ftp_login", + "ftp_mdtm", + "ftp_mkdir", + "ftp_mlsd", + "ftp_nb_continue", + "ftp_nb_fget", + "ftp_nb_fput", + "ftp_nb_get", + "ftp_nb_put", + "ftp_nlist", + "ftp_pasv", + "ftp_put", + "ftp_pwd", + "ftp_quit", + "ftp_raw", + "ftp_rawlist", + "ftp_rename", + "ftp_rmdir", + "ftp_set_option", + "ftp_site", + "ftp_size", + "ftp_ssl_connect", + "ftp_systype", + "ftruncate", + "function_exists", + "func_get_arg", + "func_get_args", + "func_num_args", + "fwrite", + "gc_collect_cycles", + "gc_disable", + "gc_enable", + "gc_enabled", + "gc_mem_caches", + "gd_info", + "geoip_asnum_by_name", + "geoip_continent_code_by_name", + "geoip_country_code3_by_name", + "geoip_country_code_by_name", + "geoip_country_name_by_name", + "geoip_database_info", + "geoip_db_avail", + "geoip_db_filename", + "geoip_db_get_all_info", + "geoip_domain_by_name", + "geoip_id_by_name", + "geoip_isp_by_name", + "geoip_netspeedcell_by_name", + "geoip_org_by_name", + "geoip_record_by_name", + "geoip_region_by_name", + "geoip_region_name_by_code", + "geoip_setup_custom_directory", + "geoip_time_zone_by_country_and_region", + "getallheaders", + "getcwd", + "getdate", + "getenv", + "gethostbyaddr", + "gethostbyname", + "gethostbynamel", + "gethostname", + "getimagesize", + "getimagesizefromstring", + "getlastmod", + "getmxrr", + "getmygid", + "getmyinode", + "getmypid", + "getmyuid", + "getopt", + "getprotobyname", + "getprotobynumber", + "getrandmax", + "getrusage", + "getservbyname", + "getservbyport", + "gettext", + "gettimeofday", + "gettype", + "get_browser", + "get_called_class", + "get_cfg_var", + "get_class", + "get_class_methods", + "get_class_vars", + "get_current_user", + "get_debug_type", + "get_declared_classes", + "get_declared_interfaces", + "get_declared_traits", + "get_defined_constants", + "get_defined_functions", + "get_defined_vars", + "get_extension_funcs", + "get_headers", + "get_html_translation_table", + "get_included_files", + "get_include_path", + "get_loaded_extensions", + "get_magic_quotes_gpc", + "get_magic_quotes_runtime", + "get_meta_tags", + "get_object_vars", + "get_parent_class", + "get_required_files", + "get_resources", + "get_resource_id", + "get_resource_type", + "glob", + "gmdate", + "gmmktime", + "gmp_abs", + "gmp_add", + "gmp_and", + "gmp_binomial", + "gmp_clrbit", + "gmp_cmp", + "gmp_com", + "gmp_div", + "gmp_divexact", + "gmp_div_q", + "gmp_div_qr", + "gmp_div_r", + "gmp_export", + "gmp_fact", + "gmp_gcd", + "gmp_gcdext", + "gmp_hamdist", + "gmp_import", + "gmp_init", + "gmp_intval", + "gmp_invert", + "gmp_jacobi", + "gmp_kronecker", + "gmp_lcm", + "gmp_legendre", + "gmp_mod", + "gmp_mul", + "gmp_neg", + "gmp_nextprime", + "gmp_or", + "gmp_perfect_power", + "gmp_perfect_square", + "gmp_popcount", + "gmp_pow", + "gmp_powm", + "gmp_prob_prime", + "gmp_random_bits", + "gmp_random_range", + "gmp_random_seed", + "gmp_root", + "gmp_rootrem", + "gmp_scan0", + "gmp_scan1", + "gmp_setbit", + "gmp_sign", + "gmp_sqrt", + "gmp_sqrtrem", + "gmp_strval", + "gmp_sub", + "gmp_testbit", + "gmp_xor", + "gmstrftime", + "gnupg_adddecryptkey", + "gnupg_addencryptkey", + "gnupg_addsignkey", + "gnupg_cleardecryptkeys", + "gnupg_clearencryptkeys", + "gnupg_clearsignkeys", + "gnupg_decrypt", + "gnupg_decryptverify", + "gnupg_encrypt", + "gnupg_encryptsign", + "gnupg_export", + "gnupg_geterror", + "gnupg_getprotocol", + "gnupg_import", + "gnupg_init", + "gnupg_keyinfo", + "gnupg_setarmor", + "gnupg_seterrormode", + "gnupg_setsignmode", + "gnupg_sign", + "gnupg_verify", + "gopher_parsedir", + "grapheme_extract", + "grapheme_stripos", + "grapheme_stristr", + "grapheme_strlen", + "grapheme_strpos", + "grapheme_strripos", + "grapheme_strrpos", + "grapheme_strstr", + "grapheme_substr", + "gregoriantojd", + "gupnp_context_get_host_ip", + "gupnp_context_get_port", + "gupnp_context_get_subscription_timeout", + "gupnp_context_host_path", + "gupnp_context_new", + "gupnp_context_set_subscription_timeout", + "gupnp_context_timeout_add", + "gupnp_context_unhost_path", + "gupnp_control_point_browse_start", + "gupnp_control_point_browse_stop", + "gupnp_control_point_callback_set", + "gupnp_control_point_new", + "gupnp_device_action_callback_set", + "gupnp_device_info_get", + "gupnp_device_info_get_service", + "gupnp_root_device_get_available", + "gupnp_root_device_get_relative_location", + "gupnp_root_device_new", + "gupnp_root_device_set_available", + "gupnp_root_device_start", + "gupnp_root_device_stop", + "gupnp_service_action_get", + "gupnp_service_action_return", + "gupnp_service_action_return_error", + "gupnp_service_action_set", + "gupnp_service_freeze_notify", + "gupnp_service_info_get", + "gupnp_service_info_get_introspection", + "gupnp_service_introspection_get_state_variable", + "gupnp_service_notify", + "gupnp_service_proxy_action_get", + "gupnp_service_proxy_action_set", + "gupnp_service_proxy_add_notify", + "gupnp_service_proxy_callback_set", + "gupnp_service_proxy_get_subscribed", + "gupnp_service_proxy_remove_notify", + "gupnp_service_proxy_send_action", + "gupnp_service_proxy_set_subscribed", + "gupnp_service_thaw_notify", + "gzclose", + "gzcompress", + "gzdecode", + "gzdeflate", + "gzencode", + "gzeof", + "gzfile", + "gzgetc", + "gzgets", + "gzgetss", + "gzinflate", + "gzopen", + "gzpassthru", + "gzputs", + "gzread", + "gzrewind", + "gzseek", + "gztell", + "gzuncompress", + "gzwrite", + "hash", + "hash_algos", + "hash_copy", + "hash_equals", + "hash_file", + "hash_final", + "hash_hkdf", + "hash_hmac", + "hash_hmac_algos", + "hash_hmac_file", + "hash_init", + "hash_pbkdf2", + "hash_update", + "hash_update_file", + "hash_update_stream", + "header", + "headers_list", + "headers_sent", + "header_register_callback", + "header_remove", + "hebrev", + "hebrevc", + "hex2bin", + "hexdec", + "highlight_file", + "highlight_string", + "hrtime", + "htmlentities", + "htmlspecialchars", + "htmlspecialchars_decode", + "html_entity_decode", + "http_build_query", + "http_response_code", + "hwapi_attribute_new", + "hwapi_content_new", + "hwapi_hgcsp", + "hwapi_object_new", + "hypot", + "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", + "ibase_commit_ret", + "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", + "ibase_rollback_ret", + "ibase_server_info", + "ibase_service_attach", + "ibase_service_detach", + "ibase_set_event_handler", + "ibase_trans", + "ibase_wait_event", + "iconv", + "iconv_get_encoding", + "iconv_mime_decode", + "iconv_mime_decode_headers", + "iconv_mime_encode", + "iconv_set_encoding", + "iconv_strlen", + "iconv_strpos", + "iconv_strrpos", + "iconv_substr", + "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", + "idate", + "idn_to_ascii", + "idn_to_utf8", + "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", + "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_getsqlca", + "ifx_get_blob", + "ifx_get_char", + "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", + "ignore_user_abort", + "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", + "imageaffine", + "imageaffinematrixconcat", + "imageaffinematrixget", + "imagealphablending", + "imageantialias", + "imagearc", + "imagebmp", + "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", + "imagecreatefrombmp", + "imagecreatefromgd", + "imagecreatefromgd2", + "imagecreatefromgd2part", + "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", + "imagegd", + "imagegd2", + "imagegetclip", + "imagegif", + "imagegrabscreen", + "imagegrabwindow", + "imageinterlace", + "imageistruecolor", + "imagejpeg", + "imagelayereffect", + "imageline", + "imageloadfont", + "imageopenpolygon", + "imagepalettecopy", + "imagepalettetotruecolor", + "imagepng", + "imagepolygon", + "imagerectangle", + "imageresolution", + "imagerotate", + "imagesavealpha", + "imagescale", + "imagesetbrush", + "imagesetclip", + "imagesetinterpolation", + "imagesetpixel", + "imagesetstyle", + "imagesetthickness", + "imagesettile", + "imagestring", + "imagestringup", + "imagesx", + "imagesy", + "imagetruecolortopalette", + "imagettfbbox", + "imagettftext", + "imagetypes", + "imagewbmp", + "imagewebp", + "imagexbm", + "image_type_to_extension", + "image_type_to_mime_type", + "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_fetchbody", + "imap_fetchheader", + "imap_fetchmime", + "imap_fetchstructure", + "imap_fetchtext", + "imap_fetch_overview", + "imap_gc", + "imap_getacl", + "imap_getmailboxes", + "imap_getsubscribed", + "imap_get_quota", + "imap_get_quotaroot", + "imap_header", + "imap_headerinfo", + "imap_headers", + "imap_is_open", + "imap_last_error", + "imap_list", + "imap_listmailbox", + "imap_listscan", + "imap_listsubscribed", + "imap_lsub", + "imap_mail", + "imap_mailboxmsginfo", + "imap_mail_compose", + "imap_mail_copy", + "imap_mail_move", + "imap_mime_header_decode", + "imap_msgno", + "imap_mutf7_to_utf8", + "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_setacl", + "imap_setflag_full", + "imap_set_quota", + "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_utf8_to_mutf7", + "implode", + "import_request_variables", + "inclued_get_data", + "inet_ntop", + "inet_pton", + "inflate_add", + "inflate_get_read_len", + "inflate_get_status", + "inflate_init", + "ingres_autocommit", + "ingres_autocommit_state", + "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", + "ini_alter", + "ini_get", + "ini_get_all", + "ini_parse_quantity", + "ini_restore", + "ini_set", + "inotify_add_watch", + "inotify_init", + "inotify_queue_len", + "inotify_read", + "inotify_rm_watch", + "intdiv", + "interface_exists", + "intlcal_add", + "intlcal_after", + "intlcal_before", + "intlcal_clear", + "intlcal_create_instance", + "intlcal_equals", + "intlcal_field_difference", + "intlcal_from_date_time", + "intlcal_get", + "intlcal_get_actual_maximum", + "intlcal_get_actual_minimum", + "intlcal_get_available_locales", + "intlcal_get_day_of_week_type", + "intlcal_get_error_code", + "intlcal_get_error_message", + "intlcal_get_first_day_of_week", + "intlcal_get_greatest_minimum", + "intlcal_get_keyword_values_for_locale", + "intlcal_get_least_maximum", + "intlcal_get_locale", + "intlcal_get_maximum", + "intlcal_get_minimal_days_in_first_week", + "intlcal_get_minimum", + "intlcal_get_now", + "intlcal_get_repeated_wall_time_option", + "intlcal_get_skipped_wall_time_option", + "intlcal_get_time", + "intlcal_get_time_zone", + "intlcal_get_type", + "intlcal_get_weekend_transition", + "intlcal_in_daylight_time", + "intlcal_is_equivalent_to", + "intlcal_is_lenient", + "intlcal_is_set", + "intlcal_is_weekend", + "intlcal_roll", + "intlcal_set", + "intlcal_set_first_day_of_week", + "intlcal_set_lenient", + "intlcal_set_repeated_wall_time_option", + "intlcal_set_skipped_wall_time_option", + "intlcal_set_time", + "intlcal_set_time_zone", + "intlcal_to_date_time", + "intltz_get_error_code", + "intltz_get_error_message", + "intl_error_name", + "intl_get_error_code", + "intl_get_error_message", + "intl_is_failure", + "intval", + "in_array", + "ip2long", + "iptcembed", + "iptcparse", + "is_a", + "is_array", + "is_bool", + "is_callable", + "is_countable", + "is_dir", + "is_double", + "is_executable", + "is_file", + "is_finite", + "is_float", + "is_infinite", + "is_int", + "is_integer", + "is_iterable", + "is_link", + "is_long", + "is_nan", + "is_null", + "is_numeric", + "is_object", + "is_readable", + "is_real", + "is_resource", + "is_scalar", + "is_soap_fault", + "is_string", + "is_subclass_of", + "is_tainted", + "is_uploaded_file", + "is_writable", + "is_writeable", + "iterator_apply", + "iterator_count", + "iterator_to_array", + "jddayofweek", + "jdmonthname", + "jdtofrench", + "jdtogregorian", + "jdtojewish", + "jdtojulian", + "jdtounix", + "jewishtojd", + "join", + "json_decode", + "json_encode", + "json_last_error", + "json_last_error_msg", + "json_validate", + "judy_type", + "judy_version", + "juliantojd", + "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", + "key", + "key_exists", + "krsort", + "ksort", + "lcfirst", + "lcg_value", + "lchgrp", + "lchown", + "ldap_8859_to_t61", + "ldap_add", + "ldap_add_ext", + "ldap_bind", + "ldap_bind_ext", + "ldap_close", + "ldap_compare", + "ldap_connect", + "ldap_control_paged_result", + "ldap_control_paged_result_response", + "ldap_count_entries", + "ldap_delete", + "ldap_delete_ext", + "ldap_dn2ufn", + "ldap_err2str", + "ldap_errno", + "ldap_error", + "ldap_escape", + "ldap_exop", + "ldap_exop_passwd", + "ldap_exop_refresh", + "ldap_exop_whoami", + "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", + "ldap_get_values_len", + "ldap_list", + "ldap_modify", + "ldap_modify_batch", + "ldap_mod_add", + "ldap_mod_add_ext", + "ldap_mod_del", + "ldap_mod_del_ext", + "ldap_mod_replace", + "ldap_mod_replace_ext", + "ldap_next_attribute", + "ldap_next_entry", + "ldap_next_reference", + "ldap_parse_exop", + "ldap_parse_reference", + "ldap_parse_result", + "ldap_read", + "ldap_rename", + "ldap_rename_ext", + "ldap_sasl_bind", + "ldap_search", + "ldap_set_option", + "ldap_set_rebind_proc", + "ldap_sort", + "ldap_start_tls", + "ldap_t61_to_8859", + "ldap_unbind", + "levenshtein", + "libxml_clear_errors", + "libxml_disable_entity_loader", + "libxml_get_errors", + "libxml_get_external_entity_loader", + "libxml_get_last_error", + "libxml_set_external_entity_loader", + "libxml_set_streams_context", + "libxml_use_internal_errors", + "link", + "linkinfo", + "localeconv", + "locale_accept_from_http", + "locale_compose", + "locale_filter_matches", + "locale_get_all_variants", + "locale_get_default", + "locale_get_display_language", + "locale_get_display_name", + "locale_get_display_region", + "locale_get_display_script", + "locale_get_display_variant", + "locale_get_keywords", + "locale_get_primary_language", + "locale_get_region", + "locale_get_script", + "locale_lookup", + "locale_parse", + "locale_set_default", + "localtime", + "log", + "log1p", + "log10", + "log_cmd_delete", + "log_cmd_insert", + "log_cmd_update", + "log_getmore", + "log_killcursor", + "log_reply", + "log_write_batch", + "long2ip", + "lstat", + "ltrim", + "lzf_compress", + "lzf_decompress", + "lzf_optimized_for", + "mail", + "mailparse_determine_best_xfer_encoding", + "mailparse_msg_create", + "mailparse_msg_extract_part", + "mailparse_msg_extract_part_file", + "mailparse_msg_extract_whole_part_file", + "mailparse_msg_free", + "mailparse_msg_get_part", + "mailparse_msg_get_part_data", + "mailparse_msg_get_structure", + "mailparse_msg_parse", + "mailparse_msg_parse_file", + "mailparse_rfc822_parse_addresses", + "mailparse_stream_encode", + "mailparse_uudecode_all", + "max", + "maxdb_affected_rows", + "maxdb_autocommit", + "maxdb_bind_param", + "maxdb_bind_result", + "maxdb_change_user", + "maxdb_character_set_name", + "maxdb_client_encoding", + "maxdb_close", + "maxdb_close_long_data", + "maxdb_commit", + "maxdb_connect", + "maxdb_connect_errno", + "maxdb_connect_error", + "maxdb_data_seek", + "maxdb_debug", + "maxdb_disable_reads_from_master", + "maxdb_disable_rpl_parse", + "maxdb_dump_debug_info", + "maxdb_embedded_connect", + "maxdb_enable_reads_from_master", + "maxdb_enable_rpl_parse", + "maxdb_errno", + "maxdb_error", + "maxdb_escape_string", + "maxdb_execute", + "maxdb_fetch", + "maxdb_fetch_array", + "maxdb_fetch_assoc", + "maxdb_fetch_field", + "maxdb_fetch_fields", + "maxdb_fetch_field_direct", + "maxdb_fetch_lengths", + "maxdb_fetch_object", + "maxdb_fetch_row", + "maxdb_field_count", + "maxdb_field_seek", + "maxdb_field_tell", + "maxdb_free_result", + "maxdb_get_client_info", + "maxdb_get_client_version", + "maxdb_get_host_info", + "maxdb_get_metadata", + "maxdb_get_proto_info", + "maxdb_get_server_info", + "maxdb_get_server_version", + "maxdb_info", + "maxdb_init", + "maxdb_insert_id", + "maxdb_kill", + "maxdb_master_query", + "maxdb_more_results", + "maxdb_multi_query", + "maxdb_next_result", + "maxdb_num_fields", + "maxdb_num_rows", + "maxdb_options", + "maxdb_param_count", + "maxdb_ping", + "maxdb_prepare", + "maxdb_query", + "maxdb_real_connect", + "maxdb_real_escape_string", + "maxdb_real_query", + "maxdb_report", + "maxdb_rollback", + "maxdb_rpl_parse_enabled", + "maxdb_rpl_probe", + "maxdb_rpl_query_type", + "maxdb_select_db", + "maxdb_send_long_data", + "maxdb_send_query", + "maxdb_server_end", + "maxdb_server_init", + "maxdb_set_opt", + "maxdb_sqlstate", + "maxdb_ssl_set", + "maxdb_stat", + "maxdb_stmt_affected_rows", + "maxdb_stmt_bind_param", + "maxdb_stmt_bind_result", + "maxdb_stmt_close", + "maxdb_stmt_close_long_data", + "maxdb_stmt_data_seek", + "maxdb_stmt_errno", + "maxdb_stmt_error", + "maxdb_stmt_execute", + "maxdb_stmt_fetch", + "maxdb_stmt_free_result", + "maxdb_stmt_init", + "maxdb_stmt_num_rows", + "maxdb_stmt_param_count", + "maxdb_stmt_prepare", + "maxdb_stmt_reset", + "maxdb_stmt_result_metadata", + "maxdb_stmt_send_long_data", + "maxdb_stmt_sqlstate", + "maxdb_stmt_store_result", + "maxdb_store_result", + "maxdb_thread_id", + "maxdb_thread_safe", + "maxdb_use_result", + "maxdb_warning_count", + "mb_check_encoding", + "mb_chr", + "mb_convert_case", + "mb_convert_encoding", + "mb_convert_kana", + "mb_convert_variables", + "mb_decode_mimeheader", + "mb_decode_numericentity", + "mb_detect_encoding", + "mb_detect_order", + "mb_encode_mimeheader", + "mb_encode_numericentity", + "mb_encoding_aliases", + "mb_ereg", + "mb_eregi", + "mb_eregi_replace", + "mb_ereg_match", + "mb_ereg_replace", + "mb_ereg_replace_callback", + "mb_ereg_search", + "mb_ereg_search_getpos", + "mb_ereg_search_getregs", + "mb_ereg_search_init", + "mb_ereg_search_pos", + "mb_ereg_search_regs", + "mb_ereg_search_setpos", + "mb_get_info", + "mb_http_input", + "mb_http_output", + "mb_internal_encoding", + "mb_language", + "mb_list_encodings", + "mb_ord", + "mb_output_handler", + "mb_parse_str", + "mb_preferred_mime_name", + "mb_regex_encoding", + "mb_regex_set_options", + "mb_scrub", + "mb_send_mail", + "mb_split", + "mb_str_pad", + "mb_str_split", + "mb_strcut", + "mb_strimwidth", + "mb_stripos", + "mb_stristr", + "mb_strlen", + "mb_strpos", + "mb_strrchr", + "mb_strrichr", + "mb_strripos", + "mb_strrpos", + "mb_strstr", + "mb_strtolower", + "mb_strtoupper", + "mb_strwidth", + "mb_substitute_character", + "mb_substr", + "mb_substr_count", + "md5", + "md5_file", + "mdecrypt_generic", + "memcache_debug", + "memory_get_peak_usage", + "memory_get_usage", + "memory_reset_peak_usage", + "metaphone", + "method_exists", + "mhash", + "mhash_count", + "mhash_get_block_size", + "mhash_get_hash_name", + "mhash_keygen_s2k", + "microtime", + "mime_content_type", + "min", + "ming_keypress", + "ming_setcubicthreshold", + "ming_setscale", + "ming_setswfcompression", + "ming_useconstants", + "ming_useswfversion", + "mkdir", + "mktime", + "money_format", + "move_uploaded_file", + "mqseries_back", + "mqseries_begin", + "mqseries_close", + "mqseries_cmit", + "mqseries_conn", + "mqseries_connx", + "mqseries_disc", + "mqseries_get", + "mqseries_inq", + "mqseries_open", + "mqseries_put", + "mqseries_put1", + "mqseries_set", + "mqseries_strerror", + "msession_connect", + "msession_count", + "msession_create", + "msession_destroy", + "msession_disconnect", + "msession_find", + "msession_get", + "msession_get_array", + "msession_get_data", + "msession_inc", + "msession_list", + "msession_listvar", + "msession_lock", + "msession_plugin", + "msession_randstr", + "msession_set", + "msession_set_array", + "msession_set_data", + "msession_timeout", + "msession_uniq", + "msession_unlock", + "msgfmt_create", + "msgfmt_format", + "msgfmt_format_message", + "msgfmt_get_error_code", + "msgfmt_get_error_message", + "msgfmt_get_locale", + "msgfmt_get_pattern", + "msgfmt_parse", + "msgfmt_parse_message", + "msgfmt_set_pattern", + "msg_get_queue", + "msg_queue_exists", + "msg_receive", + "msg_remove_queue", + "msg_send", + "msg_set_queue", + "msg_stat_queue", + "msql", + "msql_affected_rows", + "msql_close", + "msql_connect", + "msql_createdb", + "msql_create_db", + "msql_data_seek", + "msql_dbname", + "msql_db_query", + "msql_drop_db", + "msql_error", + "msql_fetch_array", + "msql_fetch_field", + "msql_fetch_object", + "msql_fetch_row", + "msql_fieldflags", + "msql_fieldlen", + "msql_fieldname", + "msql_fieldtable", + "msql_fieldtype", + "msql_field_flags", + "msql_field_len", + "msql_field_name", + "msql_field_seek", + "msql_field_table", + "msql_field_type", + "msql_free_result", + "msql_list_dbs", + "msql_list_fields", + "msql_list_tables", + "msql_numfields", + "msql_numrows", + "msql_num_fields", + "msql_num_rows", + "msql_pconnect", + "msql_query", + "msql_regcase", + "msql_result", + "msql_select_db", + "msql_tablename", + "mt_getrandmax", + "mt_rand", + "mt_srand", + "mysqli_affected_rows", + "mysqli_autocommit", + "mysqli_begin_transaction", + "mysqli_change_user", + "mysqli_character_set_name", + "mysqli_close", + "mysqli_commit", + "mysqli_connect", + "mysqli_connect_errno", + "mysqli_connect_error", + "mysqli_data_seek", + "mysqli_debug", + "mysqli_dump_debug_info", + "mysqli_embedded_server_end", + "mysqli_embedded_server_start", + "mysqli_errno", + "mysqli_error", + "mysqli_error_list", + "mysqli_escape_string", + "mysqli_execute", + "mysqli_execute_query", + "mysqli_fetch_all", + "mysqli_fetch_array", + "mysqli_fetch_assoc", + "mysqli_fetch_field", + "mysqli_fetch_fields", + "mysqli_fetch_field_direct", + "mysqli_fetch_lengths", + "mysqli_fetch_object", + "mysqli_fetch_row", + "mysqli_field_count", + "mysqli_field_seek", + "mysqli_field_tell", + "mysqli_free_result", + "mysqli_get_cache_stats", + "mysqli_get_charset", + "mysqli_get_client_info", + "mysqli_get_client_stats", + "mysqli_get_client_version", + "mysqli_get_connection_stats", + "mysqli_get_host_info", + "mysqli_get_links_stats", + "mysqli_get_proto_info", + "mysqli_get_server_info", + "mysqli_get_server_version", + "mysqli_get_warnings", + "mysqli_info", + "mysqli_init", + "mysqli_insert_id", + "mysqli_kill", + "mysqli_more_results", + "mysqli_multi_query", + "mysqli_next_result", + "mysqli_num_fields", + "mysqli_num_rows", + "mysqli_options", + "mysqli_ping", + "mysqli_poll", + "mysqli_prepare", + "mysqli_query", + "mysqli_real_connect", + "mysqli_real_escape_string", + "mysqli_real_query", + "mysqli_reap_async_query", + "mysqli_refresh", + "mysqli_release_savepoint", + "mysqli_report", + "mysqli_rollback", + "mysqli_savepoint", + "mysqli_select_db", + "mysqli_set_charset", + "mysqli_set_local_infile_default", + "mysqli_set_local_infile_handler", + "mysqli_set_opt", + "mysqli_sqlstate", + "mysqli_ssl_set", + "mysqli_stat", + "mysqli_stmt_affected_rows", + "mysqli_stmt_attr_get", + "mysqli_stmt_attr_set", + "mysqli_stmt_bind_param", + "mysqli_stmt_bind_result", + "mysqli_stmt_close", + "mysqli_stmt_data_seek", + "mysqli_stmt_errno", + "mysqli_stmt_error", + "mysqli_stmt_error_list", + "mysqli_stmt_execute", + "mysqli_stmt_fetch", + "mysqli_stmt_field_count", + "mysqli_stmt_free_result", + "mysqli_stmt_get_result", + "mysqli_stmt_get_warnings", + "mysqli_stmt_init", + "mysqli_stmt_insert_id", + "mysqli_stmt_more_results", + "mysqli_stmt_next_result", + "mysqli_stmt_num_rows", + "mysqli_stmt_param_count", + "mysqli_stmt_prepare", + "mysqli_stmt_reset", + "mysqli_stmt_result_metadata", + "mysqli_stmt_send_long_data", + "mysqli_stmt_sqlstate", + "mysqli_stmt_store_result", + "mysqli_store_result", + "mysqli_thread_id", + "mysqli_thread_safe", + "mysqli_use_result", + "mysqli_warning_count", + "mysqlnd_memcache_get_config", + "mysqlnd_memcache_set", + "mysqlnd_ms_dump_servers", + "mysqlnd_ms_fabric_select_global", + "mysqlnd_ms_fabric_select_shard", + "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_xa_begin", + "mysqlnd_ms_xa_commit", + "mysqlnd_ms_xa_gc", + "mysqlnd_ms_xa_rollback", + "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_uh_convert_to_mysqlnd", + "mysqlnd_uh_set_connection_proxy", + "mysqlnd_uh_set_statement_proxy", + "natcasesort", + "natsort", + "ncurses_addch", + "ncurses_addchnstr", + "ncurses_addchstr", + "ncurses_addnstr", + "ncurses_addstr", + "ncurses_assume_default_colors", + "ncurses_attroff", + "ncurses_attron", + "ncurses_attrset", + "ncurses_baudrate", + "ncurses_beep", + "ncurses_bkgd", + "ncurses_bkgdset", + "ncurses_border", + "ncurses_bottom_panel", + "ncurses_can_change_color", + "ncurses_cbreak", + "ncurses_clear", + "ncurses_clrtobot", + "ncurses_clrtoeol", + "ncurses_color_content", + "ncurses_color_set", + "ncurses_curs_set", + "ncurses_define_key", + "ncurses_def_prog_mode", + "ncurses_def_shell_mode", + "ncurses_delay_output", + "ncurses_delch", + "ncurses_deleteln", + "ncurses_delwin", + "ncurses_del_panel", + "ncurses_doupdate", + "ncurses_echo", + "ncurses_echochar", + "ncurses_end", + "ncurses_erase", + "ncurses_erasechar", + "ncurses_filter", + "ncurses_flash", + "ncurses_flushinp", + "ncurses_getch", + "ncurses_getmaxyx", + "ncurses_getmouse", + "ncurses_getyx", + "ncurses_halfdelay", + "ncurses_has_colors", + "ncurses_has_ic", + "ncurses_has_il", + "ncurses_has_key", + "ncurses_hide_panel", + "ncurses_hline", + "ncurses_inch", + "ncurses_init", + "ncurses_init_color", + "ncurses_init_pair", + "ncurses_insch", + "ncurses_insdelln", + "ncurses_insertln", + "ncurses_insstr", + "ncurses_instr", + "ncurses_isendwin", + "ncurses_keyok", + "ncurses_keypad", + "ncurses_killchar", + "ncurses_longname", + "ncurses_meta", + "ncurses_mouseinterval", + "ncurses_mousemask", + "ncurses_mouse_trafo", + "ncurses_move", + "ncurses_move_panel", + "ncurses_mvaddch", + "ncurses_mvaddchnstr", + "ncurses_mvaddchstr", + "ncurses_mvaddnstr", + "ncurses_mvaddstr", + "ncurses_mvcur", + "ncurses_mvdelch", + "ncurses_mvgetch", + "ncurses_mvhline", + "ncurses_mvinch", + "ncurses_mvvline", + "ncurses_mvwaddstr", + "ncurses_napms", + "ncurses_newpad", + "ncurses_newwin", + "ncurses_new_panel", + "ncurses_nl", + "ncurses_nocbreak", + "ncurses_noecho", + "ncurses_nonl", + "ncurses_noqiflush", + "ncurses_noraw", + "ncurses_pair_content", + "ncurses_panel_above", + "ncurses_panel_below", + "ncurses_panel_window", + "ncurses_pnoutrefresh", + "ncurses_prefresh", + "ncurses_putp", + "ncurses_qiflush", + "ncurses_raw", + "ncurses_refresh", + "ncurses_replace_panel", + "ncurses_resetty", + "ncurses_reset_prog_mode", + "ncurses_reset_shell_mode", + "ncurses_savetty", + "ncurses_scrl", + "ncurses_scr_dump", + "ncurses_scr_init", + "ncurses_scr_restore", + "ncurses_scr_set", + "ncurses_show_panel", + "ncurses_slk_attr", + "ncurses_slk_attroff", + "ncurses_slk_attron", + "ncurses_slk_attrset", + "ncurses_slk_clear", + "ncurses_slk_color", + "ncurses_slk_init", + "ncurses_slk_noutrefresh", + "ncurses_slk_refresh", + "ncurses_slk_restore", + "ncurses_slk_set", + "ncurses_slk_touch", + "ncurses_standend", + "ncurses_standout", + "ncurses_start_color", + "ncurses_termattrs", + "ncurses_termname", + "ncurses_timeout", + "ncurses_top_panel", + "ncurses_typeahead", + "ncurses_ungetch", + "ncurses_ungetmouse", + "ncurses_update_panels", + "ncurses_use_default_colors", + "ncurses_use_env", + "ncurses_use_extended_names", + "ncurses_vidattr", + "ncurses_vline", + "ncurses_waddch", + "ncurses_waddstr", + "ncurses_wattroff", + "ncurses_wattron", + "ncurses_wattrset", + "ncurses_wborder", + "ncurses_wclear", + "ncurses_wcolor_set", + "ncurses_werase", + "ncurses_wgetch", + "ncurses_whline", + "ncurses_wmouse_trafo", + "ncurses_wmove", + "ncurses_wnoutrefresh", + "ncurses_wrefresh", + "ncurses_wstandend", + "ncurses_wstandout", + "ncurses_wvline", + "newt_bell", + "newt_button", + "newt_button_bar", + "newt_centered_window", + "newt_checkbox", + "newt_checkbox_get_value", + "newt_checkbox_set_flags", + "newt_checkbox_set_value", + "newt_checkbox_tree", + "newt_checkbox_tree_add_item", + "newt_checkbox_tree_find_item", + "newt_checkbox_tree_get_current", + "newt_checkbox_tree_get_entry_value", + "newt_checkbox_tree_get_multi_selection", + "newt_checkbox_tree_get_selection", + "newt_checkbox_tree_multi", + "newt_checkbox_tree_set_current", + "newt_checkbox_tree_set_entry", + "newt_checkbox_tree_set_entry_value", + "newt_checkbox_tree_set_width", + "newt_clear_key_buffer", + "newt_cls", + "newt_compact_button", + "newt_component_add_callback", + "newt_component_takes_focus", + "newt_create_grid", + "newt_cursor_off", + "newt_cursor_on", + "newt_delay", + "newt_draw_form", + "newt_draw_root_text", + "newt_entry", + "newt_entry_get_value", + "newt_entry_set", + "newt_entry_set_filter", + "newt_entry_set_flags", + "newt_finished", + "newt_form", + "newt_form_add_component", + "newt_form_add_components", + "newt_form_add_hot_key", + "newt_form_destroy", + "newt_form_get_current", + "newt_form_run", + "newt_form_set_background", + "newt_form_set_height", + "newt_form_set_size", + "newt_form_set_timer", + "newt_form_set_width", + "newt_form_watch_fd", + "newt_get_screen_size", + "newt_grid_add_components_to_form", + "newt_grid_basic_window", + "newt_grid_free", + "newt_grid_get_size", + "newt_grid_h_close_stacked", + "newt_grid_h_stacked", + "newt_grid_place", + "newt_grid_set_field", + "newt_grid_simple_window", + "newt_grid_v_close_stacked", + "newt_grid_v_stacked", + "newt_grid_wrapped_window", + "newt_grid_wrapped_window_at", + "newt_init", + "newt_label", + "newt_label_set_text", + "newt_listbox", + "newt_listbox_append_entry", + "newt_listbox_clear", + "newt_listbox_clear_selection", + "newt_listbox_delete_entry", + "newt_listbox_get_current", + "newt_listbox_get_selection", + "newt_listbox_insert_entry", + "newt_listbox_item_count", + "newt_listbox_select_item", + "newt_listbox_set_current", + "newt_listbox_set_current_by_key", + "newt_listbox_set_data", + "newt_listbox_set_entry", + "newt_listbox_set_width", + "newt_listitem", + "newt_listitem_get_data", + "newt_listitem_set", + "newt_open_window", + "newt_pop_help_line", + "newt_pop_window", + "newt_push_help_line", + "newt_radiobutton", + "newt_radio_get_current", + "newt_redraw_help_line", + "newt_reflow_text", + "newt_refresh", + "newt_resize_screen", + "newt_resume", + "newt_run_form", + "newt_scale", + "newt_scale_set", + "newt_scrollbar_set", + "newt_set_help_callback", + "newt_set_suspend_callback", + "newt_suspend", + "newt_textbox", + "newt_textbox_get_num_lines", + "newt_textbox_reflowed", + "newt_textbox_set_height", + "newt_textbox_set_text", + "newt_vertical_scrollbar", + "newt_wait_for_key", + "newt_win_choice", + "newt_win_entries", + "newt_win_menu", + "newt_win_message", + "newt_win_messagev", + "newt_win_ternary", + "next", + "ngettext", + "nl2br", + "nl_langinfo", + "normalizer_get_raw_decomposition", + "normalizer_is_normalized", + "normalizer_normalize", + "nsapi_request_headers", + "nsapi_response_headers", + "nsapi_virtual", + "number_format", + "numfmt_create", + "numfmt_format", + "numfmt_format_currency", + "numfmt_get_attribute", + "numfmt_get_error_code", + "numfmt_get_error_message", + "numfmt_get_locale", + "numfmt_get_pattern", + "numfmt_get_symbol", + "numfmt_get_text_attribute", + "numfmt_parse", + "numfmt_parse_currency", + "numfmt_set_attribute", + "numfmt_set_pattern", + "numfmt_set_symbol", + "numfmt_set_text_attribute", + "oauth_get_sbs", + "oauth_urlencode", + "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_iconv_handler", + "ob_implicit_flush", + "ob_list_handlers", + "ob_start", + "ob_tidyhandler", + "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", + "oci_fetch_all", + "oci_fetch_array", + "oci_fetch_assoc", + "oci_fetch_object", + "oci_fetch_row", + "oci_field_is_null", + "oci_field_name", + "oci_field_precision", + "oci_field_scale", + "oci_field_size", + "oci_field_type", + "oci_field_type_raw", + "oci_free_descriptor", + "oci_free_statement", + "oci_get_implicit_resultset", + "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_register_taf_callback", + "oci_result", + "oci_rollback", + "oci_server_version", + "oci_set_action", + "oci_set_call_timeout", + "oci_set_client_identifier", + "oci_set_client_info", + "oci_set_db_operation", + "oci_set_edition", + "oci_set_module_name", + "oci_set_prefetch", + "oci_set_prefetch_lob", + "oci_statement_type", + "oci_unregister_taf_callback", + "octdec", + "odbc_autocommit", + "odbc_binmode", + "odbc_close", + "odbc_close_all", + "odbc_columnprivileges", + "odbc_columns", + "odbc_commit", + "odbc_connect", + "odbc_connection_string_is_quoted", + "odbc_connection_string_quote", + "odbc_connection_string_should_quote", + "odbc_cursor", + "odbc_data_source", + "odbc_do", + "odbc_error", + "odbc_errormsg", + "odbc_exec", + "odbc_execute", + "odbc_fetch_array", + "odbc_fetch_into", + "odbc_fetch_object", + "odbc_fetch_row", + "odbc_field_len", + "odbc_field_name", + "odbc_field_num", + "odbc_field_precision", + "odbc_field_scale", + "odbc_field_type", + "odbc_foreignkeys", + "odbc_free_result", + "odbc_gettypeinfo", + "odbc_longreadlen", + "odbc_next_result", + "odbc_num_fields", + "odbc_num_rows", + "odbc_pconnect", + "odbc_prepare", + "odbc_primarykeys", + "odbc_procedurecolumns", + "odbc_procedures", + "odbc_result", + "odbc_result_all", + "odbc_rollback", + "odbc_setoption", + "odbc_specialcolumns", + "odbc_statistics", + "odbc_tableprivileges", + "odbc_tables", + "opcache_compile_file", + "opcache_get_configuration", + "opcache_get_status", + "opcache_invalidate", + "opcache_is_script_cached", + "opcache_reset", + "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", + "opendir", + "openlog", + "openssl_cipher_iv_length", + "openssl_cipher_key_length", + "openssl_csr_export", + "openssl_csr_export_to_file", + "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_cert_locations", + "openssl_get_cipher_methods", + "openssl_get_curve_names", + "openssl_get_md_methods", + "openssl_get_privatekey", + "openssl_get_publickey", + "openssl_open", + "openssl_pbkdf2", + "openssl_pkcs7_decrypt", + "openssl_pkcs7_encrypt", + "openssl_pkcs7_read", + "openssl_pkcs7_sign", + "openssl_pkcs7_verify", + "openssl_pkcs12_export", + "openssl_pkcs12_export_to_file", + "openssl_pkcs12_read", + "openssl_pkey_export", + "openssl_pkey_export_to_file", + "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_spki_export", + "openssl_spki_export_challenge", + "openssl_spki_new", + "openssl_spki_verify", + "openssl_verify", + "openssl_x509_checkpurpose", + "openssl_x509_check_private_key", + "openssl_x509_export", + "openssl_x509_export_to_file", + "openssl_x509_fingerprint", + "openssl_x509_free", + "openssl_x509_parse", + "openssl_x509_read", + "ord", + "output_add_rewrite_var", + "output_reset_rewrite_vars", + "override_function", + "pack", + "parsekit_compile_file", + "parsekit_compile_string", + "parsekit_func_arginfo", + "parse_ini_file", + "parse_ini_string", + "parse_str", + "parse_url", + "passthru", + "password_get_info", + "password_hash", + "password_needs_rehash", + "password_verify", + "pathinfo", + "pclose", + "pcntl_alarm", + "pcntl_async_signals", + "pcntl_errno", + "pcntl_exec", + "pcntl_fork", + "pcntl_getpriority", + "pcntl_get_last_error", + "pcntl_setpriority", + "pcntl_signal", + "pcntl_signal_dispatch", + "pcntl_signal_get_handler", + "pcntl_sigprocmask", + "pcntl_sigtimedwait", + "pcntl_sigwaitinfo", + "pcntl_strerror", + "pcntl_wait", + "pcntl_waitpid", + "pcntl_wexitstatus", + "pcntl_wifexited", + "pcntl_wifsignaled", + "pcntl_wifstopped", + "pcntl_wstopsig", + "pcntl_wtermsig", + "pdf_activate_item", + "pdf_add_launchlink", + "pdf_add_locallink", + "pdf_add_nameddest", + "pdf_add_note", + "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", + "pdf_begin_page_ext", + "pdf_begin_pattern", + "pdf_begin_template", + "pdf_begin_template_ext", + "pdf_circle", + "pdf_clip", + "pdf_close", + "pdf_closepath", + "pdf_closepath_fill_stroke", + "pdf_closepath_stroke", + "pdf_close_image", + "pdf_close_pdi", + "pdf_close_pdi_page", + "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", + "pdf_delete_pvf", + "pdf_delete_table", + "pdf_delete_textflow", + "pdf_encoding_set_char", + "pdf_endpath", + "pdf_end_document", + "pdf_end_font", + "pdf_end_glyph", + "pdf_end_item", + "pdf_end_layer", + "pdf_end_page", + "pdf_end_page_ext", + "pdf_end_pattern", + "pdf_end_template", + "pdf_fill", + "pdf_fill_imageblock", + "pdf_fill_pdfblock", + "pdf_fill_stroke", + "pdf_fill_textblock", + "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_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_image", + "pdf_open_image_file", + "pdf_open_memory_image", + "pdf_open_pdi", + "pdf_open_pdi_document", + "pdf_open_pdi_page", + "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_setcolor", + "pdf_setdash", + "pdf_setdashpattern", + "pdf_setflat", + "pdf_setfont", + "pdf_setgray", + "pdf_setgray_fill", + "pdf_setgray_stroke", + "pdf_setlinecap", + "pdf_setlinejoin", + "pdf_setlinewidth", + "pdf_setmatrix", + "pdf_setmiterlimit", + "pdf_setrgbcolor", + "pdf_setrgbcolor_fill", + "pdf_setrgbcolor_stroke", + "pdf_set_border_color", + "pdf_set_border_dash", + "pdf_set_border_style", + "pdf_set_gstate", + "pdf_set_info", + "pdf_set_layer_dependency", + "pdf_set_parameter", + "pdf_set_text_pos", + "pdf_set_value", + "pdf_shading", + "pdf_shading_pattern", + "pdf_shfill", + "pdf_show", + "pdf_show_boxed", + "pdf_show_xy", + "pdf_skew", + "pdf_stringwidth", + "pdf_stroke", + "pdf_suspend_page", + "pdf_translate", + "pdf_utf8_to_utf16", + "pdf_utf16_to_utf8", + "pdf_utf32_to_utf16", + "pdo_drivers", + "pfsockopen", + "pg_affected_rows", + "pg_cancel_query", + "pg_client_encoding", + "pg_close", + "pg_connect", + "pg_connection_busy", + "pg_connection_reset", + "pg_connection_status", + "pg_connect_poll", + "pg_consume_input", + "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", + "pg_fetch_all_columns", + "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", + "pg_field_type_oid", + "pg_flush", + "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", + "pg_lo_read_all", + "pg_lo_seek", + "pg_lo_tell", + "pg_lo_truncate", + "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", + "pg_query_params", + "pg_result_error", + "pg_result_error_field", + "pg_result_seek", + "pg_result_status", + "pg_select", + "pg_send_execute", + "pg_send_prepare", + "pg_send_query", + "pg_send_query_params", + "pg_set_client_encoding", + "pg_set_error_verbosity", + "pg_socket", + "pg_trace", + "pg_transaction_status", + "pg_tty", + "pg_unescape_bytea", + "pg_untrace", + "pg_update", + "pg_version", + "phpcredits", + "phpdbg_break_file", + "phpdbg_break_function", + "phpdbg_break_method", + "phpdbg_break_next", + "phpdbg_clear", + "phpdbg_color", + "phpdbg_end_oplog", + "phpdbg_exec", + "phpdbg_get_executable", + "phpdbg_prompt", + "phpdbg_start_oplog", + "phpinfo", + "phpversion", + "php_ini_loaded_file", + "php_ini_scanned_files", + "php_logo_guid", + "php_sapi_name", + "php_strip_whitespace", + "php_uname", + "pi", + "popen", + "pos", + "posix_access", + "posix_ctermid", + "posix_eaccess", + "posix_errno", + "posix_fpathconf", + "posix_getcwd", + "posix_getegid", + "posix_geteuid", + "posix_getgid", + "posix_getgrgid", + "posix_getgrnam", + "posix_getgroups", + "posix_getlogin", + "posix_getpgid", + "posix_getpgrp", + "posix_getpid", + "posix_getppid", + "posix_getpwnam", + "posix_getpwuid", + "posix_getrlimit", + "posix_getsid", + "posix_getuid", + "posix_get_last_error", + "posix_initgroups", + "posix_isatty", + "posix_kill", + "posix_mkfifo", + "posix_mknod", + "posix_pathconf", + "posix_setegid", + "posix_seteuid", + "posix_setgid", + "posix_setpgid", + "posix_setrlimit", + "posix_setsid", + "posix_setuid", + "posix_strerror", + "posix_sysconf", + "posix_times", + "posix_ttyname", + "posix_uname", + "pow", + "preg_filter", + "preg_grep", + "preg_last_error", + "preg_last_error_msg", + "preg_match", + "preg_match_all", + "preg_quote", + "preg_replace", + "preg_replace_callback", + "preg_replace_callback_array", + "preg_split", + "prev", + "printf", + "print_r", + "proc_close", + "proc_get_status", + "proc_nice", + "proc_open", + "proc_terminate", + "property_exists", + "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", + "pspell_new_config", + "pspell_new_personal", + "pspell_save_wordlist", + "pspell_store_replacement", + "pspell_suggest", + "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", + "ps_closepath", + "ps_closepath_stroke", + "ps_close_image", + "ps_continue_text", + "ps_curveto", + "ps_delete", + "ps_end_page", + "ps_end_pattern", + "ps_end_template", + "ps_fill", + "ps_fill_stroke", + "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", + "ps_open_image_file", + "ps_open_memory_image", + "ps_place_image", + "ps_rect", + "ps_restore", + "ps_rotate", + "ps_save", + "ps_scale", + "ps_setcolor", + "ps_setdash", + "ps_setflat", + "ps_setfont", + "ps_setgray", + "ps_setlinecap", + "ps_setlinejoin", + "ps_setlinewidth", + "ps_setmiterlimit", + "ps_setoverprintmode", + "ps_setpolydash", + "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_shading", + "ps_shading_pattern", + "ps_shfill", + "ps_show", + "ps_show2", + "ps_show_boxed", + "ps_show_xy", + "ps_show_xy2", + "ps_stringwidth", + "ps_string_geometry", + "ps_stroke", + "ps_symbol", + "ps_symbol_name", + "ps_symbol_width", + "ps_translate", + "putenv", + "px_close", + "px_create_fp", + "px_date2string", + "px_delete", + "px_delete_record", + "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", + "quoted_printable_decode", + "quoted_printable_encode", + "quotemeta", + "rad2deg", + "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", + "radius_demangle_mppe_key", + "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", + "rand", + "random_bytes", + "random_int", + "range", + "rar_allow_broken_set", + "rar_broken_is", + "rar_close", + "rar_comment_get", + "rar_entry_get", + "rar_list", + "rar_open", + "rar_solid_is", + "rar_wrapper_cache_stats", + "rawurldecode", + "rawurlencode", + "readdir", + "readfile", + "readgzfile", + "readline", + "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", + "readlink", + "realpath", + "realpath_cache_get", + "realpath_cache_size", + "recode", + "recode_file", + "recode_string", + "register_shutdown_function", + "register_tick_function", + "rename", + "rename_function", + "reset", + "resourcebundle_count", + "resourcebundle_create", + "resourcebundle_get", + "resourcebundle_get_error_code", + "resourcebundle_get_error_message", + "resourcebundle_locales", + "restore_error_handler", + "restore_exception_handler", + "restore_include_path", + "rewind", + "rewinddir", + "rmdir", + "round", + "rpm_close", + "rpm_get_tag", + "rpm_is_valid", + "rpm_open", + "rpm_version", + "rrdc_disconnect", + "rrd_create", + "rrd_error", + "rrd_fetch", + "rrd_first", + "rrd_graph", + "rrd_info", + "rrd_last", + "rrd_lastupdate", + "rrd_restore", + "rrd_tune", + "rrd_update", + "rrd_version", + "rrd_xport", + "rsort", + "rtrim", + "runkit_class_adopt", + "runkit_class_emancipate", + "runkit_constant_add", + "runkit_constant_redefine", + "runkit_constant_remove", + "runkit_function_add", + "runkit_function_copy", + "runkit_function_redefine", + "runkit_function_remove", + "runkit_function_rename", + "runkit_import", + "runkit_lint", + "runkit_lint_file", + "runkit_method_add", + "runkit_method_copy", + "runkit_method_redefine", + "runkit_method_remove", + "runkit_method_rename", + "runkit_return_value_used", + "runkit_sandbox_output_handler", + "runkit_superglobals", + "sapi_windows_cp_conv", + "sapi_windows_cp_get", + "sapi_windows_cp_is_utf8", + "sapi_windows_cp_set", + "sapi_windows_vt100_support", + "scandir", + "seaslog_get_author", + "seaslog_get_version", + "sem_acquire", + "sem_get", + "sem_release", + "sem_remove", + "serialize", + "session_abort", + "session_cache_expire", + "session_cache_limiter", + "session_commit", + "session_create_id", + "session_decode", + "session_destroy", + "session_encode", + "session_gc", + "session_get_cookie_params", + "session_id", + "session_module_name", + "session_name", + "session_pgsql_add_error", + "session_pgsql_get_error", + "session_pgsql_get_field", + "session_pgsql_reset", + "session_pgsql_set_field", + "session_pgsql_status", + "session_regenerate_id", + "session_register_shutdown", + "session_reset", + "session_save_path", + "session_set_cookie_params", + "session_set_save_handler", + "session_start", + "session_status", + "session_unset", + "session_write_close", + "setcookie", + "setleftfill", + "setline", + "setlocale", + "setproctitle", + "setrawcookie", + "setrightfill", + "setthreadtitle", + "settype", + "set_error_handler", + "set_exception_handler", + "set_include_path", + "set_time_limit", + "sha1", + "sha1_file", + "sha256", + "sha256_file", + "shell_exec", + "shmop_close", + "shmop_delete", + "shmop_open", + "shmop_read", + "shmop_size", + "shmop_write", + "shm_attach", + "shm_detach", + "shm_get_var", + "shm_has_var", + "shm_put_var", + "shm_remove", + "shm_remove_var", + "show_source", + "shuffle", + "similar_text", + "simplexml_import_dom", + "simplexml_load_file", + "simplexml_load_string", + "sin", + "sinh", + "sizeof", + "sleep", + "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", + "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", + "socket_accept", + "socket_addrinfo_bind", + "socket_addrinfo_connect", + "socket_addrinfo_explain", + "socket_addrinfo_lookup", + "socket_bind", + "socket_clear_error", + "socket_close", + "socket_cmsg_space", + "socket_connect", + "socket_create", + "socket_create_listen", + "socket_create_pair", + "socket_export_stream", + "socket_getopt", + "socket_getpeername", + "socket_getsockname", + "socket_get_option", + "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_setopt", + "socket_set_block", + "socket_set_nonblock", + "socket_set_option", + "socket_shutdown", + "socket_strerror", + "socket_write", + "sodium_add", + "sodium_base642bin", + "sodium_bin2base64", + "sodium_bin2hex", + "sodium_compare", + "sodium_crypto_aead_aes256gcm_decrypt", + "sodium_crypto_aead_aes256gcm_encrypt", + "sodium_crypto_aead_aes256gcm_is_available", + "sodium_crypto_aead_aes256gcm_keygen", + "sodium_crypto_aead_chacha20poly1305_decrypt", + "sodium_crypto_aead_chacha20poly1305_encrypt", + "sodium_crypto_aead_chacha20poly1305_ietf_decrypt", + "sodium_crypto_aead_chacha20poly1305_ietf_encrypt", + "sodium_crypto_aead_chacha20poly1305_ietf_keygen", + "sodium_crypto_aead_chacha20poly1305_keygen", + "sodium_crypto_aead_xchacha20poly1305_ietf_decrypt", + "sodium_crypto_aead_xchacha20poly1305_ietf_encrypt", + "sodium_crypto_aead_xchacha20poly1305_ietf_keygen", + "sodium_crypto_auth", + "sodium_crypto_auth_keygen", + "sodium_crypto_auth_verify", + "sodium_crypto_box", + "sodium_crypto_box_keypair", + "sodium_crypto_box_keypair_from_secretkey_and_publickey", + "sodium_crypto_box_open", + "sodium_crypto_box_publickey", + "sodium_crypto_box_publickey_from_secretkey", + "sodium_crypto_box_seal", + "sodium_crypto_box_seal_open", + "sodium_crypto_box_secretkey", + "sodium_crypto_box_seed_keypair", + "sodium_crypto_generichash", + "sodium_crypto_generichash_final", + "sodium_crypto_generichash_init", + "sodium_crypto_generichash_keygen", + "sodium_crypto_generichash_update", + "sodium_crypto_kdf_derive_from_key", + "sodium_crypto_kdf_keygen", + "sodium_crypto_kx_client_session_keys", + "sodium_crypto_kx_keypair", + "sodium_crypto_kx_publickey", + "sodium_crypto_kx_secretkey", + "sodium_crypto_kx_seed_keypair", + "sodium_crypto_kx_server_session_keys", + "sodium_crypto_pwhash", + "sodium_crypto_pwhash_scryptsalsa208sha256", + "sodium_crypto_pwhash_scryptsalsa208sha256_str", + "sodium_crypto_pwhash_scryptsalsa208sha256_str_verify", + "sodium_crypto_pwhash_str", + "sodium_crypto_pwhash_str_needs_rehash", + "sodium_crypto_pwhash_str_verify", + "sodium_crypto_scalarmult", + "sodium_crypto_scalarmult_base", + "sodium_crypto_secretbox", + "sodium_crypto_secretbox_keygen", + "sodium_crypto_secretbox_open", + "sodium_crypto_secretstream_xchacha20poly1305_init_pull", + "sodium_crypto_secretstream_xchacha20poly1305_init_push", + "sodium_crypto_secretstream_xchacha20poly1305_keygen", + "sodium_crypto_secretstream_xchacha20poly1305_pull", + "sodium_crypto_secretstream_xchacha20poly1305_push", + "sodium_crypto_secretstream_xchacha20poly1305_rekey", + "sodium_crypto_shorthash", + "sodium_crypto_shorthash_keygen", + "sodium_crypto_sign", + "sodium_crypto_sign_detached", + "sodium_crypto_sign_ed25519_pk_to_curve25519", + "sodium_crypto_sign_ed25519_sk_to_curve25519", + "sodium_crypto_sign_keypair", + "sodium_crypto_sign_keypair_from_secretkey_and_publickey", + "sodium_crypto_sign_open", + "sodium_crypto_sign_publickey", + "sodium_crypto_sign_publickey_from_secretkey", + "sodium_crypto_sign_secretkey", + "sodium_crypto_sign_seed_keypair", + "sodium_crypto_sign_verify_detached", + "sodium_crypto_stream", + "sodium_crypto_stream_keygen", + "sodium_crypto_stream_xchacha20", + "sodium_crypto_stream_xchacha20_keygen", + "sodium_crypto_stream_xchacha20_xor", + "sodium_crypto_stream_xchacha20_xor_ic", + "sodium_crypto_stream_xor", + "sodium_hex2bin", + "sodium_increment", + "sodium_memcmp", + "sodium_memzero", + "sodium_pad", + "sodium_unpad", + "solr_get_version", + "sort", + "soundex", + "spl_autoload", + "spl_autoload_call", + "spl_autoload_extensions", + "spl_autoload_functions", + "spl_autoload_register", + "spl_autoload_unregister", + "spl_classes", + "spl_object_hash", + "spl_object_id", + "sprintf", + "sqlite_array_query", + "sqlite_busy_timeout", + "sqlite_changes", + "sqlite_close", + "sqlite_column", + "sqlite_create_aggregate", + "sqlite_create_function", + "sqlite_current", + "sqlite_error_string", + "sqlite_escape_string", + "sqlite_exec", + "sqlite_factory", + "sqlite_fetch_all", + "sqlite_fetch_array", + "sqlite_fetch_column_types", + "sqlite_fetch_object", + "sqlite_fetch_single", + "sqlite_fetch_string", + "sqlite_field_name", + "sqlite_has_more", + "sqlite_has_prev", + "sqlite_last_error", + "sqlite_last_insert_rowid", + "sqlite_libencoding", + "sqlite_libversion", + "sqlite_next", + "sqlite_num_fields", + "sqlite_num_rows", + "sqlite_open", + "sqlite_popen", + "sqlite_prev", + "sqlite_query", + "sqlite_rewind", + "sqlite_seek", + "sqlite_single_query", + "sqlite_udf_decode_binary", + "sqlite_udf_encode_binary", + "sqlite_unbuffered_query", + "sqlite_valid", + "sqlsrv_begin_transaction", + "sqlsrv_cancel", + "sqlsrv_client_info", + "sqlsrv_close", + "sqlsrv_commit", + "sqlsrv_configure", + "sqlsrv_connect", + "sqlsrv_errors", + "sqlsrv_execute", + "sqlsrv_fetch", + "sqlsrv_fetch_array", + "sqlsrv_fetch_object", + "sqlsrv_field_metadata", + "sqlsrv_free_stmt", + "sqlsrv_get_config", + "sqlsrv_get_field", + "sqlsrv_has_rows", + "sqlsrv_next_result", + "sqlsrv_num_fields", + "sqlsrv_num_rows", + "sqlsrv_prepare", + "sqlsrv_query", + "sqlsrv_rollback", + "sqlsrv_rows_affected", + "sqlsrv_send_stream_data", + "sqlsrv_server_info", + "sqrt", + "srand", + "sscanf", + "ssdeep_fuzzy_compare", + "ssdeep_fuzzy_hash", + "ssdeep_fuzzy_hash_filename", + "ssh2_auth_agent", + "ssh2_auth_hostbased_file", + "ssh2_auth_none", + "ssh2_auth_password", + "ssh2_auth_pubkey_file", + "ssh2_connect", + "ssh2_disconnect", + "ssh2_exec", + "ssh2_fetch_stream", + "ssh2_fingerprint", + "ssh2_methods_negotiated", + "ssh2_publickey_add", + "ssh2_publickey_init", + "ssh2_publickey_list", + "ssh2_publickey_remove", + "ssh2_scp_recv", + "ssh2_scp_send", + "ssh2_sftp", + "ssh2_sftp_chmod", + "ssh2_sftp_lstat", + "ssh2_sftp_mkdir", + "ssh2_sftp_readlink", + "ssh2_sftp_realpath", + "ssh2_sftp_rename", + "ssh2_sftp_rmdir", + "ssh2_sftp_stat", + "ssh2_sftp_symlink", + "ssh2_sftp_unlink", + "ssh2_shell", + "ssh2_tunnel", + "stat", + "stats_absolute_deviation", + "stats_cdf_beta", + "stats_cdf_binomial", + "stats_cdf_cauchy", + "stats_cdf_chisquare", + "stats_cdf_exponential", + "stats_cdf_f", + "stats_cdf_gamma", + "stats_cdf_laplace", + "stats_cdf_logistic", + "stats_cdf_negative_binomial", + "stats_cdf_noncentral_chisquare", + "stats_cdf_noncentral_f", + "stats_cdf_noncentral_t", + "stats_cdf_normal", + "stats_cdf_poisson", + "stats_cdf_t", + "stats_cdf_uniform", + "stats_cdf_weibull", + "stats_covariance", + "stats_dens_beta", + "stats_dens_cauchy", + "stats_dens_chisquare", + "stats_dens_exponential", + "stats_dens_f", + "stats_dens_gamma", + "stats_dens_laplace", + "stats_dens_logistic", + "stats_dens_normal", + "stats_dens_pmf_binomial", + "stats_dens_pmf_hypergeometric", + "stats_dens_pmf_negative_binomial", + "stats_dens_pmf_poisson", + "stats_dens_t", + "stats_dens_uniform", + "stats_dens_weibull", + "stats_harmonic_mean", + "stats_kurtosis", + "stats_rand_gen_beta", + "stats_rand_gen_chisquare", + "stats_rand_gen_exponential", + "stats_rand_gen_f", + "stats_rand_gen_funiform", + "stats_rand_gen_gamma", + "stats_rand_gen_ibinomial", + "stats_rand_gen_ibinomial_negative", + "stats_rand_gen_int", + "stats_rand_gen_ipoisson", + "stats_rand_gen_iuniform", + "stats_rand_gen_noncenral_chisquare", + "stats_rand_gen_noncentral_chisquare", + "stats_rand_gen_noncentral_f", + "stats_rand_gen_noncentral_t", + "stats_rand_gen_normal", + "stats_rand_gen_t", + "stats_rand_get_seeds", + "stats_rand_phrase_to_seeds", + "stats_rand_ranf", + "stats_rand_setall", + "stats_skew", + "stats_standard_deviation", + "stats_stat_binomial_coef", + "stats_stat_correlation", + "stats_stat_factorial", + "stats_stat_independent_t", + "stats_stat_innerproduct", + "stats_stat_paired_t", + "stats_stat_percentile", + "stats_stat_powersum", + "stats_variance", + "stomp_abort", + "stomp_ack", + "stomp_begin", + "stomp_close", + "stomp_commit", + "stomp_connect", + "stomp_connect_error", + "stomp_error", + "stomp_get_read_timeout", + "stomp_get_session_id", + "stomp_has_frame", + "stomp_read_frame", + "stomp_send", + "stomp_set_read_timeout", + "stomp_subscribe", + "stomp_unsubscribe", + "stomp_version", + "strcasecmp", + "strchr", + "strcmp", + "strcoll", + "strcspn", + "stream_bucket_append", + "stream_bucket_make_writeable", + "stream_bucket_new", + "stream_bucket_prepend", + "stream_context_create", + "stream_context_get_default", + "stream_context_get_options", + "stream_context_get_params", + "stream_context_set_default", + "stream_context_set_options", + "stream_context_set_option", + "stream_context_set_params", + "stream_copy_to_stream", + "stream_filter_append", + "stream_filter_prepend", + "stream_filter_register", + "stream_filter_remove", + "stream_get_contents", + "stream_get_filters", + "stream_get_line", + "stream_get_meta_data", + "stream_get_transports", + "stream_get_wrappers", + "stream_isatty", + "stream_is_local", + "stream_notification_callback", + "stream_register_wrapper", + "stream_resolve_include_path", + "stream_select", + "stream_set_blocking", + "stream_set_chunk_size", + "stream_set_read_buffer", + "stream_set_timeout", + "stream_set_write_buffer", + "stream_socket_accept", + "stream_socket_client", + "stream_socket_enable_crypto", + "stream_socket_get_name", + "stream_socket_pair", + "stream_socket_recvfrom", + "stream_socket_sendto", + "stream_socket_server", + "stream_socket_shutdown", + "stream_supports_lock", + "stream_wrapper_register", + "stream_wrapper_restore", + "stream_wrapper_unregister", + "strftime", + "stripcslashes", + "stripos", + "stripslashes", + "strip_tags", + "stristr", + "strlen", + "strnatcasecmp", + "strnatcmp", + "strncasecmp", + "strncmp", + "strpbrk", + "strpos", + "strptime", + "strrchr", + "strrev", + "strripos", + "strrpos", + "strspn", + "strstr", + "strtok", + "strtolower", + "strtotime", + "strtoupper", + "strtr", + "strval", + "str_contains", + "str_ends_with", + "str_getcsv", + "str_ireplace", + "str_pad", + "str_repeat", + "str_replace", + "str_rot13", + "str_shuffle", + "str_split", + "str_starts_with", + "str_word_count", + "substr", + "substr_compare", + "substr_count", + "substr_replace", + "suhosin_encrypt_cookie", + "suhosin_get_raw_cookies", + "svn_add", + "svn_auth_get_parameter", + "svn_auth_set_parameter", + "svn_blame", + "svn_cat", + "svn_checkout", + "svn_cleanup", + "svn_client_version", + "svn_commit", + "svn_delete", + "svn_diff", + "svn_export", + "svn_fs_abort_txn", + "svn_fs_apply_text", + "svn_fs_begin_txn2", + "svn_fs_change_node_prop", + "svn_fs_check_path", + "svn_fs_contents_changed", + "svn_fs_copy", + "svn_fs_delete", + "svn_fs_dir_entries", + "svn_fs_file_contents", + "svn_fs_file_length", + "svn_fs_is_dir", + "svn_fs_is_file", + "svn_fs_make_dir", + "svn_fs_make_file", + "svn_fs_node_created_rev", + "svn_fs_node_prop", + "svn_fs_props_changed", + "svn_fs_revision_prop", + "svn_fs_revision_root", + "svn_fs_txn_root", + "svn_fs_youngest_rev", + "svn_import", + "svn_log", + "svn_ls", + "svn_mkdir", + "svn_repos_create", + "svn_repos_fs", + "svn_repos_fs_begin_txn_for_commit", + "svn_repos_fs_commit_txn", + "svn_repos_hotcopy", + "svn_repos_open", + "svn_repos_recover", + "svn_revert", + "svn_status", + "svn_update", + "swoole_async_dns_lookup", + "swoole_async_read", + "swoole_async_readfile", + "swoole_async_set", + "swoole_async_write", + "swoole_async_writefile", + "swoole_client_select", + "swoole_cpu_num", + "swoole_errno", + "swoole_event_add", + "swoole_event_defer", + "swoole_event_del", + "swoole_event_exit", + "swoole_event_set", + "swoole_event_wait", + "swoole_event_write", + "swoole_get_local_ip", + "swoole_last_error", + "swoole_load_module", + "swoole_select", + "swoole_set_process_name", + "swoole_strerror", + "swoole_timer_after", + "swoole_timer_clear", + "swoole_timer_exists", + "swoole_timer_tick", + "swoole_version", + "sybase_affected_rows", + "sybase_close", + "sybase_connect", + "sybase_data_seek", + "sybase_deadlock_retry_count", + "sybase_fetch_array", + "sybase_fetch_assoc", + "sybase_fetch_field", + "sybase_fetch_object", + "sybase_fetch_row", + "sybase_field_seek", + "sybase_free_result", + "sybase_get_last_message", + "sybase_min_client_severity", + "sybase_min_error_severity", + "sybase_min_message_severity", + "sybase_min_server_severity", + "sybase_num_fields", + "sybase_num_rows", + "sybase_pconnect", + "sybase_query", + "sybase_result", + "sybase_select_db", + "sybase_set_message_handler", + "sybase_unbuffered_query", + "symlink", + "syslog", + "system", + "sys_getloadavg", + "sys_get_temp_dir", + "taint", + "tan", + "tanh", + "tcpwrap_check", + "tempnam", + "textdomain", + "tidy_access_count", + "tidy_clean_repair", + "tidy_config_count", + "tidy_diagnose", + "tidy_error_count", + "tidy_getopt", + "tidy_get_body", + "tidy_get_config", + "tidy_get_error_buffer", + "tidy_get_head", + "tidy_get_html", + "tidy_get_html_ver", + "tidy_get_opt_doc", + "tidy_get_output", + "tidy_get_release", + "tidy_get_root", + "tidy_get_status", + "tidy_is_xhtml", + "tidy_is_xml", + "tidy_parse_file", + "tidy_parse_string", + "tidy_repair_file", + "tidy_repair_string", + "tidy_warning_count", + "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", + "time_nanosleep", + "time_sleep_until", + "tmpfile", + "token_get_all", + "token_name", + "touch", + "trader_acos", + "trader_ad", + "trader_add", + "trader_adosc", + "trader_adx", + "trader_adxr", + "trader_apo", + "trader_aroon", + "trader_aroonosc", + "trader_asin", + "trader_atan", + "trader_atr", + "trader_avgprice", + "trader_bbands", + "trader_beta", + "trader_bop", + "trader_cci", + "trader_cdl2crows", + "trader_cdl3blackcrows", + "trader_cdl3inside", + "trader_cdl3linestrike", + "trader_cdl3outside", + "trader_cdl3starsinsouth", + "trader_cdl3whitesoldiers", + "trader_cdlabandonedbaby", + "trader_cdladvanceblock", + "trader_cdlbelthold", + "trader_cdlbreakaway", + "trader_cdlclosingmarubozu", + "trader_cdlconcealbabyswall", + "trader_cdlcounterattack", + "trader_cdldarkcloudcover", + "trader_cdldoji", + "trader_cdldojistar", + "trader_cdldragonflydoji", + "trader_cdlengulfing", + "trader_cdleveningdojistar", + "trader_cdleveningstar", + "trader_cdlgapsidesidewhite", + "trader_cdlgravestonedoji", + "trader_cdlhammer", + "trader_cdlhangingman", + "trader_cdlharami", + "trader_cdlharamicross", + "trader_cdlhighwave", + "trader_cdlhikkake", + "trader_cdlhikkakemod", + "trader_cdlhomingpigeon", + "trader_cdlidentical3crows", + "trader_cdlinneck", + "trader_cdlinvertedhammer", + "trader_cdlkicking", + "trader_cdlkickingbylength", + "trader_cdlladderbottom", + "trader_cdllongleggeddoji", + "trader_cdllongline", + "trader_cdlmarubozu", + "trader_cdlmatchinglow", + "trader_cdlmathold", + "trader_cdlmorningdojistar", + "trader_cdlmorningstar", + "trader_cdlonneck", + "trader_cdlpiercing", + "trader_cdlrickshawman", + "trader_cdlrisefall3methods", + "trader_cdlseparatinglines", + "trader_cdlshootingstar", + "trader_cdlshortline", + "trader_cdlspinningtop", + "trader_cdlstalledpattern", + "trader_cdlsticksandwich", + "trader_cdltakuri", + "trader_cdltasukigap", + "trader_cdlthrusting", + "trader_cdltristar", + "trader_cdlunique3river", + "trader_cdlupsidegap2crows", + "trader_cdlxsidegap3methods", + "trader_ceil", + "trader_cmo", + "trader_correl", + "trader_cos", + "trader_cosh", + "trader_dema", + "trader_div", + "trader_dx", + "trader_ema", + "trader_errno", + "trader_exp", + "trader_floor", + "trader_get_compat", + "trader_get_unstable_period", + "trader_ht_dcperiod", + "trader_ht_dcphase", + "trader_ht_phasor", + "trader_ht_sine", + "trader_ht_trendline", + "trader_ht_trendmode", + "trader_kama", + "trader_linearreg", + "trader_linearreg_angle", + "trader_linearreg_intercept", + "trader_linearreg_slope", + "trader_ln", + "trader_log10", + "trader_ma", + "trader_macd", + "trader_macdext", + "trader_macdfix", + "trader_mama", + "trader_mavp", + "trader_max", + "trader_maxindex", + "trader_medprice", + "trader_mfi", + "trader_midpoint", + "trader_midprice", + "trader_min", + "trader_minindex", + "trader_minmax", + "trader_minmaxindex", + "trader_minus_di", + "trader_minus_dm", + "trader_mom", + "trader_mult", + "trader_natr", + "trader_obv", + "trader_plus_di", + "trader_plus_dm", + "trader_ppo", + "trader_roc", + "trader_rocp", + "trader_rocr", + "trader_rocr100", + "trader_rsi", + "trader_sar", + "trader_sarext", + "trader_set_compat", + "trader_set_unstable_period", + "trader_sin", + "trader_sinh", + "trader_sma", + "trader_sqrt", + "trader_stddev", + "trader_stoch", + "trader_stochf", + "trader_stochrsi", + "trader_sub", + "trader_sum", + "trader_t3", + "trader_tan", + "trader_tanh", + "trader_tema", + "trader_trange", + "trader_trima", + "trader_trix", + "trader_tsf", + "trader_typprice", + "trader_ultosc", + "trader_var", + "trader_wclprice", + "trader_willr", + "trader_wma", + "trait_exists", + "transliterator_create", + "transliterator_create_from_rules", + "transliterator_create_inverse", + "transliterator_get_error_code", + "transliterator_get_error_message", + "transliterator_list_ids", + "transliterator_transliterate", + "trigger_error", + "trim", + "uasort", + "ucfirst", + "ucwords", + "udm_add_search_limit", + "udm_alloc_agent", + "udm_alloc_agent_array", + "udm_api_version", + "udm_cat_list", + "udm_cat_path", + "udm_check_charset", + "udm_clear_search_limits", + "udm_crc32", + "udm_errno", + "udm_error", + "udm_find", + "udm_free_agent", + "udm_free_ispell_data", + "udm_free_res", + "udm_get_doc_count", + "udm_get_res_field", + "udm_get_res_param", + "udm_hash32", + "udm_load_ispell_data", + "udm_set_agent_param", + "uksort", + "umask", + "uniqid", + "unixtojd", + "unlink", + "unpack", + "unregister_tick_function", + "unserialize", + "untaint", + "uopz_add_function", + "uopz_allow_exit", + "uopz_backup", + "uopz_compose", + "uopz_copy", + "uopz_delete", + "uopz_del_function", + "uopz_extend", + "uopz_flags", + "uopz_function", + "uopz_get_exit_status", + "uopz_get_hook", + "uopz_get_mock", + "uopz_get_property", + "uopz_get_return", + "uopz_get_static", + "uopz_implement", + "uopz_overload", + "uopz_redefine", + "uopz_rename", + "uopz_restore", + "uopz_set_hook", + "uopz_set_mock", + "uopz_set_property", + "uopz_set_return", + "uopz_set_static", + "uopz_undefine", + "uopz_unset_hook", + "uopz_unset_mock", + "uopz_unset_return", + "urldecode", + "urlencode", + "user_error", + "use_soap_error_handler", + "usleep", + "usort", + "utf8_decode", + "utf8_encode", + "variant_abs", + "variant_add", + "variant_and", + "variant_cast", + "variant_cat", + "variant_cmp", + "variant_date_from_timestamp", + "variant_date_to_timestamp", + "variant_div", + "variant_eqv", + "variant_fix", + "variant_get_type", + "variant_idiv", + "variant_imp", + "variant_int", + "variant_mod", + "variant_mul", + "variant_neg", + "variant_not", + "variant_or", + "variant_pow", + "variant_round", + "variant_set", + "variant_set_type", + "variant_sub", + "variant_xor", + "var_dump", + "var_export", + "version_compare", + "vfprintf", + "virtual", + "vpopmail_add_alias_domain", + "vpopmail_add_alias_domain_ex", + "vpopmail_add_domain", + "vpopmail_add_domain_ex", + "vpopmail_add_user", + "vpopmail_alias_add", + "vpopmail_alias_del", + "vpopmail_alias_del_domain", + "vpopmail_alias_get", + "vpopmail_alias_get_all", + "vpopmail_auth_user", + "vpopmail_del_domain", + "vpopmail_del_domain_ex", + "vpopmail_del_user", + "vpopmail_error", + "vpopmail_passwd", + "vpopmail_set_user_quota", + "vprintf", + "vsprintf", + "wddx_add_vars", + "wddx_deserialize", + "wddx_packet_end", + "wddx_packet_start", + "wddx_serialize_value", + "wddx_serialize_vars", + "win32_continue_service", + "win32_create_service", + "win32_delete_service", + "win32_get_last_control_message", + "win32_pause_service", + "win32_ps_list_procs", + "win32_ps_stat_mem", + "win32_ps_stat_proc", + "win32_query_service_status", + "win32_set_service_status", + "win32_start_service", + "win32_start_service_ctrl_dispatcher", + "win32_stop_service", + "wincache_fcache_fileinfo", + "wincache_fcache_meminfo", + "wincache_lock", + "wincache_ocache_fileinfo", + "wincache_ocache_meminfo", + "wincache_refresh_if_changed", + "wincache_rplist_fileinfo", + "wincache_rplist_meminfo", + "wincache_scache_info", + "wincache_scache_meminfo", + "wincache_ucache_add", + "wincache_ucache_cas", + "wincache_ucache_clear", + "wincache_ucache_dec", + "wincache_ucache_delete", + "wincache_ucache_exists", + "wincache_ucache_get", + "wincache_ucache_inc", + "wincache_ucache_info", + "wincache_ucache_meminfo", + "wincache_ucache_set", + "wincache_unlock", + "wordwrap", + "xattr_get", + "xattr_list", + "xattr_remove", + "xattr_set", + "xattr_supported", + "xdiff_file_bdiff", + "xdiff_file_bdiff_size", + "xdiff_file_bpatch", + "xdiff_file_diff", + "xdiff_file_diff_binary", + "xdiff_file_merge3", + "xdiff_file_patch", + "xdiff_file_patch_binary", + "xdiff_file_rabdiff", + "xdiff_string_bdiff", + "xdiff_string_bdiff_size", + "xdiff_string_bpatch", + "xdiff_string_diff", + "xdiff_string_merge3", + "xdiff_string_patch", + "xdiff_string_patch_binary", + "xhprof_disable", + "xhprof_enable", + "xhprof_sample_disable", + "xhprof_sample_enable", + "xmlrpc_decode", + "xmlrpc_decode_request", + "xmlrpc_encode", + "xmlrpc_encode_request", + "xmlrpc_get_type", + "xmlrpc_is_fault", + "xmlrpc_parse_method_descriptions", + "xmlrpc_server_add_introspection_data", + "xmlrpc_server_call_method", + "xmlrpc_server_create", + "xmlrpc_server_destroy", + "xmlrpc_server_register_introspection_callback", + "xmlrpc_server_register_method", + "xmlrpc_set_type", + "xmlwriter_end_attribute", + "xmlwriter_end_cdata", + "xmlwriter_end_comment", + "xmlwriter_end_document", + "xmlwriter_end_dtd", + "xmlwriter_end_dtd_attlist", + "xmlwriter_end_dtd_element", + "xmlwriter_end_dtd_entity", + "xmlwriter_end_element", + "xmlwriter_end_pi", + "xmlwriter_flush", + "xmlwriter_full_end_element", + "xmlwriter_open_memory", + "xmlwriter_open_uri", + "xmlwriter_output_memory", + "xmlwriter_set_indent", + "xmlwriter_set_indent_string", + "xmlwriter_start_attribute", + "xmlwriter_start_attribute_ns", + "xmlwriter_start_cdata", + "xmlwriter_start_comment", + "xmlwriter_start_document", + "xmlwriter_start_dtd", + "xmlwriter_start_dtd_attlist", + "xmlwriter_start_dtd_element", + "xmlwriter_start_dtd_entity", + "xmlwriter_start_element", + "xmlwriter_start_element_ns", + "xmlwriter_start_pi", + "xmlwriter_text", + "xmlwriter_write_attribute", + "xmlwriter_write_attribute_ns", + "xmlwriter_write_cdata", + "xmlwriter_write_comment", + "xmlwriter_write_dtd", + "xmlwriter_write_dtd_attlist", + "xmlwriter_write_dtd_element", + "xmlwriter_write_dtd_entity", + "xmlwriter_write_element", + "xmlwriter_write_element_ns", + "xmlwriter_write_pi", + "xmlwriter_write_raw", + "xml_error_string", + "xml_get_current_byte_index", + "xml_get_current_column_number", + "xml_get_current_line_number", + "xml_get_error_code", + "xml_parse", + "xml_parser_create", + "xml_parser_create_ns", + "xml_parser_free", + "xml_parser_get_option", + "xml_parser_set_option", + "xml_parse_into_struct", + "xml_set_character_data_handler", + "xml_set_default_handler", + "xml_set_element_handler", + "xml_set_end_namespace_decl_handler", + "xml_set_external_entity_ref_handler", + "xml_set_notation_decl_handler", + "xml_set_object", + "xml_set_processing_instruction_handler", + "xml_set_start_namespace_decl_handler", + "xml_set_unparsed_entity_decl_handler", + "yaml_emit", + "yaml_emit_file", + "yaml_parse", + "yaml_parse_file", + "yaml_parse_url", + "yaz_addinfo", + "yaz_ccl_conf", + "yaz_ccl_parse", + "yaz_close", + "yaz_connect", + "yaz_database", + "yaz_element", + "yaz_errno", + "yaz_error", + "yaz_es", + "yaz_es_result", + "yaz_get_option", + "yaz_hits", + "yaz_itemorder", + "yaz_present", + "yaz_range", + "yaz_record", + "yaz_scan", + "yaz_scan_result", + "yaz_schema", + "yaz_search", + "yaz_set_option", + "yaz_sort", + "yaz_syntax", + "yaz_wait", + "yp_all", + "yp_cat", + "yp_errno", + "yp_err_string", + "yp_first", + "yp_get_default_domain", + "yp_master", + "yp_match", + "yp_next", + "yp_order", + "zend_logo_guid", + "zend_thread_id", + "zend_version", + "zip_close", + "zip_entry_close", + "zip_entry_compressedsize", + "zip_entry_compressionmethod", + "zip_entry_filesize", + "zip_entry_name", + "zip_entry_open", + "zip_entry_read", + "zip_open", + "zip_read", + "zlib_decode", + "zlib_encode", + "zlib_get_coding_type", + "zookeeper_dispatch", + "xdebug_break", + "xdebug_call_class", + "xdebug_call_file", + "xdebug_call_function", + "xdebug_call_line", + "xdebug_code_coverage", + "xdebug_debug_zval", + "xdebug_debug_zval_stdout", + "xdebug_disable", + "xdebug_dump_superglobals", + "xdebug_enable", + "xdebug_get_code_coverage", + "xdebug_get_collected_errors", + "xdebug_get_declared_vars", + "xdebug_get_function_stack", + "xdebug_get_headers", + "xdebug_get_monitored_functions", + "xdebug_get_profiler_filename", + "xdebug_get_stack_depth", + "xdebug_get_tracefile_name", + "xdebug_is_debugger_active", + "xdebug_is_enabled", + "xdebug_memory_usage", + "xdebug_peak_memory_usage", + "xdebug_print_function_stack", + "xdebug_set_filter", + "xdebug_start_code_coverage", + "xdebug_start_error_collection", + "xdebug_start_function_monitor", + "xdebug_start_trace", + "xdebug_stop_code_coverage", + "xdebug_stop_error_collection", + "xdebug_stop_function_monitor", + "xdebug_stop_trace", + "xdebug_time_index", + "xdebug_var_dump" + ], + "special-variables": [ + "$GLOBALS", + "$_COOKIE", + "$_ENV", + "$_FILES", + "$_GET", + "$_POST", + "$_REQUEST", + "$_SERVER", + "$_SESSION", + "$php_errormsg", + "$this", + "$http_response_header" + ], + "predefined-classes": [ + "AddressInfo", + "APCIterator", + "APCUIterator", + "AppendIterator", + "ArgumentCountError", + "ArithmeticError", + "ArrayAccess", + "ArrayIterator", + "ArrayObject", + "AssertionError", + "BadFunctionCallException", + "BadMethodCallException", + "CachingIterator", + "Cairo", + "CairoAntialias", + "CairoContent", + "CairoContext", + "CairoException", + "CairoExtend", + "CairoFillRule", + "CairoFilter", + "CairoFontFace", + "CairoFontOptions", + "CairoFontSlant", + "CairoFontType", + "CairoFontWeight", + "CairoFormat", + "CairoGradientPattern", + "CairoHintMetrics", + "CairoHintStyle", + "CairoImageSurface", + "CairoLinearGradient", + "CairoLineCap", + "CairoLineJoin", + "CairoMatrix", + "CairoOperator", + "CairoPath", + "CairoPattern", + "CairoPatternType", + "CairoPdfSurface", + "CairoPsLevel", + "CairoPsSurface", + "CairoRadialGradient", + "CairoScaledFont", + "CairoSolidPattern", + "CairoStatus", + "CairoSubpixelOrder", + "CairoSurface", + "CairoSurfacePattern", + "CairoSurfaceType", + "CairoSvgSurface", + "CairoSvgVersion", + "CairoToyFontFace", + "CallbackFilterIterator", + "chdb", + "Closure", + "Collator", + "Collectable", + "CompileError", + "Cond", + "Countable", + "CURLFile", + "CurlHandle", + "CurlMultiHandle", + "CurlShareHandle", + "CURLStringFile", + "DateInterval", + "DateInvalidOperationException", + "DateMalformedIntervalStringException", + "DatePeriod", + "DateRangeError", + "DateTime", + "DateTimeImmutable", + "DateTimeInterface", + "DateTimeZone", + "Directory", + "DirectoryIterator", + "DivisionByZeroError", + "DomainException", + "DOMAttr", + "DOMCdataSection", + "DomCharacterData", + "DOMChildNode", + "DOMComment", + "DOMDocument", + "DOMDocumentFragment", + "DOMDocumentType", + "DomElement", + "DOMEntity", + "DomEntityReference", + "DOMException", + "DomImplementation", + "DomNamedNodeMap", + "DOMNode", + "DOMNodeList", + "DOMNotation", + "DOMParentNode", + "DOMProcessingInstruction", + "DOMText", + "DomXPath", + "EmptyIterator", + "Error", + "ErrorException", + "EvCheck", + "EvChild", + "EvEmbed", + "EventBuffer", + "EventHttpConnection", + "EventHttpRequest", + "EvFork", + "EvIdle", + "EvIo", + "EvPeriodic", + "EvPrepare", + "EvSignal", + "EvStat", + "EvTimer", + "EvWatcher", + "Exception", + "FANNConnection", + "Fiber", + "FilesystemIterator", + "FilterIterator", + "finfo", + "GdImage", + "GearmanClient", + "GearmanException", + "GearmanJob", + "GearmanTask", + "GearmanWorker", + "Gender", + "Generator", + "GlobIterator", + "Gmagick", + "GmagickDraw", + "GmagickException", + "GmagickPixel", + "GmagickPixelException", + "GMP", + "HaruAnnotation", + "HaruDestination", + "HaruDoc", + "HaruEncoder", + "HaruException", + "HaruFont", + "HaruImage", + "HaruOutline", + "HaruPage", + "HashContext", + "hw_api", + "hw_api_attribute", + "hw_api_content", + "hw_api_error", + "hw_api_object", + "hw_api_reason", + "Imagick", + "ImagickDraw", + "ImagickKernel", + "ImagickKernelException", + "ImagickPixel", + "ImagickPixelIterator", + "InfiniteIterator", + "IntlBreakIterator", + "IntlCalendar", + "IntlChar", + "IntlCodePointBreakIterator", + "IntlDateFormatter", + "IntlDatePatternGenerator", + "IntlException", + "IntlGregorianCalendar", + "IntlIterator", + "IntlPartsIterator", + "IntlRuleBasedBreakIterator", + "IntlTimeZone", + "InvalidArgumentException", + "Iterator", + "IteratorAggregate", + "IteratorIterator", + "JsonException", + "JsonSerializable", + "Judy", + "KTaglib_ID3v2_AttachedPictureFrame", + "KTaglib_ID3v2_Frame", + "KTaglib_ID3v2_Tag", + "KTaglib_MPEG_AudioProperties", + "KTaglib_MPEG_File", + "KTaglib_MPEG_Header", + "KTaglib_Tag", + "Lapack", + "lapackexception", + "LengthException", + "libXMLError", + "LimitIterator", + "Locale", + "LogicException", + "Lua", + "LuaClosure", + "LuaException", + "maxdb", + "maxdb_result", + "maxdb_stmt", + "Memcache", + "Memcached", + "MemcachedException", + "MessageFormatter", + "Mongo", + "MongoBinData", + "MongoClient", + "MongoCode", + "MongoCollection", + "MongoCommandCursor", + "MongoConnectionException", + "MongoCursor", + "MongoCursorException", + "MongoCursorInterface", + "MongoCursorTimeoutException", + "MongoDate", + "MongoDB", + "MongoDBRef", + "MultipleIterator", + "Mutex", + "mysqli", + "mysqli_driver", + "mysqli_result", + "mysqli_sql_exception", + "mysqli_stmt", + "mysqli_warning", + "MysqlndUhConnection", + "MysqlndUhPreparedStatement", + "NoRewindIterator", + "Normalizer", + "NumberFormatter", + "OAuth", + "OAuthException", + "OAuthProvider", + "OCI-Collection", + "OCI-Lob", + "OpenSSLAsymmetricKey", + "OpenSSLCertificate", + "OpenSSLCertificateSigningRequest", + "OuterIterator", + "OutOfBoundsException", + "OutOfRangeException", + "OverflowException", + "ParentIterator", + "ParseError", + "PDO", + "PDOException", + "PDOStatement", + "Phar", + "PharData", + "PharException", + "PharFileInfo", + "phdfs", + "PhpToken", + "php_user_filter", + "QuickHashIntHash", + "QuickHashIntSet", + "QuickHashIntStringHash", + "QuickHashStringIntHash", + "Randomizer", + "RangeException", + "RecursiveArrayIterator", + "RecursiveCachingIterator", + "RecursiveCallbackFilterIterator", + "RecursiveDirectoryIterator", + "RecursiveFilterIterator", + "RecursiveIterator", + "RecursiveIteratorIterator", + "RecursiveRegexIterator", + "RecursiveTreeIterator", + "Reflection", + "ReflectionClass", + "ReflectionClassConstant", + "ReflectionException", + "ReflectionExtension", + "ReflectionFunction", + "ReflectionFunctionAbstract", + "ReflectionGenerator", + "ReflectionMethod", + "ReflectionNamedType", + "ReflectionObject", + "ReflectionParameter", + "ReflectionProperty", + "ReflectionType", + "ReflectionZendExtension", + "Reflector", + "RegexIterator", + "ResourceBundle", + "RRDCreator", + "RRDGraph", + "RRDUpdater", + "Runkit_Sandbox_Parent", + "RuntimeException", + "SAMConnection", + "SAMMessage", + "SCA", + "SCA_LocalProxy", + "SCA_SoapProxy", + "SDO_DAS_ChangeSummary", + "SDO_DAS_DataFactory", + "SDO_DAS_DataObject", + "SDO_DAS_Relational", + "SDO_DAS_Setting", + "SDO_DAS_XML", + "SDO_DAS_XML_Document", + "SDO_DataFactory", + "SDO_DataObject", + "SDO_Exception", + "SDO_List", + "SDO_Model_Property", + "SDO_Model_ReflectionDataObject", + "SDO_Model_Type", + "SDO_Sequence", + "SeasLog", + "SeekableIterator", + "Serializable", + "SessionHandler", + "SessionHandlerInterface", + "SessionIdInterface", + "SessionUpdateTimestampHandlerInterface", + "SimpleXMLElement", + "SimpleXMLIterator", + "SNMP", + "SNMPException", + "SoapClient", + "SoapFault", + "SoapHeader", + "SoapParam", + "SoapServer", + "SoapVar", + "Socket", + "SodiumException", + "SolrClientException", + "SolrCollapseFunction", + "SolrDisMaxQuery", + "SolrException", + "SolrIllegalArgumentException", + "SolrIllegalOperationException", + "SolrMissingMandatoryParameterException", + "SolrModifiableParams", + "SolrParams", + "SolrQuery", + "SolrResponse", + "SolrServerException", + "SolrUtils", + "SphinxClient", + "SplBool", + "SplDoublyLinkedList", + "SplEnum", + "SplFileInfo", + "SplFileObject", + "SplFixedArray", + "SplFloat", + "SplHeap", + "SplInt", + "SplMaxHeap", + "SplMinHeap", + "SplObjectStorage", + "SplObserver", + "SplPriorityQueue", + "SplQueue", + "SplStack", + "SplString", + "SplSubject", + "SplTempFileObject", + "SplType", + "Spoofchecker", + "SQLite3", + "SQLite3Result", + "SQLite3Stmt", + "SQLiteDatabase", + "SQLiteResult", + "SQLiteUnbuffered", + "stdClass", + "Stomp", + "StompException", + "StompFrame", + "streamWrapper", + "Stringable", + "SVM", + "SVMException", + "SVMModel", + "SWFAction", + "SWFBitmap", + "SWFButton", + "SWFDisplayItem", + "SWFFill", + "SWFFont", + "SWFFontChar", + "SWFGradient", + "SWFMorph", + "SWFMovie", + "SWFPrebuiltClip", + "SWFShape", + "SWFSound", + "SWFSoundInstance", + "SWFSprite", + "SWFText", + "SWFTextField", + "SWFVideoStream", + "Swish", + "SwishResult", + "SwishResults", + "SwishSearch", + "SyncEvent", + "SyncMutex", + "SyncReaderWriter", + "SyncSemaphore", + "SyncSharedMemory", + "Thread", + "Threaded", + "Throwable", + "tidy", + "tidyNode", + "TokyoTyrant", + "tokyotyrantexception", + "TokyoTyrantIterator", + "TokyoTyrantQuery", + "TokyoTyrantTable", + "Transliterator", + "Traversable", + "TypeError", + "UnderflowException", + "UnexpectedValueException", + "UnhandledMatchError", + "ValueError", + "V8Js", + "V8JsException", + "VarnishAdmin", + "VarnishException", + "VarnishLog", + "VarnishStat", + "Volatile", + "WeakMap", + "WeakRef", + "Worker", + "XMLParser", + "XMLReader", + "XMLWriter", + "XSLTProcessor", + "Yaconf", + "Yaf_Action_Abstract", + "Yaf_Bootstrap_Abstract", + "Yaf_Config_Abstract", + "Yaf_Config_Ini", + "Yaf_Config_Simple", + "Yaf_Controller_Abstract", + "Yaf_Exception", + "Yaf_Exception_DispatchFailed", + "Yaf_Exception_LoadFailed", + "Yaf_Exception_LoadFailed_Action", + "Yaf_Exception_LoadFailed_Controller", + "Yaf_Exception_LoadFailed_Module", + "Yaf_Exception_LoadFailed_View", + "Yaf_Exception_RouterFailed", + "Yaf_Exception_StartupError", + "Yaf_Exception_TypeError", + "Yaf_Loader", + "Yaf_Plugin_Abstract", + "Yaf_Registry", + "Yaf_Request_Abstract", + "Yaf_Request_Http", + "Yaf_Request_Simple", + "Yaf_Response_Abstract", + "Yaf_Response_Cli", + "Yaf_Response_Http", + "Yaf_Router", + "Yaf_Route_Interface", + "Yaf_Route_Map", + "Yaf_Route_Regex", + "Yaf_Route_Rewrite", + "Yaf_Route_Simple", + "Yaf_Route_Static", + "Yaf_Route_Supervar", + "Yaf_Session", + "Yaf_View_Interface", + "Yaf_View_Simple", + "Yar_Client", + "Yar_Client_Exception", + "Yar_Client_Packager_Exception", + "Yar_Client_Protocol_Exception", + "Yar_Client_Transport_Exception", + "Yar_Concurrent_Client", + "Yar_Server", + "Yar_Server_Exception", + "Yar_Server_Output_Exception", + "Yar_Server_Packager_Exception", + "Yar_Server_Protocol_Exception", + "Yar_Server_Request_Exception", + "ZipArchive", + "ZMQ", + "ZMQContext", + "ZMQContextException", + "ZMQDevice", + "ZMQDeviceException", + "ZMQException", + "ZMQPoll", + "ZMQPollException", + "ZMQSocket", + "ZMQSocketException", + "Zookeeper", + "ZookeeperAuthenticationException", + "ZookeeperConfig", + "ZookeeperConnectionException", + "ZookeeperException", + "ZookeeperMarshallingException", + "ZookeeperNoNodeException", + "ZookeeperOperationTimeoutException", + "ZookeeperSessionException", + "__PHP_Incomplete_Class" + ], + "deprecated": [ + "$HTTP_SERVER_VARS", + "$HTTP_SESSION_VARS", + "$HTTP_ENV_VARS", + "$HTTP_POST_FILES", + "$HTTP_COOKIE_VARS", + "$HTTP_POST_VARS", + "$HTTP_GET_VARS", + "$DOCUMENT_ROOT", + "call_user_method", + "call_user_method_array", + "create_function", + "datefmt_set_timezone_id", + "define_syslog_variables", + "each", + "ereg", + "ereg_replace", + "eregi", + "eregi_replace", + "gmp_random", + "image2wbmp", + "imagepsbbox", + "imagepsencodefont", + "imagepsextendfont", + "imagepsfreefont", + "imagepsloadfont", + "imagepsslantfont", + "imagepstext", + "jpeg2wbmp", + "magic_quotes_runtime", + "mcrypt_cbc", + "mcrypt_cfb", + "mcrypt_create_iv", + "mcrypt_decrypt", + "mcrypt_ecb", + "mcrypt_encrypt", + "mcrypt_enc_get_algorithms_name", + "mcrypt_enc_get_block_size", + "mcrypt_enc_get_iv_size", + "mcrypt_enc_get_key_size", + "mcrypt_enc_get_modes_name", + "mcrypt_enc_get_supported_key_sizes", + "mcrypt_enc_is_block_algorithm", + "mcrypt_enc_is_block_algorithm_mode", + "mcrypt_enc_is_block_mode", + "mcrypt_enc_self_test", + "mcrypt_generic", + "mcrypt_generic_deinit", + "mcrypt_generic_end", + "mcrypt_generic_init", + "mcrypt_get_block_size", + "mcrypt_get_cipher_name", + "mcrypt_get_iv_size", + "mcrypt_get_key_size", + "mcrypt_list_algorithms", + "mcrypt_list_modes", + "mcrypt_module_close", + "mcrypt_module_get_algo_block_size", + "mcrypt_module_get_algo_key_size", + "mcrypt_module_get_supported_key_sizes", + "mcrypt_module_is_block_algorithm", + "mcrypt_module_is_block_algorithm_mode", + "mcrypt_module_is_block_mode", + "mcrypt_module_open", + "mcrypt_module_self_test", + "mcrypt_ofb", + "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", + "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", + "mysqli_disable_reads_from_master", + "mysqli_disable_rpl_parse", + "mysqli_enable_reads_from_master", + "mysqli_enable_rpl_parse", + "mysqli_master_query", + "mysqli_rpl_parse_enabled", + "mysqli_rpl_probe", + "mysqli_rpl_query_type", + "mysqli_send_query", + "mysqli_slave_query", + "ocifetchinto", + "php_check_syntax", + "png2wbmp", + "read_exif_data", + "session_is_registered", + "session_register", + "session_unregister", + "set_magic_quotes_runtime", + "set_socket_blocking", + "split", + "spliti", + "sql_regcase", + "var", + "OCI_DEFAULT", + "OCI_D_FILE", + "OCI_D_LOB", + "OCI_D_ROWID", + "OCI_EXACT_FETCH", + "OCI_SYSDATE" + ] + }, + "item-datas": { + "Normal Text": "Normal", + "PHP Text": "Normal", + "Keyword": "Keyword", + "Classes": "BuiltIn", + "Function": "Function", + "Special method": "BuiltIn", + "Attribute": "Attribute", + "Decimal": "DecVal", + "Binary": "BaseN", + "Octal": "BaseN", + "Hex": "BaseN", + "Float": "Float", + "String": "String", + "Heredoc": "SpecialString", + "Nowdoc": "VerbatimString", + "Comment": "Comment", + "Special Variable": "Variable", + "Variable": "Variable", + "Library Constant": "Constant", + "Constant": "Constant", + "Control Structures": "ControlFlow", + "Backslash Code": "SpecialChar", + "Operator": "Operator", + "Symbol": "Normal", + "Scope Resolution": "Normal", + "Other": "Others", + "Types": "DataType", + "Properties": "DataType", + "Cast": "DataType", + "Error Control Operator": "Preprocessor", + "Error": "Error" + }, + "contexts": { + "start": { + "attribute": "Normal Text", + "line-end-context": "#stay", + "rules": [ + { + "type": "StringDetect", + "attribute": "Keyword", + "context": "phpsource", + "String": "" + }, + { + "type": "Detect2Chars", + "attribute": "Comment", + "context": "comment-line", + "char": "/", + "char1": "/" + }, + { + "type": "Detect2Chars", + "attribute": "Comment", + "context": "comment-block", + "char": "/", + "char1": "*" + }, + { + "type": "DetectChar", + "attribute": "Comment", + "context": "comment-line", + "char": "#" + }, + { + "type": "Detect2Chars", + "attribute": "Attribute", + "context": "attribute", + "char": "#", + "char1": "[" + }, + { + "type": "DetectChar", + "attribute": "String", + "context": "string-double", + "char": "\"" + }, + { + "type": "DetectChar", + "attribute": "String", + "context": "string-single", + "char": "'" + }, + { + "type": "DetectChar", + "attribute": "String", + "context": "backtick", + "char": "`" + }, + { + "type": "keyword", + "attribute": "Control Structures", + "context": "#stay", + "String": "control structures", + "delimiters": " \t\r\n()[]{}\",';.:=+-*/%^#~<>&|!?" + }, + { + "type": "keyword", + "attribute": "Keyword", + "context": "#stay", + "String": "keywords", + "delimiters": " \t\r\n()[]{}\",';.:=+-*/%^#~<>&|!?" + }, + { + "type": "keyword", + "attribute": "Types", + "context": "#stay", + "String": "types", + "delimiters": " \t\r\n()[]{}\",';.:=+-*/%^#~<>&|!?" + }, + { + "type": "keyword", + "attribute": "Properties", + "context": "#stay", + "String": "properties", + "delimiters": " \t\r\n()[]{}\",';.:=+-*/%^#~<>&|!?" + }, + { + "type": "keyword", + "attribute": "Special method", + "context": "#stay", + "String": "special_methods", + "delimiters": " \t\r\n()[]{}\",';.:=+-*/%^#~<>&|!?" + }, + { + "type": "keyword", + "attribute": "Classes", + "context": "#stay", + "String": "predefined-classes", + "delimiters": " \t\r\n()[]{}\",';.:=+-*/%^#~<>&|!?" + }, + { + "type": "keyword", + "attribute": "Function", + "context": "#stay", + "String": "functions", + "delimiters": " \t\r\n()[]{}\",';.:=+-*/%^#~<>&|!?" + }, + { + "type": "keyword", + "attribute": "Library Constant", + "context": "#stay", + "String": "constants", + "delimiters": " \t\r\n()[]{}\",';.:=+-*/%^#~<>&|!?" + }, + { + "type": "keyword", + "attribute": "Operator", + "context": "#stay", + "String": "operators", + "delimiters": " \t\r\n()[]{}\",';.:=+-*/%^#~<>&|!?" + }, + { + "type": "keyword", + "attribute": "Special Variable", + "context": "#stay", + "String": "special-variables", + "delimiters": " \t\r\n()[]{}\",';.:=+-*/%^#~<>&|!?" + }, + { + "type": "keyword", + "attribute": "Error", + "context": "#stay", + "String": "deprecated", + "delimiters": " \t\r\n()[]{}\",';.:=+-*/%^#~<>&|!?" + }, + { + "type": "Hex", + "attribute": "Hex", + "context": "#stay" + }, + { + "type": "Float", + "attribute": "Float", + "context": "#stay" + }, + { + "type": "Int", + "attribute": "Decimal", + "context": "#stay" + }, + { + "type": "Detect2Chars", + "attribute": "Symbol", + "context": "#stay", + "char": "-", + "char1": ">" + }, + { + "type": "Detect2Chars", + "attribute": "Symbol", + "context": "#stay", + "char": "=", + "char1": ">" + }, + { + "type": "Detect2Chars", + "attribute": "Scope Resolution", + "context": "#stay", + "char": ":", + "char1": ":" + }, + { + "type": "StringDetect", + "attribute": "Operator", + "context": "#stay", + "String": "<=>" + }, + { + "type": "Detect2Chars", + "attribute": "Operator", + "context": "#stay", + "char": "=", + "char1": "=" + }, + { + "type": "Detect2Chars", + "attribute": "Operator", + "context": "#stay", + "char": "!", + "char1": "=" + }, + { + "type": "Detect2Chars", + "attribute": "Operator", + "context": "#stay", + "char": "<", + "char1": "=" + }, + { + "type": "Detect2Chars", + "attribute": "Operator", + "context": "#stay", + "char": ">", + "char1": "=" + }, + { + "type": "Detect2Chars", + "attribute": "Operator", + "context": "#stay", + "char": "&", + "char1": "&" + }, + { + "type": "Detect2Chars", + "attribute": "Operator", + "context": "#stay", + "char": "|", + "char1": "|" + }, + { + "type": "Detect2Chars", + "attribute": "Operator", + "context": "#stay", + "char": "+", + "char1": "+" + }, + { + "type": "Detect2Chars", + "attribute": "Operator", + "context": "#stay", + "char": "-", + "char1": "-" + }, + { + "type": "AnyChar", + "attribute": "Operator", + "context": "#stay", + "String": "=<>&|!+-*/%^~." + }, + { + "type": "AnyChar", + "attribute": "Other", + "context": "#stay", + "String": ";,?:" + }, + { + "type": "AnyChar", + "attribute": "Symbol", + "context": "#stay", + "String": "()[]{}" + }, + { + "type": "DetectIdentifier", + "attribute": "PHP Text", + "context": "#stay" + } + ] + }, + "attribute": { + "attribute": "Attribute", + "line-end-context": "#stay", + "rules": [ + { + "type": "DetectChar", + "attribute": "Attribute", + "context": "#pop", + "char": "]" + }, + { + "type": "DetectSpaces", + "attribute": "Attribute", + "context": "#stay" + }, + { + "type": "DetectIdentifier", + "attribute": "Attribute", + "context": "#stay" + }, + { + "type": "AnyChar", + "attribute": "Attribute", + "context": "#stay", + "String": ",()[]{}.+-*/%=<>!&|^~?:;'\"" + } + ] + }, + "comment-line": { + "attribute": "Comment", + "line-end-context": "#pop", + "rules": [ + { + "type": "DetectSpaces", + "attribute": "Comment", + "context": "#stay" + }, + { + "type": "DetectIdentifier", + "attribute": "Comment", + "context": "#stay" + }, + { + "type": "AnyChar", + "attribute": "Comment", + "context": "#stay", + "String": "+-*/%=<>!&|^~?:;.,()[]{}#@$'\"\\" + } + ] + }, + "comment-block": { + "attribute": "Comment", + "line-end-context": "#stay", + "rules": [ + { + "type": "Detect2Chars", + "attribute": "Comment", + "context": "#pop", + "char": "*", + "char1": "/" + }, + { + "type": "DetectSpaces", + "attribute": "Comment", + "context": "#stay" + }, + { + "type": "DetectIdentifier", + "attribute": "Comment", + "context": "#stay" + }, + { + "type": "AnyChar", + "attribute": "Comment", + "context": "#stay", + "String": "+-*/%=<>!&|^~?:;.,()[]{}#@$'\"\\" + } + ] + }, + "string-double": { + "attribute": "String", + "line-end-context": "#stay", + "rules": [ + { + "type": "DetectChar", + "attribute": "String", + "context": "#pop", + "char": "\"" + }, + { + "type": "Detect2Chars", + "attribute": "Variable", + "context": "dq-varbrace", + "char": "{", + "char1": "$" + }, + { + "type": "Detect2Chars", + "attribute": "Variable", + "context": "dq-varbrace2", + "char": "$", + "char1": "{" + }, + { + "type": "Detect2Chars", + "attribute": "Backslash Code", + "context": "#stay", + "char": "\\", + "char1": "\\" + }, + { + "type": "Detect2Chars", + "attribute": "Backslash Code", + "context": "#stay", + "char": "\\", + "char1": "\"" + }, + { + "type": "Detect2Chars", + "attribute": "Backslash Code", + "context": "#stay", + "char": "\\", + "char1": "n" + }, + { + "type": "Detect2Chars", + "attribute": "Backslash Code", + "context": "#stay", + "char": "\\", + "char1": "t" + }, + { + "type": "Detect2Chars", + "attribute": "Backslash Code", + "context": "#stay", + "char": "\\", + "char1": "r" + }, + { + "type": "Detect2Chars", + "attribute": "Backslash Code", + "context": "#stay", + "char": "\\", + "char1": "$" + }, + { + "type": "Detect2Chars", + "attribute": "Backslash Code", + "context": "#stay", + "char": "\\", + "char1": "0" + } + ] + }, + "dq-varbrace": { + "attribute": "Variable", + "line-end-context": "#stay", + "rules": [ + { + "type": "DetectChar", + "attribute": "Variable", + "context": "#pop", + "char": "}" + }, + { + "type": "DetectIdentifier", + "attribute": "Variable", + "context": "#stay" + } + ] + }, + "dq-varbrace2": { + "attribute": "Variable", + "line-end-context": "#stay", + "rules": [ + { + "type": "DetectChar", + "attribute": "Variable", + "context": "#pop", + "char": "}" + }, + { + "type": "DetectIdentifier", + "attribute": "Variable", + "context": "#stay" + } + ] + }, + "string-single": { + "attribute": "String", + "line-end-context": "#stay", + "rules": [ + { + "type": "DetectChar", + "attribute": "String", + "context": "#pop", + "char": "'" + }, + { + "type": "Detect2Chars", + "attribute": "Backslash Code", + "context": "#stay", + "char": "\\", + "char1": "\\" + }, + { + "type": "Detect2Chars", + "attribute": "Backslash Code", + "context": "#stay", + "char": "\\", + "char1": "'" + } + ] + }, + "backtick": { + "attribute": "String", + "line-end-context": "#stay", + "rules": [ + { + "type": "DetectChar", + "attribute": "String", + "context": "#pop", + "char": "`" + }, + { + "type": "Detect2Chars", + "attribute": "Backslash Code", + "context": "#stay", + "char": "\\", + "char1": "\\" + }, + { + "type": "Detect2Chars", + "attribute": "Backslash Code", + "context": "#stay", + "char": "\\", + "char1": "`" + }, + { + "type": "Detect2Chars", + "attribute": "Backslash Code", + "context": "#stay", + "char": "\\", + "char1": "n" + }, + { + "type": "Detect2Chars", + "attribute": "Backslash Code", + "context": "#stay", + "char": "\\", + "char1": "t" + } + ] + } + } +} \ No newline at end of file diff --git a/highlight/resources/syntax/python.json b/highlight/resources/syntax/python.json new file mode 100644 index 0000000..9651abd --- /dev/null +++ b/highlight/resources/syntax/python.json @@ -0,0 +1,415 @@ +{ + "metadata": { + "copyright": [ + "SPDX-FileCopyrightText: 2026 The Goldfish Scheme Authors", + "SPDX-FileCopyrightText: Python syntax derived from python.xml by Michael Bueker, Paul Giannaros and others (KDE syntax-highlighting)" + ], + "license": "SPDX-License-Identifier: MIT", + "name": "Python" + }, + "name": "Python", + "extensions": [ + "*.py", + "*.pyw", + "*.pyi", + "SConstruct", + "SConscript", + "*.FCMacro", + "*.sage" + ], + "initial-context": "Normal", + "lists": { + "import": [ + "import", "from", "as" + ], + "defs": [ + "class", "def", "del", "global", "lambda", "nonlocal" + ], + "operators": [ + "and", "in", "is", "not", "or" + ], + "flow": [ + "assert", "break", "continue", "elif", "else", "except", "finally", + "for", "if", "pass", "raise", "return", "try", "while", "with", + "async", "await" + ], + "flow_yield": [ + "yield" + ], + "patternmatching": [ + "match", "case" + ], + "builtinfuncs": [ + "__import__", "abs", "aiter", "all", "anext", "any", "apply", "ascii", + "basestring", "bin", "breakpoint", "bool", "buffer", "bytearray", + "bytes", "callable", "chr", "classmethod", "cmp", "coerce", "compile", + "complex", "delattr", "dict", "dir", "divmod", "enumerate", "eval", + "exec", "execfile", "file", "filter", "float", "format", "frozendict", + "frozenset", "getattr", "globals", "hasattr", "hash", "help", "hex", + "id", "input", "int", "intern", "isinstance", "issubclass", "iter", + "len", "list", "locals", "long", "map", "max", "memoryview", "min", + "next", "object", "oct", "open", "ord", "pow", "print", "property", + "range", "raw_input", "reduce", "reload", "repr", "reversed", "round", + "set", "setattr", "slice", "sorted", "staticmethod", "str", "sum", + "super", "tuple", "type", "unichr", "unicode", "vars", "xrange", "zip" + ], + "specialvars": [ + "None", "self", "True", "False", "NotImplemented", "Ellipsis", + "__all__", "__class__", "__debug__", "__file__", "__name__", + "__qualname__", "__slots__" + ], + "overloaders": [ + "__new__", "__init__", "__del__", "__repr__", "__str__", "__lt__", + "__le__", "__eq__", "__ne__", "__gt__", "__ge__", "__cmp__", "__rcmp__", + "__hash__", "__bool__", "__nonzero__", "__unicode__", "__getattr__", + "__setattr__", "__delattr__", "__getattribute__", "__get__", "__set__", + "__delete__", "__call__", "__len__", "__length_hint__", "__getitem__", + "__setitem__", "__delitem__", "__missing__", "__iter__", "__reversed__", + "__contains__", "__getslice__", "__setslice__", "__delslice__", + "__add__", "__sub__", "__mul__", "__matmul__", "__floordiv__", "__mod__", + "__divmod__", "__pow__", "__lshift__", "__rshift__", "__and__", + "__xor__", "__or__", "__div__", "__truediv__", "__radd__", "__rsub__", + "__rmul__", "__rmatmul__", "__rdiv__", "__rtruediv__", "__rfloordiv__", + "__rmod__", "__rdivmod__", "__rpow__", "__rlshift__", "__rrshift__", + "__rand__", "__rxor__", "__ror__", "__iadd__", "__isub__", "__imul__", + "__imatmul__", "__idiv__", "__itruediv__", "__ifloordiv__", "__imod__", + "__ipow__", "__ilshift__", "__irshift__", "__iand__", "__ixor__", + "__ior__", "__neg__", "__pos__", "__abs__", "__invert__", "__complex__", + "__int__", "__long__", "__float__", "__oct__", "__hex__", "__index__", + "__round__", "__trunc__", "__floor__", "__ceil__", "__coerce__", + "__enter__", "__exit__", "__match_args__", "__buffer__", + "__release_buffer__", "__bytes__", "__format__", "__next__", "__dir__", + "__await__", "__aiter__", "__anext__", "__aenter__", "__aexit__", + "__init_subclass__", "__set_name__", "__prepare__", "__instancecheck__", + "__subclasscheck__", "__class_getitem__" + ], + "exceptions": [ + "ArithmeticError", "AssertionError", "AttributeError", "BaseException", + "BlockingIOError", "BrokenPipeError", "BufferError", "BytesWarning", + "ChildProcessError", "ConnectionAbortedError", "ConnectionError", + "ConnectionRefusedError", "ConnectionResetError", "DeprecationWarning", + "EnvironmentError", "EOFError", "EncodingWarning", "Exception", + "FileExistsError", "FileNotFoundError", "FloatingPointError", + "FutureWarning", "GeneratorExit", "ImportError", "ImportWarning", + "IndentationError", "IndexError", "InterruptedError", "IOError", + "IsADirectoryError", "KeyboardInterrupt", "KeyError", "LookupError", + "MemoryError", "ModuleNotFoundError", "NameError", "NotADirectoryError", + "NotImplementedError", "OSError", "OverflowError", + "PendingDeprecationWarning", "PermissionError", "ProcessLookupError", + "RecursionError", "ReferenceError", "ResourceWarning", "RuntimeError", + "RuntimeWarning", "StandardError", "StopAsyncIteration", + "StopIteration", "SyntaxError", "SyntaxWarning", "SystemError", + "SystemExit", "TabError", "TimeoutError", "TypeError", + "UnboundLocalError", "UnicodeDecodeError", "UnicodeEncodeError", + "UnicodeError", "UnicodeTranslateError", "UnicodeWarning", + "UserWarning", "ValueError", "Warning", "WindowsError", + "ZeroDivisionError" + ] + }, + "item-datas": { + "Normal Text": "Normal", + "Flow Control Keyword": "ControlFlow", + "Operator Keyword": "Keyword", + "Builtin Function": "BuiltIn", + "Definition Keyword": "Keyword", + "Import": "Import", + "Exceptions": "BuiltIn", + "Overloaders": "Function", + "Special Variable": "Constant", + "Decorator": "Attribute", + "String": "String", + "Raw String": "VerbatimString", + "F-String": "SpecialString", + "String Char": "SpecialChar", + "String Substitution": "SpecialChar", + "Comment": "Comment", + "Float": "Float", + "Int": "DecVal", + "Hex": "BaseN", + "Operator": "Operator", + "Error": "Error" + }, + "contexts": { + "Normal": { + "attribute": "Normal Text", + "line-end-context": "#stay", + "rules": [ + { "type": "DetectSpaces", "attribute": "Normal Text", "context": "#stay" }, + { "type": "DetectChar", "attribute": "Comment", "context": "hash-comment", "char": "#" }, + { "type": "DetectChar", "attribute": "Decorator", "context": "decorator", "char": "@", "first-non-space": true }, + { "type": "StringDetect", "attribute": "String", "context": "triple-d", "String": "\"\"\"" }, + { "type": "StringDetect", "attribute": "String", "context": "triple-s", "String": "'''" }, + { "type": "StringDetect", "attribute": "Raw String", "context": "raw-triple-d", "String": "r\"\"\"" }, + { "type": "StringDetect", "attribute": "Raw String", "context": "raw-triple-d", "String": "R\"\"\"" }, + { "type": "StringDetect", "attribute": "Raw String", "context": "raw-triple-s", "String": "r'''" }, + { "type": "StringDetect", "attribute": "Raw String", "context": "raw-triple-s", "String": "R'''" }, + { "type": "StringDetect", "attribute": "F-String", "context": "f-triple-d", "String": "f\"\"\"" }, + { "type": "StringDetect", "attribute": "F-String", "context": "f-triple-d", "String": "F\"\"\"" }, + { "type": "StringDetect", "attribute": "F-String", "context": "f-triple-s", "String": "f'''" }, + { "type": "StringDetect", "attribute": "F-String", "context": "f-triple-s", "String": "F'''" }, + { "type": "StringDetect", "attribute": "Raw String", "context": "raw-string-d", "String": "r\"" }, + { "type": "StringDetect", "attribute": "Raw String", "context": "raw-string-d", "String": "R\"" }, + { "type": "StringDetect", "attribute": "Raw String", "context": "raw-string-s", "String": "r'" }, + { "type": "StringDetect", "attribute": "Raw String", "context": "raw-string-s", "String": "R'" }, + { "type": "StringDetect", "attribute": "F-String", "context": "f-string-d", "String": "f\"" }, + { "type": "StringDetect", "attribute": "F-String", "context": "f-string-d", "String": "F\"" }, + { "type": "StringDetect", "attribute": "F-String", "context": "f-string-s", "String": "f'" }, + { "type": "StringDetect", "attribute": "F-String", "context": "f-string-s", "String": "F'" }, + { "type": "StringDetect", "attribute": "String", "context": "bytes-string-d", "String": "b\"" }, + { "type": "StringDetect", "attribute": "String", "context": "bytes-string-d", "String": "B\"" }, + { "type": "StringDetect", "attribute": "String", "context": "bytes-string-s", "String": "b'" }, + { "type": "StringDetect", "attribute": "String", "context": "bytes-string-s", "String": "B'" }, + { "type": "StringDetect", "attribute": "String", "context": "string-d", "String": "u\"" }, + { "type": "StringDetect", "attribute": "String", "context": "string-s", "String": "u'" }, + { "type": "DetectChar", "attribute": "String", "context": "string-d", "char": "\"" }, + { "type": "DetectChar", "attribute": "String", "context": "string-s", "char": "'" }, + { "type": "Hex", "attribute": "Hex", "context": "#stay" }, + { "type": "Float", "attribute": "Float", "context": "#stay" }, + { "type": "Int", "attribute": "Int", "context": "#stay" }, + { "type": "keyword", "attribute": "Special Variable", "context": "#stay", "String": "specialvars" }, + { "type": "keyword", "attribute": "Flow Control Keyword", "context": "#stay", "String": "flow" }, + { "type": "keyword", "attribute": "Operator Keyword", "context": "#stay", "String": "operators" }, + { "type": "keyword", "attribute": "Builtin Function", "context": "#stay", "String": "builtinfuncs" }, + { "type": "keyword", "attribute": "Definition Keyword", "context": "#stay", "String": "defs" }, + { "type": "keyword", "attribute": "Flow Control Keyword", "context": "#stay", "String": "flow_yield" }, + { "type": "keyword", "attribute": "Flow Control Keyword", "context": "#stay", "String": "patternmatching" }, + { "type": "keyword", "attribute": "Import", "context": "#stay", "String": "import" }, + { "type": "keyword", "attribute": "Exceptions", "context": "#stay", "String": "exceptions" }, + { "type": "keyword", "attribute": "Overloaders", "context": "#stay", "String": "overloaders" }, + { "type": "Detect2Chars", "attribute": "Operator", "context": "#stay", "char": "*", "char1": "*" }, + { "type": "Detect2Chars", "attribute": "Operator", "context": "#stay", "char": "/", "char1": "/" }, + { "type": "StringDetect", "attribute": "Operator", "context": "#stay", "String": "//" }, + { "type": "Detect2Chars", "attribute": "Operator", "context": "#stay", "char": "=", "char1": "=" }, + { "type": "Detect2Chars", "attribute": "Operator", "context": "#stay", "char": "!", "char1": "=" }, + { "type": "Detect2Chars", "attribute": "Operator", "context": "#stay", "char": "<", "char1": "=" }, + { "type": "Detect2Chars", "attribute": "Operator", "context": "#stay", "char": ">", "char1": "=" }, + { "type": "Detect2Chars", "attribute": "Operator", "context": "#stay", "char": "<", "char1": "<" }, + { "type": "Detect2Chars", "attribute": "Operator", "context": "#stay", "char": ">", "char1": ">" }, + { "type": "Detect2Chars", "attribute": "Operator", "context": "#stay", "char": "&", "char1": "&" }, + { "type": "Detect2Chars", "attribute": "Operator", "context": "#stay", "char": "|", "char1": "|" }, + { "type": "Detect2Chars", "attribute": "Operator", "context": "#stay", "char": ":", "char1": "=" }, + { "type": "Detect2Chars", "attribute": "Operator", "context": "#stay", "char": "-", "char1": ">" }, + { "type": "Detect2Chars", "attribute": "Operator", "context": "#stay", "char": "@", "char1": "=" }, + { "type": "AnyChar", "attribute": "Operator", "context": "#stay", "String": "+*/%=<>!^&~-@:,.()[]{};" } + ] + }, + "hash-comment": { + "attribute": "Comment", + "line-end-context": "#pop", + "rules": [ + { "type": "DetectSpaces", "attribute": "Comment", "context": "#stay" }, + { "type": "DetectIdentifier", "attribute": "Comment", "context": "#stay" }, + { "type": "AnyChar", "attribute": "Comment", "context": "#stay", "String": "+-*/%=<>!&|^~?:;.,()[]{}#'\"\\@" } + ] + }, + "decorator": { + "attribute": "Decorator", + "line-end-context": "#pop", + "rules": [ + { "type": "DetectSpaces", "attribute": "Decorator", "context": "#stay" }, + { "type": "DetectIdentifier", "attribute": "Decorator", "context": "#stay" }, + { "type": "DetectChar", "attribute": "Decorator", "context": "decorator-arg", "char": "(" }, + { "type": "DetectChar", "attribute": "Decorator", "context": "#stay", "char": "." } + ] + }, + "decorator-arg": { + "attribute": "Decorator", + "line-end-context": "#stay", + "rules": [ + { "type": "DetectChar", "attribute": "Decorator", "context": "#pop#pop", "char": ")" }, + { "type": "DetectSpaces", "attribute": "Decorator", "context": "#stay" }, + { "type": "DetectIdentifier", "attribute": "Decorator", "context": "#stay" }, + { "type": "AnyChar", "attribute": "Decorator", "context": "#stay", "String": ",.+-*/%=<>!&|^~?:;[]{}@'\"" } + ] + }, + "triple-d": { + "attribute": "String", + "line-end-context": "#stay", + "rules": [ + { "type": "StringDetect", "attribute": "String", "context": "#pop", "String": "\"\"\"" }, + { "type": "Detect2Chars", "attribute": "String Char", "context": "#stay", "char": "\\", "char1": "\\" }, + { "type": "Detect2Chars", "attribute": "String Char", "context": "#stay", "char": "\\", "char1": "\"" }, + { "type": "Detect2Chars", "attribute": "String Char", "context": "#stay", "char": "\\", "char1": "'" }, + { "type": "Detect2Chars", "attribute": "String Char", "context": "#stay", "char": "\\", "char1": "n" }, + { "type": "Detect2Chars", "attribute": "String Char", "context": "#stay", "char": "\\", "char1": "t" }, + { "type": "Detect2Chars", "attribute": "String Char", "context": "#stay", "char": "\\", "char1": "r" }, + { "type": "Detect2Chars", "attribute": "String Char", "context": "#stay", "char": "\\", "char1": "0" }, + { "type": "Detect2Chars", "attribute": "String Char", "context": "#stay", "char": "\\", "char1": "x" }, + { "type": "Detect2Chars", "attribute": "String Char", "context": "#stay", "char": "\\", "char1": "u" }, + { "type": "Detect2Chars", "attribute": "String Char", "context": "#stay", "char": "\\", "char1": "U" }, + { "type": "Detect2Chars", "attribute": "String Char", "context": "#stay", "char": "\\", "char1": "N" } + ] + }, + "triple-s": { + "attribute": "String", + "line-end-context": "#stay", + "rules": [ + { "type": "StringDetect", "attribute": "String", "context": "#pop", "String": "'''" }, + { "type": "Detect2Chars", "attribute": "String Char", "context": "#stay", "char": "\\", "char1": "\\" }, + { "type": "Detect2Chars", "attribute": "String Char", "context": "#stay", "char": "\\", "char1": "\"" }, + { "type": "Detect2Chars", "attribute": "String Char", "context": "#stay", "char": "\\", "char1": "'" }, + { "type": "Detect2Chars", "attribute": "String Char", "context": "#stay", "char": "\\", "char1": "n" }, + { "type": "Detect2Chars", "attribute": "String Char", "context": "#stay", "char": "\\", "char1": "t" }, + { "type": "Detect2Chars", "attribute": "String Char", "context": "#stay", "char": "\\", "char1": "r" }, + { "type": "Detect2Chars", "attribute": "String Char", "context": "#stay", "char": "\\", "char1": "0" }, + { "type": "Detect2Chars", "attribute": "String Char", "context": "#stay", "char": "\\", "char1": "x" }, + { "type": "Detect2Chars", "attribute": "String Char", "context": "#stay", "char": "\\", "char1": "u" }, + { "type": "Detect2Chars", "attribute": "String Char", "context": "#stay", "char": "\\", "char1": "U" }, + { "type": "Detect2Chars", "attribute": "String Char", "context": "#stay", "char": "\\", "char1": "N" } + ] + }, + "raw-triple-d": { + "attribute": "Raw String", + "line-end-context": "#stay", + "rules": [ + { "type": "StringDetect", "attribute": "Raw String", "context": "#pop", "String": "\"\"\"" } + ] + }, + "raw-triple-s": { + "attribute": "Raw String", + "line-end-context": "#stay", + "rules": [ + { "type": "StringDetect", "attribute": "Raw String", "context": "#pop", "String": "'''" } + ] + }, + "string-d": { + "attribute": "String", + "line-end-context": "#pop", + "rules": [ + { "type": "DetectChar", "attribute": "String", "context": "#pop", "char": "\"" }, + { "type": "Detect2Chars", "attribute": "String Char", "context": "#stay", "char": "\\", "char1": "\\" }, + { "type": "Detect2Chars", "attribute": "String Char", "context": "#stay", "char": "\\", "char1": "\"" }, + { "type": "Detect2Chars", "attribute": "String Char", "context": "#stay", "char": "\\", "char1": "'" }, + { "type": "Detect2Chars", "attribute": "String Char", "context": "#stay", "char": "\\", "char1": "n" }, + { "type": "Detect2Chars", "attribute": "String Char", "context": "#stay", "char": "\\", "char1": "t" }, + { "type": "Detect2Chars", "attribute": "String Char", "context": "#stay", "char": "\\", "char1": "r" }, + { "type": "Detect2Chars", "attribute": "String Char", "context": "#stay", "char": "\\", "char1": "0" }, + { "type": "Detect2Chars", "attribute": "String Char", "context": "#stay", "char": "\\", "char1": "x" }, + { "type": "Detect2Chars", "attribute": "String Char", "context": "#stay", "char": "\\", "char1": "u" }, + { "type": "Detect2Chars", "attribute": "String Char", "context": "#stay", "char": "\\", "char1": "U" }, + { "type": "Detect2Chars", "attribute": "String Char", "context": "#stay", "char": "\\", "char1": "N" } + ] + }, + "string-s": { + "attribute": "String", + "line-end-context": "#pop", + "rules": [ + { "type": "DetectChar", "attribute": "String", "context": "#pop", "char": "'" }, + { "type": "Detect2Chars", "attribute": "String Char", "context": "#stay", "char": "\\", "char1": "\\" }, + { "type": "Detect2Chars", "attribute": "String Char", "context": "#stay", "char": "\\", "char1": "\"" }, + { "type": "Detect2Chars", "attribute": "String Char", "context": "#stay", "char": "\\", "char1": "'" }, + { "type": "Detect2Chars", "attribute": "String Char", "context": "#stay", "char": "\\", "char1": "n" }, + { "type": "Detect2Chars", "attribute": "String Char", "context": "#stay", "char": "\\", "char1": "t" }, + { "type": "Detect2Chars", "attribute": "String Char", "context": "#stay", "char": "\\", "char1": "r" }, + { "type": "Detect2Chars", "attribute": "String Char", "context": "#stay", "char": "\\", "char1": "0" }, + { "type": "Detect2Chars", "attribute": "String Char", "context": "#stay", "char": "\\", "char1": "x" }, + { "type": "Detect2Chars", "attribute": "String Char", "context": "#stay", "char": "\\", "char1": "u" }, + { "type": "Detect2Chars", "attribute": "String Char", "context": "#stay", "char": "\\", "char1": "U" }, + { "type": "Detect2Chars", "attribute": "String Char", "context": "#stay", "char": "\\", "char1": "N" } + ] + }, + "raw-string-d": { + "attribute": "Raw String", + "line-end-context": "#pop", + "rules": [ + { "type": "DetectChar", "attribute": "Raw String", "context": "#pop", "char": "\"" } + ] + }, + "raw-string-s": { + "attribute": "Raw String", + "line-end-context": "#pop", + "rules": [ + { "type": "DetectChar", "attribute": "Raw String", "context": "#pop", "char": "'" } + ] + }, + "f-string-d": { + "attribute": "F-String", + "line-end-context": "#pop", + "rules": [ + { "type": "DetectChar", "attribute": "F-String", "context": "#pop", "char": "\"" }, + { "type": "Detect2Chars", "attribute": "F-String", "context": "f-expr", "char": "{", "char1": "{" }, + { "type": "DetectChar", "attribute": "F-String", "context": "f-expr", "char": "{" }, + { "type": "Detect2Chars", "attribute": "String Char", "context": "#stay", "char": "\\", "char1": "\\" }, + { "type": "Detect2Chars", "attribute": "String Char", "context": "#stay", "char": "\\", "char1": "\"" }, + { "type": "Detect2Chars", "attribute": "String Char", "context": "#stay", "char": "\\", "char1": "n" }, + { "type": "Detect2Chars", "attribute": "String Char", "context": "#stay", "char": "\\", "char1": "t" }, + { "type": "Detect2Chars", "attribute": "String Char", "context": "#stay", "char": "\\", "char1": "r" } + ] + }, + "f-string-s": { + "attribute": "F-String", + "line-end-context": "#pop", + "rules": [ + { "type": "DetectChar", "attribute": "F-String", "context": "#pop", "char": "'" }, + { "type": "Detect2Chars", "attribute": "F-String", "context": "f-expr", "char": "{", "char1": "{" }, + { "type": "DetectChar", "attribute": "F-String", "context": "f-expr", "char": "{" }, + { "type": "Detect2Chars", "attribute": "String Char", "context": "#stay", "char": "\\", "char1": "\\" }, + { "type": "Detect2Chars", "attribute": "String Char", "context": "#stay", "char": "\\", "char1": "'" }, + { "type": "Detect2Chars", "attribute": "String Char", "context": "#stay", "char": "\\", "char1": "n" }, + { "type": "Detect2Chars", "attribute": "String Char", "context": "#stay", "char": "\\", "char1": "t" }, + { "type": "Detect2Chars", "attribute": "String Char", "context": "#stay", "char": "\\", "char1": "r" } + ] + }, + "f-triple-d": { + "attribute": "F-String", + "line-end-context": "#stay", + "rules": [ + { "type": "StringDetect", "attribute": "F-String", "context": "#pop", "String": "\"\"\"" }, + { "type": "Detect2Chars", "attribute": "F-String", "context": "f-expr", "char": "{", "char1": "{" }, + { "type": "DetectChar", "attribute": "F-String", "context": "f-expr", "char": "{" }, + { "type": "Detect2Chars", "attribute": "String Char", "context": "#stay", "char": "\\", "char1": "\\" }, + { "type": "Detect2Chars", "attribute": "String Char", "context": "#stay", "char": "\\", "char1": "n" }, + { "type": "Detect2Chars", "attribute": "String Char", "context": "#stay", "char": "\\", "char1": "t" } + ] + }, + "f-triple-s": { + "attribute": "F-String", + "line-end-context": "#stay", + "rules": [ + { "type": "StringDetect", "attribute": "F-String", "context": "#pop", "String": "'''" }, + { "type": "Detect2Chars", "attribute": "F-String", "context": "f-expr", "char": "{", "char1": "{" }, + { "type": "DetectChar", "attribute": "F-String", "context": "f-expr", "char": "{" }, + { "type": "Detect2Chars", "attribute": "String Char", "context": "#stay", "char": "\\", "char1": "\\" }, + { "type": "Detect2Chars", "attribute": "String Char", "context": "#stay", "char": "\\", "char1": "n" }, + { "type": "Detect2Chars", "attribute": "String Char", "context": "#stay", "char": "\\", "char1": "t" } + ] + }, + "f-expr": { + "attribute": "F-String", + "line-end-context": "#stay", + "rules": [ + { "type": "DetectChar", "attribute": "F-String", "context": "#pop", "char": "}" }, + { "type": "DetectIdentifier", "attribute": "F-String", "context": "#stay" }, + { "type": "AnyChar", "attribute": "F-String", "context": "#stay", "String": "0123456789.[]!:.,+-*/%<>=&|^~" } + ] + }, + "bytes-string-d": { + "attribute": "String", + "line-end-context": "#pop", + "rules": [ + { "type": "DetectChar", "attribute": "String", "context": "#pop", "char": "\"" }, + { "type": "Detect2Chars", "attribute": "String Char", "context": "#stay", "char": "\\", "char1": "\\" }, + { "type": "Detect2Chars", "attribute": "String Char", "context": "#stay", "char": "\\", "char1": "\"" }, + { "type": "Detect2Chars", "attribute": "String Char", "context": "#stay", "char": "\\", "char1": "n" }, + { "type": "Detect2Chars", "attribute": "String Char", "context": "#stay", "char": "\\", "char1": "t" }, + { "type": "Detect2Chars", "attribute": "String Char", "context": "#stay", "char": "\\", "char1": "r" }, + { "type": "Detect2Chars", "attribute": "String Char", "context": "#stay", "char": "\\", "char1": "x" }, + { "type": "Detect2Chars", "attribute": "String Char", "context": "#stay", "char": "\\", "char1": "0" } + ] + }, + "bytes-string-s": { + "attribute": "String", + "line-end-context": "#pop", + "rules": [ + { "type": "DetectChar", "attribute": "String", "context": "#pop", "char": "'" }, + { "type": "Detect2Chars", "attribute": "String Char", "context": "#stay", "char": "\\", "char1": "\\" }, + { "type": "Detect2Chars", "attribute": "String Char", "context": "#stay", "char": "\\", "char1": "'" }, + { "type": "Detect2Chars", "attribute": "String Char", "context": "#stay", "char": "\\", "char1": "n" }, + { "type": "Detect2Chars", "attribute": "String Char", "context": "#stay", "char": "\\", "char1": "t" }, + { "type": "Detect2Chars", "attribute": "String Char", "context": "#stay", "char": "\\", "char1": "r" }, + { "type": "Detect2Chars", "attribute": "String Char", "context": "#stay", "char": "\\", "char1": "x" }, + { "type": "Detect2Chars", "attribute": "String Char", "context": "#stay", "char": "\\", "char1": "0" } + ] + } + } +} diff --git a/highlight/resources/syntax/ruby.json b/highlight/resources/syntax/ruby.json new file mode 100644 index 0000000..69567fe --- /dev/null +++ b/highlight/resources/syntax/ruby.json @@ -0,0 +1,240 @@ +{ + "metadata": { + "copyright": [ + "SPDX-FileCopyrightText: 2026 The Goldfish Scheme Authors", + "SPDX-FileCopyrightText: Ruby syntax derived from ruby.xml by Sebastian Pipping and the KDE syntax-highlighting authors" + ], + "license": "SPDX-License-Identifier: LGPL-2.0-or-later", + "name": "Ruby" + }, + "name": "Ruby", + "extensions": [ + "*.rb", + "*.gemspec", + "*.rake", + "Gemfile", + "Rakefile", + "*.ru", + "*.jruby", + "*.rbx" + ], + "initial-context": "Ruby", + "lists": { + "keyword": [ + "class", "def", "end", "ensure", "when", "begin", "do", "case", + "module", "if", "unless", "else", "elsif", "rescue", "for", + "until", "while", "break", "defined?", "in", "next", "redo", + "retry", "return", "yield", "and", "not", "or", "then", "BEGIN", + "END" + ], + "definitions": [ + "alias", "module", "class", "def", "undef" + ], + "access-control": [ + "private_class_method", "private", "protected", + "public_class_method", "public" + ], + "attribute-definitions": [ + "attr_reader", "attr_writer", "attr_accessor" + ], + "pseudo-variables": [ + "self", "super", "nil", "false", "true", "caller", "__FILE__", + "__LINE__" + ], + "default-globals": [ + "$stdout", "$stderr", "$stdin" + ], + "kernel-methods": [ + "abort", "at_exit", "autoload", "autoload?", "binding", + "block_given?", "callcc", "caller", "catch", "chomp", "chomp!", + "chop", "chop!", "eval", "exec", "exit", "exit!", "fail", "fork", + "format", "getc", "gets", "global_variables", "gsub", "gsub!", + "iterator?", "lambda", "load", "local_variables", "loop", + "method_missing", "open", "p", "print", "printf", "proc", "putc", + "puts", "raise", "rand", "readline", "readlines", "require", + "require_relative", "scan", "select", "set_trace_func", "sleep", + "split", "sprintf", "srand", "sub", "sub!", "syscall", "system", + "test", "throw", "trace_var", "trap", "untrace_var", "warn" + ], + "mixin-methods": [ + "extend", "include", "prepend", "refine", "using" + ] + }, + "item-datas": { + "Normal Text": "Normal", + "Keyword": "ControlFlow", + "Attribute Definition": "Others", + "Access Control": "Attribute", + "Definition": "Keyword", + "Pseudo variable": "DecVal", + "Dec": "DecVal", + "Float": "Float", + "Octal": "BaseN", + "Hex": "BaseN", + "Bin": "BaseN", + "Symbol": "Warning", + "String": "String", + "String Char": "SpecialChar", + "Raw String": "VerbatimString", + "Char": "Char", + "Command": "Information", + "Regular Expression": "SpecialString", + "Substitution": "SpecialChar", + "Default globals": "Variable", + "Global Variable": "Variable", + "Global Constant": "Constant", + "Constant": "DataType", + "Kernel methods": "Function", + "Module mixin methods": "Function", + "Member": "Attribute", + "Instance Variable": "Others", + "Class Variable": "Others", + "Comment": "Comment", + "Blockcomment": "Comment", + "Delimiter": "Keyword", + "Operator": "Operator", + "Error": "Error" + }, + "contexts": { + "shebang": { + "attribute": "Keyword", + "line-end-context": "#pop", + "rules": [ + { "type": "DetectIdentifier", "attribute": "Keyword", "context": "#stay" }, + { "type": "AnyChar", "attribute": "Keyword", "context": "#stay", "String": "/._-:" } + ] + }, + "Ruby": { + "attribute": "Normal Text", + "line-end-context": "#stay", + "rules": [ + { "type": "StringDetect", "attribute": "Keyword", "context": "shebang", "String": "#!/", "column": 0 }, + { "type": "DetectSpaces", "attribute": "Normal Text", "context": "#stay" }, + { "type": "DetectChar", "attribute": "Comment", "context": "comment", "char": "#" }, + { "type": "WordDetect", "attribute": "Blockcomment", "context": "embedded-doc", "String": "=begin", "column": 0 }, + { "type": "DetectChar", "attribute": "Operator", "context": "#stay", "char": "{" }, + { "type": "DetectChar", "attribute": "Operator", "context": "#stay", "char": "}" }, + { "type": "DetectChar", "attribute": "Delimiter", "context": "#stay", "char": "[" }, + { "type": "DetectChar", "attribute": "Delimiter", "context": "#stay", "char": "]" }, + { "type": "AnyChar", "attribute": "Normal Text", "context": "#stay", "String": ";()" }, + { "type": "DetectChar", "attribute": "Member", "context": "member", "char": "." }, + { "type": "StringDetect", "attribute": "Operator", "context": "member", "String": "::" }, + { "type": "Detect2Chars", "attribute": "Raw String", "context": "squote", "char": "'", "char1": "'" }, + { "type": "DetectChar", "attribute": "Raw String", "context": "squote", "char": "'" }, + { "type": "DetectChar", "attribute": "String", "context": "dquote", "char": "\"" }, + { "type": "DetectChar", "attribute": "Command", "context": "command", "char": "`" }, + { "type": "DetectChar", "attribute": "Symbol", "context": "symbol", "char": ":" }, + { "type": "Hex", "attribute": "Hex", "context": "#stay" }, + { "type": "Float", "attribute": "Float", "context": "#stay" }, + { "type": "Int", "attribute": "Dec", "context": "#stay" }, + { "type": "keyword", "attribute": "Keyword", "context": "#stay", "String": "keyword", "delimiters": " \t\r\n()[]{}\",'`;\\.:=+-*/%^#~<>&|!?:" }, + { "type": "keyword", "attribute": "Definition", "context": "#stay", "String": "definitions", "delimiters": " \t\r\n()[]{}\",'`;\\.:=+-*/%^#~<>&|!?:" }, + { "type": "keyword", "attribute": "Access Control", "context": "#stay", "String": "access-control", "delimiters": " \t\r\n()[]{}\",'`;\\.:=+-*/%^#~<>&|!?:" }, + { "type": "keyword", "attribute": "Attribute Definition", "context": "#stay", "String": "attribute-definitions", "delimiters": " \t\r\n()[]{}\",'`;\\.:=+-*/%^#~<>&|!?:" }, + { "type": "keyword", "attribute": "Pseudo variable", "context": "#stay", "String": "pseudo-variables", "delimiters": " \t\r\n()[]{}\",'`;\\.:=+-*/%^#~<>&|!?:" }, + { "type": "keyword", "attribute": "Kernel methods", "context": "#stay", "String": "kernel-methods", "delimiters": " \t\r\n()[]{}\",'`;\\.:=+-*/%^#~<>&|!?:" }, + { "type": "keyword", "attribute": "Module mixin methods", "context": "#stay", "String": "mixin-methods", "delimiters": " \t\r\n()[]{}\",'`;\\.:=+-*/%^#~<>&|!?:" }, + { "type": "keyword", "attribute": "Default globals", "context": "#stay", "String": "default-globals", "delimiters": " \t\r\n()[]{}\",'`;\\.:=+-*/%^#~<>&|!?:" }, + { "type": "Detect2Chars", "attribute": "Operator", "context": "#stay", "char": "<", "char1": "<" }, + { "type": "Detect2Chars", "attribute": "Operator", "context": "#stay", "char": ">", "char1": ">" }, + { "type": "Detect2Chars", "attribute": "Operator", "context": "#stay", "char": "<", "char1": "=" }, + { "type": "Detect2Chars", "attribute": "Operator", "context": "#stay", "char": ">", "char1": "=" }, + { "type": "Detect2Chars", "attribute": "Operator", "context": "#stay", "char": "=", "char1": "=" }, + { "type": "Detect2Chars", "attribute": "Operator", "context": "#stay", "char": "!", "char1": "=" }, + { "type": "Detect2Chars", "attribute": "Operator", "context": "#stay", "char": "*", "char1": "*" }, + { "type": "Detect2Chars", "attribute": "Operator", "context": "#stay", "char": "&", "char1": "&" }, + { "type": "Detect2Chars", "attribute": "Operator", "context": "#stay", "char": "|", "char1": "|" }, + { "type": "AnyChar", "attribute": "Operator", "context": "#stay", "String": "+-*/%=<>!&|^~?:" }, + { "type": "DetectIdentifier", "attribute": "Normal Text", "context": "#stay" } + ] + }, + "comment": { + "attribute": "Comment", + "line-end-context": "#pop", + "rules": [ + { "type": "DetectSpaces", "attribute": "Comment", "context": "#stay" }, + { "type": "DetectIdentifier", "attribute": "Comment", "context": "#stay" }, + { "type": "AnyChar", "attribute": "Comment", "context": "#stay", "String": "+-*/%=<>!&|^~?:;.,()[]{}#@'\"\\`" } + ] + }, + "embedded-doc": { + "attribute": "Blockcomment", + "line-end-context": "#stay", + "rules": [ + { "type": "WordDetect", "attribute": "Comment", "context": "#pop", "String": "=end", "column": 0 }, + { "type": "DetectSpaces", "attribute": "Blockcomment", "context": "#stay" }, + { "type": "DetectIdentifier", "attribute": "Blockcomment", "context": "#stay" } + ] + }, + "dquote": { + "attribute": "String", + "line-end-context": "#stay", + "rules": [ + { "type": "DetectChar", "attribute": "String", "context": "#pop", "char": "\"" }, + { "type": "Detect2Chars", "attribute": "Substitution", "context": "subst", "char": "#", "char1": "{" }, + { "type": "Detect2Chars", "attribute": "String Char", "context": "#stay", "char": "\\", "char1": "\\" }, + { "type": "Detect2Chars", "attribute": "String Char", "context": "#stay", "char": "\\", "char1": "\"" }, + { "type": "Detect2Chars", "attribute": "String Char", "context": "#stay", "char": "\\", "char1": "n" }, + { "type": "Detect2Chars", "attribute": "String Char", "context": "#stay", "char": "\\", "char1": "t" }, + { "type": "Detect2Chars", "attribute": "String Char", "context": "#stay", "char": "\\", "char1": "r" }, + { "type": "Detect2Chars", "attribute": "String Char", "context": "#stay", "char": "\\", "char1": "0" }, + { "type": "Detect2Chars", "attribute": "String Char", "context": "#stay", "char": "\\", "char1": "u" } + ] + }, + "squote": { + "attribute": "Raw String", + "line-end-context": "#stay", + "rules": [ + { "type": "DetectChar", "attribute": "Raw String", "context": "#pop", "char": "'" }, + { "type": "Detect2Chars", "attribute": "Raw String", "context": "#stay", "char": "\\", "char1": "\\" }, + { "type": "Detect2Chars", "attribute": "Raw String", "context": "#stay", "char": "\\", "char1": "'" } + ] + }, + "command": { + "attribute": "Command", + "line-end-context": "#stay", + "rules": [ + { "type": "DetectChar", "attribute": "Command", "context": "#pop", "char": "`" }, + { "type": "Detect2Chars", "attribute": "String Char", "context": "#stay", "char": "\\", "char1": "\\" }, + { "type": "Detect2Chars", "attribute": "String Char", "context": "#stay", "char": "\\", "char1": "`" } + ] + }, + "symbol": { + "attribute": "Symbol", + "line-end-context": "#pop", + "rules": [ + { "type": "DetectIdentifier", "attribute": "Symbol", "context": "#pop" }, + { "type": "DetectChar", "attribute": "Symbol", "context": "symbol-quoted", "char": "\"" }, + { "type": "DetectChar", "attribute": "Symbol", "context": "symbol-quoted", "char": "'" }, + { "type": "AnyChar", "attribute": "Symbol", "context": "#pop", "String": "+-*/%=<>!&|^~?:" } + ] + }, + "symbol-quoted": { + "attribute": "Symbol", + "line-end-context": "#pop", + "rules": [ + { "type": "DetectChar", "attribute": "Symbol", "context": "#pop", "char": "\"" }, + { "type": "DetectChar", "attribute": "Symbol", "context": "#pop", "char": "'" }, + { "type": "DetectIdentifier", "attribute": "Symbol", "context": "#stay" } + ] + }, + "subst": { + "attribute": "Normal Text", + "line-end-context": "#stay", + "rules": [ + { "type": "DetectChar", "attribute": "Substitution", "context": "#pop", "char": "}" }, + { "type": "DetectIdentifier", "attribute": "Normal Text", "context": "#stay" }, + { "type": "AnyChar", "attribute": "Operator", "context": "#stay", "String": "+-*/%=<>!&|^~?:;.,()[]" } + ] + }, + "member": { + "attribute": "Normal Text", + "line-end-context": "#pop", + "rules": [ + { "type": "DetectChar", "attribute": "Member", "context": "#stay", "char": "." }, + { "type": "DetectIdentifier", "attribute": "Member", "context": "#pop" }, + { "type": "AnyChar", "attribute": "Member", "context": "#pop", "String": "!?=" } + ] + } + } +} diff --git a/highlight/resources/syntax/rust.json b/highlight/resources/syntax/rust.json new file mode 100644 index 0000000..fe275c4 --- /dev/null +++ b/highlight/resources/syntax/rust.json @@ -0,0 +1,267 @@ +{ + "metadata": { + "copyright": [ + "SPDX-FileCopyrightText: 2026 The Goldfish Scheme Authors", + "SPDX-FileCopyrightText: Rust syntax derived from rust.xml by The Rust Project Developers (KDE syntax-highlighting)" + ], + "license": "SPDX-License-Identifier: MIT", + "name": "Rust" + }, + "name": "Rust", + "extensions": [ + "*.rs" + ], + "initial-context": "Normal", + "lists": { + "fn": [ + "fn" + ], + "type": [ + "type" + ], + "keywords": [ + "abstract", "alignof", "as", "async", "await", "become", "box", + "const", "crate", "default", "do", "dyn", "enum", "extern", "final", + "impl", "in", "let", "macro", "mod", "move", "mut", "offsetof", + "override", "priv", "proc", "pub", "pure", "ref", "sizeof", "static", + "struct", "super", "trait", "try", "typeof", "union", "unsafe", + "unsized", "use", "virtual", "where", "yield" + ], + "controlflow": [ + "break", "continue", "else", "for", "if", "loop", "match", "return", + "while" + ], + "traits": [ + "Add", "AddAssign", "Alloc", "Any", "AsMut", "AsRef", "Binary", + "BitAnd", "BitAndAssign", "BitOr", "BitOrAssign", "BitXor", + "BitXorAssign", "Borrow", "BorrowMut", "BuildHasher", "Clone", + "CoerceUnsized", "Copy", "Debug", "Default", "Deref", "DerefMut", + "DispatchFromDyn", "Display", "Div", "DivAssign", + "DoubleEndedIterator", "Drop", "Eq", "ExactSizeIterator", "Extend", + "FixedSizeArray", "Fn", "FnBox", "FnMut", "FnOnce", "From", + "FromIterator", "FromStr", "FusedIterator", "Future", "Generator", + "GlobalAlloc", "Hash", "Hasher", "Index", "IndexMut", "Into", + "IntoIterator", "Iterator", "LowerExp", "LowerHex", "Mul", "MulAssign", + "Neg", "Not", "Octal", "Ord", "PartialEq", "PartialOrd", "Pointer", + "Product", "RangeBounds", "Rem", "RemAssign", "Send", "Shl", + "ShlAssign", "Shr", "ShrAssign", "Sized", "SliceIndex", "Step", "Sub", + "SubAssign", "Sum", "Sync", "TrustedLen", "Try", "TryFrom", "TryInto", + "Unpin", "Unsize", "UpperExp", "UpperHex", "Write", "AsSlice", + "BufRead", "CharExt", "Decodable", "Encodable", "Error", + "FromPrimitive", "IteratorExt", "MultiSpan", "MutPtrExt", "Pattern", + "PtrExt", "Rand", "Read", "RefUnwindSafe", "Seek", "SliceConcatExt", + "SliceExt", "Str", "StrExt", "TDynBenchFn", "Termination", "ToOwned", + "ToSocketAddrs", "ToString", "UnwindSafe" + ], + "types": [ + "bool", "isize", "usize", "i8", "i16", "i32", "i64", "i128", "u8", + "u16", "u32", "u64", "u128", "f32", "f64", "char", "str", "Option", + "Result", "Self", "Box", "Vec", "String", "Path", "PathBuf" + ], + "ctypes": [ + "c_float", "c_double", "c_void", "FILE", "fpos_t", "DIR", "dirent", + "c_char", "c_schar", "c_uchar", "c_short", "c_ushort", "c_int", + "c_uint", "c_long", "c_ulong", "size_t", "ptrdiff_t", "clock_t", + "time_t", "c_longlong", "c_ulonglong", "intptr_t", "uintptr_t", + "off_t", "dev_t", "ino_t", "pid_t", "mode_t", "ssize_t" + ], + "self": [ + "self" + ], + "constants": [ + "true", "false", "Some", "None", "Ok", "Err", "Success", "Failure", + "Cons", "Nil", "MAX", "REPLACEMENT_CHARACTER", "UNICODE_VERSION", + "DIGITS", "EPSILON", "INFINITY", "MANTISSA_DIGITS", "MAX_10_EXP", + "MAX_EXP", "MIN", "MIN_10_EXP", "MIN_EXP", "MIN_POSITIVE", "NAN", + "NEG_INFINITY", "RADIX", "MAIN_SEPARATOR", "ONCE_INIT", "UNIX_EPOCH" + ], + "cconstants": [ + "EXIT_FAILURE", "EXIT_SUCCESS", "RAND_MAX", "EOF", "SEEK_SET", + "SEEK_CUR", "SEEK_END", "_IOFBF", "_IONBF", "_IOLBF", "BUFSIZ", + "FOPEN_MAX", "FILENAME_MAX", "L_tmpnam", "TMP_MAX", "O_RDONLY", + "O_WRONLY", "O_RDWR", "O_APPEND", "O_CREAT", "O_EXCL", "O_TRUNC", + "S_IFIFO", "S_IFCHR", "S_IFBLK", "S_IFDIR", "S_IFREG", "S_IFMT", + "S_IEXEC", "S_IWRITE", "S_IREAD", "S_IRWXU", "S_IXUSR", "S_IWUSR", + "S_IRUSR", "F_OK", "R_OK", "W_OK", "X_OK", "STDIN_FILENO", + "STDOUT_FILENO", "STDERR_FILENO" + ] + }, + "item-datas": { + "Normal Text": "Normal", + "Keyword": "Keyword", + "Control Flow": "ControlFlow", + "Self": "Keyword", + "Type": "DataType", + "Trait": "BuiltIn", + "CType": "DataType", + "Constant": "Constant", + "CConstant": "Constant", + "Definition": "Normal", + "Comment": "Comment", + "Scope": "Preprocessor", + "Number": "DecVal", + "String": "String", + "CharEscape": "SpecialChar", + "Character": "Char", + "Macro": "Preprocessor", + "Symbol": "Operator", + "Attribute": "Attribute", + "Lifetime": "Others", + "Raw Identifier": "Annotation", + "Error": "Error" + }, + "contexts": { + "Normal": { + "attribute": "Normal Text", + "line-end-context": "#stay", + "rules": [ + { "type": "DetectSpaces", "attribute": "Normal Text", "context": "#stay" }, + { "type": "keyword", "attribute": "Keyword", "context": "Function", "String": "fn" }, + { "type": "keyword", "attribute": "Keyword", "context": "Type", "String": "type" }, + { "type": "keyword", "attribute": "Self", "context": "#stay", "String": "self" }, + { "type": "keyword", "attribute": "Keyword", "context": "#stay", "String": "keywords" }, + { "type": "keyword", "attribute": "Control Flow", "context": "#stay", "String": "controlflow" }, + { "type": "keyword", "attribute": "Type", "context": "#stay", "String": "types" }, + { "type": "keyword", "attribute": "CType", "context": "#stay", "String": "ctypes" }, + { "type": "keyword", "attribute": "Constant", "context": "#stay", "String": "constants" }, + { "type": "keyword", "attribute": "CConstant", "context": "#stay", "String": "cconstants" }, + { "type": "keyword", "attribute": "Trait", "context": "#stay", "String": "traits" }, + { "type": "Detect2Chars", "attribute": "Comment", "context": "comment-line", "char": "/", "char1": "/" }, + { "type": "Detect2Chars", "attribute": "Comment", "context": "comment-block", "char": "/", "char1": "*" }, + { "type": "Detect2Chars", "attribute": "Attribute", "context": "attribute", "char": "#", "char1": "[" }, + { "type": "StringDetect", "attribute": "Attribute", "context": "attribute", "String": "#![" }, + { "type": "DetectChar", "attribute": "String", "context": "raw-string-r", "char": "r" }, + { "type": "StringDetect", "attribute": "String", "context": "byte-string", "String": "b\"" }, + { "type": "DetectChar", "attribute": "String", "context": "string", "char": "\"" }, + { "type": "StringDetect", "attribute": "Character", "context": "character", "String": "b'" }, + { "type": "DetectChar", "attribute": "Character", "context": "character", "char": "'" }, + { "type": "Hex", "attribute": "Number", "context": "#stay" }, + { "type": "Float", "attribute": "Number", "context": "#stay" }, + { "type": "Int", "attribute": "Number", "context": "#stay" }, + { "type": "Detect2Chars", "attribute": "Symbol", "context": "#stay", "char": "=", "char1": ">" }, + { "type": "Detect2Chars", "attribute": "Symbol", "context": "#stay", "char": "-", "char1": ">" }, + { "type": "Detect2Chars", "attribute": "Symbol", "context": "#stay", "char": "<", "char1": "=" }, + { "type": "Detect2Chars", "attribute": "Symbol", "context": "#stay", "char": ">", "char1": "=" }, + { "type": "Detect2Chars", "attribute": "Symbol", "context": "#stay", "char": "=", "char1": "=" }, + { "type": "Detect2Chars", "attribute": "Symbol", "context": "#stay", "char": "!", "char1": "=" }, + { "type": "Detect2Chars", "attribute": "Symbol", "context": "#stay", "char": "&", "char1": "&" }, + { "type": "Detect2Chars", "attribute": "Symbol", "context": "#stay", "char": "|", "char1": "|" }, + { "type": "Detect2Chars", "attribute": "Symbol", "context": "#stay", "char": "<", "char1": "<" }, + { "type": "Detect2Chars", "attribute": "Symbol", "context": "#stay", "char": ">", "char1": ">" }, + { "type": "Detect2Chars", "attribute": "Symbol", "context": "#stay", "char": ":", "char1": ":" }, + { "type": "AnyChar", "attribute": "Symbol", "context": "#stay", "String": ";,.@~:$?<>&-+|*!/^%" }, + { "type": "DetectIdentifier", "attribute": "Normal Text", "context": "#stay" } + ] + }, + "Function": { + "attribute": "Definition", + "line-end-context": "#stay", + "rules": [ + { "type": "DetectSpaces", "attribute": "Definition", "context": "#stay" }, + { "type": "DetectIdentifier", "attribute": "Definition", "context": "#stay" }, + { "type": "AnyChar", "attribute": "Normal Text", "context": "#pop", "String": "(<" }, + { "type": "Detect2Chars", "attribute": "Comment", "context": "comment-line", "char": "/", "char1": "/" }, + { "type": "Detect2Chars", "attribute": "Comment", "context": "comment-block", "char": "/", "char1": "*" } + ] + }, + "Type": { + "attribute": "Definition", + "line-end-context": "#stay", + "rules": [ + { "type": "DetectSpaces", "attribute": "Definition", "context": "#stay" }, + { "type": "DetectIdentifier", "attribute": "Definition", "context": "#stay" }, + { "type": "AnyChar", "attribute": "Normal Text", "context": "#pop", "String": "=<;" }, + { "type": "Detect2Chars", "attribute": "Comment", "context": "comment-line", "char": "/", "char1": "/" }, + { "type": "Detect2Chars", "attribute": "Comment", "context": "comment-block", "char": "/", "char1": "*" } + ] + }, + "attribute": { + "attribute": "Attribute", + "line-end-context": "#stay", + "rules": [ + { "type": "DetectChar", "attribute": "Attribute", "context": "#pop", "char": "]" }, + { "type": "DetectSpaces", "attribute": "Attribute", "context": "#stay" }, + { "type": "DetectIdentifier", "attribute": "Attribute", "context": "#stay" }, + { "type": "AnyChar", "attribute": "Attribute", "context": "#stay", "String": "0123456789.+-*/%=<>!&|^~?:;.,()[]{}#@'\"_" } + ] + }, + "string": { + "attribute": "String", + "line-end-context": "#stay", + "rules": [ + { "type": "DetectChar", "attribute": "String", "context": "#pop", "char": "\"" }, + { "type": "Detect2Chars", "attribute": "CharEscape", "context": "#stay", "char": "\\", "char1": "\\" }, + { "type": "Detect2Chars", "attribute": "CharEscape", "context": "#stay", "char": "\\", "char1": "\"" }, + { "type": "Detect2Chars", "attribute": "CharEscape", "context": "#stay", "char": "\\", "char1": "n" }, + { "type": "Detect2Chars", "attribute": "CharEscape", "context": "#stay", "char": "\\", "char1": "t" }, + { "type": "Detect2Chars", "attribute": "CharEscape", "context": "#stay", "char": "\\", "char1": "r" }, + { "type": "Detect2Chars", "attribute": "CharEscape", "context": "#stay", "char": "\\", "char1": "0" }, + { "type": "Detect2Chars", "attribute": "CharEscape", "context": "#stay", "char": "\\", "char1": "'" }, + { "type": "Detect2Chars", "attribute": "CharEscape", "context": "#stay", "char": "\\", "char1": "x" }, + { "type": "Detect2Chars", "attribute": "CharEscape", "context": "#stay", "char": "\\", "char1": "u" } + ] + }, + "byte-string": { + "attribute": "String", + "line-end-context": "#stay", + "rules": [ + { "type": "DetectChar", "attribute": "String", "context": "#pop", "char": "\"" }, + { "type": "Detect2Chars", "attribute": "CharEscape", "context": "#stay", "char": "\\", "char1": "\\" }, + { "type": "Detect2Chars", "attribute": "CharEscape", "context": "#stay", "char": "\\", "char1": "\"" }, + { "type": "Detect2Chars", "attribute": "CharEscape", "context": "#stay", "char": "\\", "char1": "n" }, + { "type": "Detect2Chars", "attribute": "CharEscape", "context": "#stay", "char": "\\", "char1": "t" }, + { "type": "Detect2Chars", "attribute": "CharEscape", "context": "#stay", "char": "\\", "char1": "r" }, + { "type": "Detect2Chars", "attribute": "CharEscape", "context": "#stay", "char": "\\", "char1": "0" }, + { "type": "Detect2Chars", "attribute": "CharEscape", "context": "#stay", "char": "\\", "char1": "x" } + ] + }, + "raw-string-r": { + "attribute": "String", + "line-end-context": "#pop", + "rules": [ + { "type": "DetectChar", "attribute": "String", "context": "raw-string", "char": "\"" } + ] + }, + "raw-string": { + "attribute": "String", + "line-end-context": "#stay", + "rules": [ + { "type": "DetectChar", "attribute": "String", "context": "#pop", "char": "\"" } + ] + }, + "character": { + "attribute": "Character", + "line-end-context": "#pop", + "rules": [ + { "type": "DetectChar", "attribute": "Character", "context": "#pop", "char": "'" }, + { "type": "Detect2Chars", "attribute": "CharEscape", "context": "#stay", "char": "\\", "char1": "\\" }, + { "type": "Detect2Chars", "attribute": "CharEscape", "context": "#stay", "char": "\\", "char1": "'" }, + { "type": "Detect2Chars", "attribute": "CharEscape", "context": "#stay", "char": "\\", "char1": "n" }, + { "type": "Detect2Chars", "attribute": "CharEscape", "context": "#stay", "char": "\\", "char1": "t" }, + { "type": "Detect2Chars", "attribute": "CharEscape", "context": "#stay", "char": "\\", "char1": "r" }, + { "type": "Detect2Chars", "attribute": "CharEscape", "context": "#stay", "char": "\\", "char1": "0" }, + { "type": "Detect2Chars", "attribute": "CharEscape", "context": "#stay", "char": "\\", "char1": "x" }, + { "type": "Detect2Chars", "attribute": "CharEscape", "context": "#stay", "char": "\\", "char1": "u" } + ] + }, + "comment-line": { + "attribute": "Comment", + "line-end-context": "#pop", + "rules": [ + { "type": "DetectSpaces", "attribute": "Comment", "context": "#stay" }, + { "type": "DetectIdentifier", "attribute": "Comment", "context": "#stay" }, + { "type": "AnyChar", "attribute": "Comment", "context": "#stay", "String": "+-*/%=<>!&|^~?:;.,()[]{}#@'\"\\`" } + ] + }, + "comment-block": { + "attribute": "Comment", + "line-end-context": "#stay", + "rules": [ + { "type": "Detect2Chars", "attribute": "Comment", "context": "#pop", "char": "*", "char1": "/" }, + { "type": "DetectSpaces", "attribute": "Comment", "context": "#stay" }, + { "type": "DetectIdentifier", "attribute": "Comment", "context": "#stay" }, + { "type": "AnyChar", "attribute": "Comment", "context": "#stay", "String": "+-*/%=<>!&|^~?:;.,()[]{}#@'\"\\`" } + ] + } + } +} diff --git a/highlight/resources/syntax/scala.json b/highlight/resources/syntax/scala.json new file mode 100644 index 0000000..b972bc7 --- /dev/null +++ b/highlight/resources/syntax/scala.json @@ -0,0 +1,193 @@ +{ + "metadata": { + "copyright": [ + "SPDX-FileCopyrightText: 2026 The Goldfish Scheme Authors", + "SPDX-FileCopyrightText: Scala syntax derived from scala.xml by Stephane Micheloud (KDE syntax-highlighting)" + ], + "license": "SPDX-License-Identifier: MIT", + "name": "Scala" + }, + "name": "Scala", + "extensions": [ + "*.scala", + "*.sbt" + ], + "initial-context": "Normal", + "lists": { + "keywords": [ + "abstract", "class", "def", "extends", "false", "final", "forSome", + "implicit", "import", "lazy", "new", "null", "object", "override", + "package", "private", "protected", "requires", "sealed", "super", + "this", "trait", "true", "type", "val", "var", "with", "given", + "using", "enum", "then", "export" + ], + "controlflow": [ + "case", "catch", "do", "else", "finally", "for", "if", "match", + "return", "throw", "try", "while", "yield" + ], + "types": [ + "boolean", "byte", "char", "double", "float", "int", "long", "short", + "unit" + ], + "predef": [ + "Any", "AnyRef", "AnyVal", "Nothing", "Null", "Unit", "Boolean", + "Int", "Long", "Short", "Byte", "Float", "Double", "Char", "String", + "List", "Seq", "Option", "Some", "None", "Either", "Left", "Right", + "Map", "Set", "Array", "Vector", "Tuple", "Function", "PartialFunction", + "Iterable", "Iterator", "Future", "Try", "Success", "Failure" + ] + }, + "item-datas": { + "Normal": "Normal", + "Keyword": "Keyword", + "ControlFlow": "ControlFlow", + "DataType": "DataType", + "Predef": "BuiltIn", + "String": "String", + "RawString": "VerbatimString", + "Interpolation": "SpecialString", + "Char": "Char", + "SpecialChar": "SpecialChar", + "Comment": "Comment", + "DecVal": "DecVal", + "BaseN": "BaseN", + "Float": "Float", + "Operator": "Operator", + "Import": "Import", + "Error": "Error" + }, + "contexts": { + "Normal": { + "attribute": "Normal", + "line-end-context": "#stay", + "rules": [ + { "type": "DetectSpaces", "attribute": "Normal", "context": "#stay" }, + { "type": "Detect2Chars", "attribute": "Comment", "context": "comment-line", "char": "/", "char1": "/" }, + { "type": "Detect2Chars", "attribute": "Comment", "context": "comment-block", "char": "/", "char1": "*" }, + { "type": "StringDetect", "attribute": "RawString", "context": "raw-string", "String": "\"\"\"" }, + { "type": "Detect2Chars", "attribute": "Interpolation", "context": "interp-s", "char": "s", "char1": "\"" }, + { "type": "Detect2Chars", "attribute": "Interpolation", "context": "interp-f", "char": "f", "char1": "\"" }, + { "type": "DetectChar", "attribute": "String", "context": "string", "char": "\"" }, + { "type": "DetectChar", "attribute": "Char", "context": "char", "char": "'" }, + { "type": "Hex", "attribute": "BaseN", "context": "#stay" }, + { "type": "Float", "attribute": "Float", "context": "#stay" }, + { "type": "Int", "attribute": "DecVal", "context": "#stay" }, + { "type": "keyword", "attribute": "ControlFlow", "context": "#stay", "String": "controlflow" }, + { "type": "keyword", "attribute": "Keyword", "context": "#stay", "String": "keywords" }, + { "type": "keyword", "attribute": "DataType", "context": "#stay", "String": "types" }, + { "type": "keyword", "attribute": "Predef", "context": "#stay", "String": "predef" }, + { "type": "Detect2Chars", "attribute": "Operator", "context": "#stay", "char": "-", "char1": ">" }, + { "type": "Detect2Chars", "attribute": "Operator", "context": "#stay", "char": "=", "char1": ">" }, + { "type": "Detect2Chars", "attribute": "Operator", "context": "#stay", "char": "<", "char1": "-" }, + { "type": "Detect2Chars", "attribute": "Operator", "context": "#stay", "char": "=", "char1": "=" }, + { "type": "Detect2Chars", "attribute": "Operator", "context": "#stay", "char": "!", "char1": "=" }, + { "type": "Detect2Chars", "attribute": "Operator", "context": "#stay", "char": "<", "char1": "=" }, + { "type": "Detect2Chars", "attribute": "Operator", "context": "#stay", "char": ">", "char1": "=" }, + { "type": "Detect2Chars", "attribute": "Operator", "context": "#stay", "char": "&", "char1": "&" }, + { "type": "Detect2Chars", "attribute": "Operator", "context": "#stay", "char": "|", "char1": "|" }, + { "type": "Detect2Chars", "attribute": "Operator", "context": "#stay", "char": "+", "char1": "+" }, + { "type": "Detect2Chars", "attribute": "Operator", "context": "#stay", "char": "-", "char1": "-" }, + { "type": "DetectChar", "attribute": "Operator", "context": "#stay", "char": "`" }, + { "type": "AnyChar", "attribute": "Operator", "context": "#stay", "String": "+-*/%=<>!&|^~?:." }, + { "type": "AnyChar", "attribute": "Normal", "context": "#stay", "String": "()[]{};," }, + { "type": "DetectIdentifier", "attribute": "Normal", "context": "#stay" } + ] + }, + "comment-line": { + "attribute": "Comment", + "line-end-context": "#pop", + "rules": [ + { "type": "DetectSpaces", "attribute": "Comment", "context": "#stay" }, + { "type": "DetectIdentifier", "attribute": "Comment", "context": "#stay" }, + { "type": "AnyChar", "attribute": "Comment", "context": "#stay", "String": "+-*/%=<>!&|^~?:;.,()[]{}#@'\"\\" } + ] + }, + "comment-block": { + "attribute": "Comment", + "line-end-context": "#stay", + "rules": [ + { "type": "Detect2Chars", "attribute": "Comment", "context": "#pop", "char": "*", "char1": "/" }, + { "type": "DetectSpaces", "attribute": "Comment", "context": "#stay" }, + { "type": "DetectIdentifier", "attribute": "Comment", "context": "#stay" }, + { "type": "AnyChar", "attribute": "Comment", "context": "#stay", "String": "+-*/%=<>!&|^~?:;.,()[]{}#@'\"\\" } + ] + }, + "string": { + "attribute": "String", + "line-end-context": "#pop", + "rules": [ + { "type": "DetectChar", "attribute": "String", "context": "#pop", "char": "\"" }, + { "type": "Detect2Chars", "attribute": "SpecialChar", "context": "#stay", "char": "\\", "char1": "\\" }, + { "type": "Detect2Chars", "attribute": "SpecialChar", "context": "#stay", "char": "\\", "char1": "\"" }, + { "type": "Detect2Chars", "attribute": "SpecialChar", "context": "#stay", "char": "\\", "char1": "n" }, + { "type": "Detect2Chars", "attribute": "SpecialChar", "context": "#stay", "char": "\\", "char1": "t" }, + { "type": "Detect2Chars", "attribute": "SpecialChar", "context": "#stay", "char": "\\", "char1": "r" }, + { "type": "Detect2Chars", "attribute": "SpecialChar", "context": "#stay", "char": "\\", "char1": "0" } + ] + }, + "raw-string": { + "attribute": "RawString", + "line-end-context": "#stay", + "rules": [ + { "type": "StringDetect", "attribute": "RawString", "context": "#pop", "String": "\"\"\"" } + ] + }, + "interp-s": { + "attribute": "Interpolation", + "line-end-context": "#pop", + "rules": [ + { "type": "DetectChar", "attribute": "Interpolation", "context": "#pop", "char": "\"" }, + { "type": "Detect2Chars", "attribute": "Interpolation", "context": "interp-expr", "char": "$", "char1": "{" }, + { "type": "Detect2Chars", "attribute": "SpecialChar", "context": "#stay", "char": "$", "char1": "$" }, + { "type": "DetectChar", "attribute": "Interpolation", "context": "interp-var", "char": "$" }, + { "type": "Detect2Chars", "attribute": "SpecialChar", "context": "#stay", "char": "\\", "char1": "n" }, + { "type": "Detect2Chars", "attribute": "SpecialChar", "context": "#stay", "char": "\\", "char1": "t" }, + { "type": "Detect2Chars", "attribute": "SpecialChar", "context": "#stay", "char": "\\", "char1": "\\" }, + { "type": "Detect2Chars", "attribute": "SpecialChar", "context": "#stay", "char": "\\", "char1": "\"" } + ] + }, + "interp-f": { + "attribute": "Interpolation", + "line-end-context": "#pop", + "rules": [ + { "type": "DetectChar", "attribute": "Interpolation", "context": "#pop", "char": "\"" }, + { "type": "Detect2Chars", "attribute": "Interpolation", "context": "interp-expr", "char": "$", "char1": "{" }, + { "type": "Detect2Chars", "attribute": "SpecialChar", "context": "#stay", "char": "$", "char1": "$" }, + { "type": "DetectChar", "attribute": "Interpolation", "context": "interp-var", "char": "$" }, + { "type": "Detect2Chars", "attribute": "SpecialChar", "context": "#stay", "char": "\\", "char1": "n" }, + { "type": "Detect2Chars", "attribute": "SpecialChar", "context": "#stay", "char": "\\", "char1": "t" }, + { "type": "Detect2Chars", "attribute": "SpecialChar", "context": "#stay", "char": "\\", "char1": "\\" }, + { "type": "Detect2Chars", "attribute": "SpecialChar", "context": "#stay", "char": "\\", "char1": "\"" } + ] + }, + "interp-expr": { + "attribute": "Interpolation", + "line-end-context": "#stay", + "rules": [ + { "type": "DetectChar", "attribute": "Interpolation", "context": "#pop", "char": "}" }, + { "type": "DetectIdentifier", "attribute": "Interpolation", "context": "#stay" } + ] + }, + "interp-var": { + "attribute": "Interpolation", + "line-end-context": "#pop", + "fallthrough-context": "#pop", + "rules": [ + { "type": "DetectIdentifier", "attribute": "Interpolation", "context": "#pop" } + ] + }, + "char": { + "attribute": "Char", + "line-end-context": "#pop", + "rules": [ + { "type": "DetectChar", "attribute": "Char", "context": "#pop", "char": "'" }, + { "type": "Detect2Chars", "attribute": "SpecialChar", "context": "#stay", "char": "\\", "char1": "\\" }, + { "type": "Detect2Chars", "attribute": "SpecialChar", "context": "#stay", "char": "\\", "char1": "'" }, + { "type": "Detect2Chars", "attribute": "SpecialChar", "context": "#stay", "char": "\\", "char1": "n" }, + { "type": "Detect2Chars", "attribute": "SpecialChar", "context": "#stay", "char": "\\", "char1": "t" }, + { "type": "Detect2Chars", "attribute": "SpecialChar", "context": "#stay", "char": "\\", "char1": "r" }, + { "type": "Detect2Chars", "attribute": "SpecialChar", "context": "#stay", "char": "\\", "char1": "0" } + ] + } + } +} diff --git a/highlight/resources/syntax/scheme.json b/highlight/resources/syntax/scheme.json new file mode 100644 index 0000000..b99d9c1 --- /dev/null +++ b/highlight/resources/syntax/scheme.json @@ -0,0 +1,129 @@ +{ + "metadata": { + "copyright": [ + "SPDX-FileCopyrightText: 2026 The Goldfish Scheme Authors", + "SPDX-FileCopyrightText: Scheme syntax derived from scheme.xml by Dominik Haumann (KDE syntax-highlighting)" + ], + "license": "SPDX-License-Identifier: MIT", + "name": "Scheme" + }, + "name": "Scheme", + "extensions": [ + "*.scm", + "*.ss", + "*.scheme" + ], + "initial-context": "Level0", + "lists": { + "keywords": [ + "lambda", "if", "else", "cond", "case", "and", "or", + "let", "let*", "letrec", "letrec*", "let-values", "let*-values", + "begin", "do", "delay", "delay-force", "make-promise", "force", + "parameterize", "guard", "quasiquote", "unquote", "unquote-splicing", + "quote", "set!", "include", "include-ci", "syntax-rules", + "syntax-error", "import", "export", "define-library", "when", "unless" + ], + "defines": [ + "define", "define*", "define-values", "define-record-type", + "define*-record-type", "define-syntax", "define-macro" + ], + "operators": [ + "+", "-", "*", "/", "=", "<", ">", "<=", ">=", "=>", "...", ".", "?", "!" + ], + "char-names": [ + "space", "newline", "tab", "alarm", "backspace", "delete", "escape", "null" + ] + }, + "item-datas": { + "Normal": "Normal", + "Keyword": "Keyword", + "Extension": "Extension", + "Operator": "Operator", + "Comment": "Comment", + "String": "String", + "Char": "Char", + "SpecialChar": "SpecialChar", + "DecVal": "DecVal" + }, + "contexts": { + "Level0": { + "attribute": "Normal", + "line-end-context": "#stay", + "rules": [ + { "type": "DetectSpaces", "attribute": "Normal", "context": "#stay" }, + { "type": "DetectChar", "attribute": "Comment", "context": "comment", "char": ";" }, + { "type": "Detect2Chars", "attribute": "Comment", "context": "multiline-comment", "char": "#", "char1": "|" }, + { "type": "DetectChar", "attribute": "String", "context": "string", "char": "\"" }, + { "type": "Detect2Chars", "attribute": "DecVal", "context": "#stay", "char": "#", "char1": "t" }, + { "type": "Detect2Chars", "attribute": "DecVal", "context": "#stay", "char": "#", "char1": "f" }, + { "type": "Detect2Chars", "attribute": "Char", "context": "char-lit", "char": "#", "char1": "\\" }, + { "type": "keyword", "attribute": "Extension", "context": "#stay", "String": "defines" }, + { "type": "keyword", "attribute": "Keyword", "context": "#stay", "String": "keywords" }, + { "type": "keyword", "attribute": "Operator", "context": "#stay", "String": "operators" }, + { "type": "Int", "attribute": "DecVal", "context": "#stay" }, + { "type": "DetectChar", "attribute": "Normal", "context": "Level1", "char": "(" }, + { "type": "DetectChar", "attribute": "Normal", "context": "#pop", "char": ")" }, + { "type": "AnyChar", "attribute": "Operator", "context": "#stay", "String": "{}[]" }, + { "type": "DetectIdentifier", "attribute": "Normal", "context": "#stay" } + ] + }, + "Level1": { + "attribute": "Normal", + "line-end-context": "#stay", + "rules": [ + { "type": "DetectSpaces", "attribute": "Normal", "context": "#stay" }, + { "type": "DetectChar", "attribute": "Comment", "context": "comment", "char": ";" }, + { "type": "Detect2Chars", "attribute": "Comment", "context": "multiline-comment", "char": "#", "char1": "|" }, + { "type": "DetectChar", "attribute": "String", "context": "string", "char": "\"" }, + { "type": "Detect2Chars", "attribute": "DecVal", "context": "#stay", "char": "#", "char1": "t" }, + { "type": "Detect2Chars", "attribute": "DecVal", "context": "#stay", "char": "#", "char1": "f" }, + { "type": "Detect2Chars", "attribute": "Char", "context": "char-lit", "char": "#", "char1": "\\" }, + { "type": "keyword", "attribute": "Extension", "context": "#stay", "String": "defines" }, + { "type": "keyword", "attribute": "Keyword", "context": "#stay", "String": "keywords" }, + { "type": "keyword", "attribute": "Operator", "context": "#stay", "String": "operators" }, + { "type": "Int", "attribute": "DecVal", "context": "#stay" }, + { "type": "DetectChar", "attribute": "Normal", "context": "Level1", "char": "(" }, + { "type": "DetectChar", "attribute": "Normal", "context": "#pop", "char": ")" }, + { "type": "AnyChar", "attribute": "Operator", "context": "#stay", "String": "{}[]" }, + { "type": "DetectIdentifier", "attribute": "Normal", "context": "#stay" } + ] + }, + "comment": { + "attribute": "Comment", + "line-end-context": "#pop", + "rules": [ + { "type": "DetectSpaces", "attribute": "Comment", "context": "#stay" }, + { "type": "DetectIdentifier", "attribute": "Comment", "context": "#stay" } + ] + }, + "multiline-comment": { + "attribute": "Comment", + "line-end-context": "#stay", + "rules": [ + { "type": "DetectSpaces", "attribute": "Comment", "context": "#stay" }, + { "type": "Detect2Chars", "attribute": "Comment", "context": "#pop", "char": "|", "char1": "#" }, + { "type": "Detect2Chars", "attribute": "Comment", "context": "multiline-comment", "char": "#", "char1": "|" }, + { "type": "DetectIdentifier", "attribute": "Comment", "context": "#stay" } + ] + }, + "string": { + "attribute": "String", + "line-end-context": "#stay", + "rules": [ + { "type": "DetectChar", "attribute": "String", "context": "#pop", "char": "\"" }, + { "type": "Detect2Chars", "attribute": "SpecialChar", "context": "#stay", "char": "\\", "char1": "\\" }, + { "type": "Detect2Chars", "attribute": "SpecialChar", "context": "#stay", "char": "\\", "char1": "\"" }, + { "type": "Detect2Chars", "attribute": "SpecialChar", "context": "#stay", "char": "\\", "char1": "n" }, + { "type": "Detect2Chars", "attribute": "SpecialChar", "context": "#stay", "char": "\\", "char1": "t" } + ] + }, + "char-lit": { + "attribute": "Char", + "line-end-context": "#pop", + "rules": [ + { "type": "keyword", "attribute": "Char", "context": "#pop", "String": "char-names" }, + { "type": "DetectIdentifier", "attribute": "Char", "context": "#pop" } + ] + } + } +} diff --git a/highlight/resources/syntax/sql.json b/highlight/resources/syntax/sql.json new file mode 100644 index 0000000..55200b0 --- /dev/null +++ b/highlight/resources/syntax/sql.json @@ -0,0 +1,1167 @@ +{ + "metadata": { + "copyright": [ + "SPDX-FileCopyrightText: 2026 The Goldfish Scheme Authors", + "SPDX-FileCopyrightText: SQL syntax derived from sql.xml by Lazar Trnski and the KDE syntax-highlighting authors" + ], + "license": "SPDX-License-Identifier: LGPL-2.0-or-later", + "name": "SQL" + }, + "name": "SQL", + "extensions": [ + "*.sql", + "*.pls", + "*.ddl" + ], + "initial-context": "Normal", + "lists": { + "controlflow": [ + "BEGIN", + "CASE", + "ELSE", + "ELSIF", + "END", + "FOR", + "IF", + "LOOP", + "RETURN", + "THEN", + "WHEN", + "WHILE" + ], + "operators": [ + "AND", + "BETWEEN", + "IN", + "IS", + "LIKE", + "NOT", + "OR" + ], + "keywords": [ + "ACCESS", + "ACCOUNT", + "ADD", + "ADMIN", + "ADMINISTER", + "ADVISE", + "AFTER", + "AGENT", + "ALL", + "ALLOCATE", + "ALL_ROWS", + "ALTER", + "ANALYZE", + "ANCILLARY", + "ANY", + "ARCHIVE", + "ARCHIVELOG", + "AS", + "ASC", + "ASSERTION", + "ASSOCIATE", + "AT", + "ATTRIBUTE", + "ATTRIBUTES", + "AUDIT", + "AUTHENTICATED", + "AUTHID", + "AUTHORIZATION", + "AUTOALLOCATE", + "AUTOEXTEND", + "AUTOMATIC", + "BACKUP", + "BECOME", + "BEFORE", + "BEHALF", + "BINDING", + "BITMAP", + "BLOCK", + "BLOCK_RANGE", + "BODY", + "BOTH", + "BOUND", + "BREAK", + "BROADCAST", + "BTITLE", + "BUFFER_POOL", + "BUILD", + "BULK", + "BY", + "CACHE", + "CACHE_INSTANCES", + "CALL", + "CANCEL", + "CASCADE", + "CATEGORY", + "CHAINED", + "CHANGE", + "CHECK", + "CHECKPOINT", + "CHILD", + "CHOOSE", + "CHUNK", + "CLASS", + "CLEAR", + "CLONE", + "CLOSE", + "CLOSE_CACHED_OPEN_CURSORS", + "CLUSTER", + "COLUMN", + "COLUMNS", + "COLUMN_VALUE", + "COMMENT", + "COMMIT", + "COMMITTED", + "COMPATIBILITY", + "COMPILE", + "COMPLETE", + "COMPOSITE_LIMIT", + "COMPRESS", + "COMPUTE", + "CONNECT", + "CONNECT_TIME", + "CONSIDER", + "CONSISTENT", + "CONSTANT", + "CONSTRAINT", + "CONSTRAINTS", + "CONTAINER", + "CONTAINS", + "CONTENTS", + "CONTEXT", + "CONTINUE", + "CONTROLFILE", + "COPY", + "COST", + "CPU_PER_CALL", + "CPU_PER_SESSION", + "CREATE", + "CREATE_STORED_OUTLINES", + "CROSS", + "CUBE", + "CURRENT", + "CURSOR", + "CYCLE", + "DANGLING", + "DATA", + "DATABASE", + "DATAFILE", + "DATAFILES", + "DBA", + "DDL", + "DEALLOCATE", + "DEBUG", + "DECLARE", + "DEFAULT", + "DEFERRABLE", + "DEFERRED", + "DEFINER", + "DEGREE", + "DELETE", + "DEMAND", + "DESC", + "DETERMINES", + "DICTIONARY", + "DIMENSION", + "DIRECTORY", + "DISABLE", + "DISASSOCIATE", + "DISCONNECT", + "DISKGROUP", + "DISMOUNT", + "DISTINCT", + "DISTRIBUTED", + "DOMAIN", + "DROP", + "DYNAMIC", + "EACH", + "EMPTY", + "ENABLE", + "ENFORCE", + "ENTRY", + "ESCAPE", + "ESTIMATE", + "EVENTS", + "EXCEPT", + "EXCEPTION", + "EXCEPTIONS", + "EXCHANGE", + "EXCLUDING", + "EXCLUSIVE", + "EXEC", + "EXECUTE", + "EXISTS", + "EXPIRE", + "EXPLAIN", + "EXPLOSION", + "EXTENDS", + "EXTENT", + "EXTENTS", + "EXTERNALLY", + "FAILED_LOGIN_ATTEMPTS", + "FALSE", + "FAST", + "FILE", + "FILTER", + "FIRST_ROWS", + "FLAGGER", + "FLASHBACK", + "FLUSH", + "FOLLOWING", + "FORCE", + "FOREIGN", + "FREELIST", + "FREELISTS", + "FRESH", + "FROM", + "FULL", + "FUNCTION", + "FUNCTIONS", + "GENERATED", + "GLOBAL", + "GLOBALLY", + "GLOBAL_NAME", + "GRANT", + "GROUP", + "GROUPS", + "HASH", + "HASHKEYS", + "HAVING", + "HEADER", + "HEAP", + "HIERARCHY", + "HOUR", + "ID", + "IDENTIFIED", + "IDENTIFIER", + "IDGENERATORS", + "IDLE_TIME", + "IMMEDIATE", + "INCLUDING", + "INCREMENT", + "INCREMENTAL", + "INDEX", + "INDEXED", + "INDEXES", + "INDEXTYPE", + "INDEXTYPES", + "INDICATOR", + "INITIAL", + "INITIALIZED", + "INITIALLY", + "INITRANS", + "INNER", + "INSERT", + "INSTANCE", + "INSTANCES", + "INSTEAD", + "INTERMEDIATE", + "INTERSECT", + "INTO", + "INVALIDATE", + "ISOLATION", + "ISOLATION_LEVEL", + "JAVA", + "JOIN", + "KEEP", + "KEY", + "KILL", + "LABEL", + "LAYER", + "LEADING", + "LEFT", + "LESS", + "LEVEL", + "LIBRARY", + "LIMIT", + "LINK", + "LIST", + "LOCAL", + "LOCATOR", + "LOCK", + "LOCKED", + "LOGFILE", + "LOGGING", + "LOGICAL_READS_PER_CALL", + "LOGICAL_READS_PER_SESSION", + "LOGOFF", + "LOGON", + "MANAGE", + "MANAGED", + "MANAGEMENT", + "MASTER", + "MATERIALIZED", + "MAXARCHLOGS", + "MAXDATAFILES", + "MAXEXTENTS", + "MAXINSTANCES", + "MAXLOGFILES", + "MAXLOGHISTORY", + "MAXLOGMEMBERS", + "MAXSIZE", + "MAXTRANS", + "MAXVALUE", + "MEMBER", + "MERGE", + "METHOD", + "MINEXTENTS", + "MINIMIZE", + "MINIMUM", + "MINUS", + "MINUTE", + "MINVALUE", + "MODE", + "MODIFY", + "MONITORING", + "MOUNT", + "MOVE", + "MOVEMENT", + "MTS_DISPATCHERS", + "MULTISET", + "NAMED", + "NATURAL", + "NEEDED", + "NESTED", + "NESTED_TABLE_ID", + "NETWORK", + "NEVER", + "NEW", + "NEXT", + "NLS_CALENDAR", + "NLS_CHARACTERSET", + "NLS_COMP", + "NLS_CURRENCY", + "NLS_DATE_FORMAT", + "NLS_DATE_LANGUAGE", + "NLS_ISO_CURRENCY", + "NLS_LANG", + "NLS_LANGUAGE", + "NLS_NUMERIC_CHARACTERS", + "NLS_SORT", + "NLS_SPECIAL_CHARS", + "NLS_TERRITORY", + "NO", + "NOARCHIVELOG", + "NOAUDIT", + "NOCACHE", + "NOCOMPRESS", + "NOCYCLE", + "NOFORCE", + "NOLOGGING", + "NOMAXVALUE", + "NOMINIMIZE", + "NOMINVALUE", + "NOMONITORING", + "NONE", + "NOORDER", + "NOOVERRIDE", + "NOPARALLEL", + "NORELY", + "NORESETLOGS", + "NOREVERSE", + "NORMAL", + "NOSEGMENT", + "NOSORT", + "NOTHING", + "NOVALIDATE", + "NOWAIT", + "NULL", + "NULLS", + "OBJNO", + "OBJNO_REUSE", + "OF", + "OFF", + "OFFLINE", + "OID", + "OIDINDEX", + "OLD", + "ON", + "ONLINE", + "ONLY", + "OPCODE", + "OPEN", + "OPERATOR", + "OPTIMAL", + "OPTIMIZER_GOAL", + "OPTION", + "ORDER", + "ORGANIZATION", + "OUT", + "OUTER", + "OUTLINE", + "OVER", + "OVERFLOW", + "OVERLAPS", + "OWN", + "PACKAGE", + "PACKAGES", + "PARALLEL", + "PARAMETERS", + "PARENT", + "PARTITION", + "PARTITIONS", + "PARTITION_HASH", + "PARTITION_RANGE", + "PASSWORD", + "PASSWORD_GRACE_TIME", + "PASSWORD_LIFE_TIME", + "PASSWORD_LOCK_TIME", + "PASSWORD_REUSE_MAX", + "PASSWORD_REUSE_TIME", + "PASSWORD_VERIFY_FUNCTION", + "PCTFREE", + "PCTINCREASE", + "PCTTHRESHOLD", + "PCTUSED", + "PCTVERSION", + "PERCENT", + "PERMANENT", + "PLAN", + "PLSQL_DEBUG", + "POST_TRANSACTION", + "PREBUILT", + "PRECEDING", + "PREPARE", + "PRESENT", + "PRESERVE", + "PREVIOUS", + "PRIMARY", + "PRIOR", + "PRIVATE", + "PRIVATE_SGA", + "PRIVILEGE", + "PRIVILEGES", + "PROCEDURE", + "PROFILE", + "PUBLIC", + "PURGE", + "QUERY", + "QUEUE", + "QUOTA", + "RANDOM", + "RANGE", + "RBA", + "READ", + "READS", + "REBUILD", + "RECORDS_PER_BLOCK", + "RECOVER", + "RECOVERABLE", + "RECOVERY", + "RECYCLE", + "REDUCED", + "REFERENCES", + "REFERENCING", + "REFRESH", + "RELY", + "RENAME", + "REPLACE", + "RESET", + "RESETLOGS", + "RESIZE", + "RESOLVE", + "RESOLVER", + "RESOURCE", + "RESTRICT", + "RESTRICTED", + "RESUME", + "RETURN", + "RETURNING", + "REUSE", + "REVERSE", + "REVOKE", + "REWRITE", + "RIGHT", + "ROLE", + "ROLES", + "ROLLBACK", + "ROLLUP", + "ROW", + "ROWNUM", + "ROWS", + "RULE", + "SAMPLE", + "SAVEPOINT", + "SCAN", + "SCAN_INSTANCES", + "SCHEMA", + "SCN", + "SCOPE", + "SD_ALL", + "SD_INHIBIT", + "SD_SHOW", + "SEGMENT", + "SEG_BLOCK", + "SEG_FILE", + "SELECT", + "SELECTIVITY", + "SEQUENCE", + "SERIALIZABLE", + "SERVERERROR", + "SESSION", + "SESSIONS_PER_USER", + "SESSION_CACHED_CURSORS", + "SET", + "SHARE", + "SHARED", + "SHARED_POOL", + "SHRINK", + "SHUTDOWN", + "SINGLETASK", + "SIZE", + "SKIP", + "SKIP_UNUSABLE_INDEXES", + "SNAPSHOT", + "SOME", + "SORT", + "SOURCE", + "SPECIFICATION", + "SPLIT", + "SQL_TRACE", + "STANDBY", + "START", + "STARTUP", + "STATEMENT_ID", + "STATIC", + "STATISTICS", + "STOP", + "STORAGE", + "STORE", + "STRUCTURE", + "SUBMULTISET", + "SUBPARTITION", + "SUBPARTITIONS", + "SUCCESSFUL", + "SUMMARY", + "SUPPLEMENTAL", + "SUSPEND", + "SWITCH", + "SYNONYM", + "SYSDBA", + "SYSOPER", + "SYSTEM", + "SYS_OP_BITVEC", + "SYS_OP_ENFORCE_NOT_NULL$", + "SYS_OP_NOEXPAND", + "SYS_OP_NTCIMG$", + "TABLE", + "TABLES", + "TABLESPACE", + "TABLESPACE_NO", + "TABNO", + "TEMPFILE", + "TEMPORARY", + "THAN", + "THE", + "THREAD", + "THROUGH", + "TIMEOUT", + "TIMEZONE_HOUR", + "TIMEZONE_MINUTE", + "TIME_ZONE", + "TO", + "TOPLEVEL", + "TRACE", + "TRACING", + "TRAILING", + "TRANSACTION", + "TRANSITIONAL", + "TRIGGER", + "TRIGGERS", + "TRUE", + "TRUNCATE", + "TYPE", + "TYPES", + "UNARCHIVED", + "UNBOUND", + "UNBOUNDED", + "UNDO", + "UNIFORM", + "UNION", + "UNIQUE", + "UNLIMITED", + "UNLOCK", + "UNRECOVERABLE", + "UNTIL", + "UNUSABLE", + "UNUSED", + "UPDATABLE", + "UPDATE", + "UPD_INDEXES", + "UPPPER", + "USAGE", + "USE", + "USER_DEFINED", + "USE_STORED_OUTLINES", + "USING", + "VALIDATE", + "VALIDATION", + "VALUES", + "VIEW", + "WHENEVER", + "WHERE", + "WITH", + "WITHOUT", + "WORK", + "WRITE" + ], + "functions": [ + "ABS", + "ACOS", + "ADD_MONTHS", + "ASCII", + "ASCIISTR", + "ASIN", + "ATAN", + "ATAN2", + "AVG", + "BFILENAME", + "BIN_TO_NUM", + "BITAND", + "CARDINALITY", + "CAST", + "CEIL", + "CHARTOROWID", + "CHR", + "COALESCE", + "COLLECT", + "COMPOSE", + "CONCAT", + "CONVERT", + "CORR", + "CORR_K", + "CORR_S", + "COS", + "COSH", + "COUNT", + "COVAR_POP", + "COVAR_SAMP", + "CUME_DIST", + "CURRENT_DATE", + "CURRENT_TIMESTAMP", + "CV", + "DBTIMEZONE", + "DECODE", + "DECOMPOSE", + "DENSE_RANK", + "DEPTH", + "DEREF", + "DUMP", + "EMPTY_BLOB", + "EMPTY_CLOB", + "EXISTSNODE", + "EXP", + "EXTRACT", + "EXTRACTVALUE", + "FIRST", + "FIRST_VALUE", + "FLOOR", + "FROM_TZ", + "GREATEST", + "GROUP_ID", + "GROUPING", + "GROUPING_ID", + "HEXTORAW", + "INITCAP", + "INSTR", + "INSTRB", + "LAG", + "LAST", + "LAST_DAY", + "LAST_VALUE", + "LEAD", + "LEAST", + "LENGTH", + "LENGTHB", + "LN", + "LNNVL", + "LOCALTIMESTAMP", + "LOG", + "LOWER", + "LPAD", + "LTRIM", + "MAKE_REF", + "MAX", + "MEDIAN", + "MIN", + "MOD", + "MONTHS_BETWEEN", + "NANVL", + "NCHR", + "NEW_TIME", + "NEXT_DAY", + "NLS_CHARSET_DECL_LEN", + "NLS_CHARSET_ID", + "NLS_CHARSET_NAME", + "NLS_INITCAP", + "NLS_LOWER", + "NLS_UPPER", + "NLSSORT", + "NTILE", + "NULLIF", + "NUMTODSINTERVAL", + "NUMTOYMINTERVAL", + "NVL", + "NVL2", + "ORA_HASH", + "ORA_ROWSCN", + "PERCENT_RANK", + "PERCENTILE_CONT", + "PERCENTILE_DISC", + "POWER", + "POWERMULTISET", + "POWERMULTISET_BY_CARDINALITY", + "PRESENTNNV", + "PRESENTV", + "RANK", + "RATIO_TO_REPORT", + "RAWTOHEX", + "RAWTONHEX", + "REF", + "REFTOHEX", + "REGEXP_INSTR", + "REGEXP_LIKE", + "REGEXP_REPLACE", + "REGEXP_SUBSTR", + "REGR_SLOPE", + "REGR_INTERCEPT", + "REGR_COUNT", + "REGR_R2", + "REGR_AVGX", + "REGR_AVGY", + "REGR_SXX", + "REGR_SYY", + "REGR_SXY", + "REMAINDER", + "ROUND", + "ROW_NUMBER", + "ROWIDTOCHAR", + "ROWIDTONCHAR", + "RPAD", + "RTRIM", + "SCN_TO_TIMESTAMP", + "SESSIONTIMEZONE", + "SIGN", + "SIN", + "SINH", + "SOUNDEX", + "SQRT", + "STATS_BINOMIAL_TEST", + "STATS_CROSSTAB", + "STATS_F_TEST", + "STATS_KS_TEST", + "STATS_MODE", + "STATS_MW_TEST", + "STATS_ONE_WAY_ANOVA", + "STATS_T_TEST_ONE", + "STATS_T_TEST_PAIRED", + "STATS_T_TEST_INDEP", + "STATS_T_TEST_INDEPU", + "STATS_WSR_TEST", + "STDDEV", + "STDDEV_POP", + "STDDEV_SAMP", + "SUBSTR", + "SUBSTRB", + "SUM", + "SYS_CONNECT_BY_PATH", + "SYS_CONTEXT", + "SYS_DBURIGEN", + "SYS_EXTRACT_UTC", + "SYS_GUID", + "SYS_TYPEID", + "SYS_XMLAGG", + "SYS_XMLGEN", + "SYSDATE", + "SYSTIMESTAMP", + "TAN", + "TANH", + "TIMESTAMP_TO_SCN", + "TO_BINARY_DOUBLE", + "TO_BINARY_FLOAT", + "TO_CHAR", + "TO_CLOB", + "TO_DATE", + "TO_DSINTERVAL", + "TO_LOB", + "TO_MULTI_BYTE", + "TO_NCHAR", + "TO_NCLOB", + "TO_NUMBER", + "TO_SINGLE_BYTE", + "TO_TIMESTAMP", + "TO_TIMESTAMP_TZ", + "TO_YMINTERVAL", + "TRANSLATE", + "TREAT", + "TRIM", + "TRUNC", + "TZ_OFFSET", + "UID", + "UNISTR", + "UPDATEXML", + "UPPER", + "USER", + "USERENV", + "VALUE", + "VAR_POP", + "VAR_SAMP", + "VARIANCE", + "VSIZE", + "WIDTH_BUCKET", + "XMLAGG", + "XMLCOLATTVAL", + "XMLCONCAT", + "XMLELEMENT", + "XMLFOREST", + "XMLSEQUENCE", + "XMLTRANSFORM" + ], + "types": [ + "ANYDATA", + "ANYDATASET", + "ANYTYPE", + "ARRAY", + "BFILE", + "BINARY_DOUBLE", + "BINARY_FLOAT", + "BINARY_INTEGER", + "BLOB", + "BOOLEAN", + "CFILE", + "CHAR", + "CHARACTER", + "CLOB", + "DATE", + "DAY", + "DBURITYPE", + "DEC", + "DECIMAL", + "DOUBLE", + "FLOAT", + "FLOB", + "HTTPURITYPE", + "INT", + "INTEGER", + "INTERVAL", + "LOB", + "LONG", + "MLSLABEL", + "MONTH", + "NATIONAL", + "NCHAR", + "NCLOB", + "NUMBER", + "NUMERIC", + "NVARCHAR", + "OBJECT", + "PLS_INTEGER", + "PRECISION", + "RAW", + "REAL", + "RECORD", + "ROWID", + "SECOND", + "SINGLE", + "SMALLINT", + "TIME", + "TIMESTAMP", + "URIFACTORYTYPE", + "URITYPE", + "UROWID", + "VARCHAR", + "VARCHAR2", + "VARRAY", + "VARYING", + "XMLTYPE", + "YEAR", + "ZONE" + ] + }, + "item-datas": { + "Normal Text": "Normal", + "Keyword": "Keyword", + "ControlFlow": "ControlFlow", + "Operator": "Operator", + "Operator Keyword": "Keyword", + "Function": "Function", + "Data Type": "DataType", + "Decimal": "DecVal", + "Hex": "BaseN", + "Float": "Float", + "String": "String", + "String Char": "Char", + "Comment": "Comment", + "Identifier": "Others", + "External Variable": "Char", + "Symbol": "Char", + "Preprocessor": "Others", + "Error": "Error" + }, + "contexts": { + "Normal": { + "attribute": "Normal Text", + "line-end-context": "#stay", + "rules": [ + { + "type": "DetectSpaces", + "attribute": "Normal Text", + "context": "#stay" + }, + { + "type": "Detect2Chars", + "attribute": "Comment", + "context": "comment-line", + "char": "-", + "char1": "-" + }, + { + "type": "Detect2Chars", + "attribute": "Comment", + "context": "comment-block", + "char": "/", + "char1": "*" + }, + { + "type": "DetectChar", + "attribute": "String", + "context": "string", + "char": "'" + }, + { + "type": "DetectChar", + "attribute": "Identifier", + "context": "user-identifier", + "char": "\"" + }, + { + "type": "Hex", + "attribute": "Hex", + "context": "#stay" + }, + { + "type": "Float", + "attribute": "Float", + "context": "#stay" + }, + { + "type": "Int", + "attribute": "Decimal", + "context": "#stay" + }, + { + "type": "keyword", + "attribute": "Keyword", + "context": "#stay", + "String": "keywords", + "delimiters": " \t\r\n(),;" + }, + { + "type": "keyword", + "attribute": "Operator Keyword", + "context": "#stay", + "String": "operators", + "delimiters": " \t\r\n(),;" + }, + { + "type": "keyword", + "attribute": "ControlFlow", + "context": "#stay", + "String": "controlflow", + "delimiters": " \t\r\n(),;" + }, + { + "type": "keyword", + "attribute": "Function", + "context": "#stay", + "String": "functions", + "delimiters": " \t\r\n(),;" + }, + { + "type": "keyword", + "attribute": "Data Type", + "context": "#stay", + "String": "types", + "delimiters": " \t\r\n(),;" + }, + { + "type": "Detect2Chars", + "attribute": "Operator", + "context": "#stay", + "char": "!", + "char1": "=" + }, + { + "type": "Detect2Chars", + "attribute": "Operator", + "context": "#stay", + "char": "~", + "char1": "=" + }, + { + "type": "Detect2Chars", + "attribute": "Operator", + "context": "#stay", + "char": "^", + "char1": "=" + }, + { + "type": "Detect2Chars", + "attribute": "Operator", + "context": "#stay", + "char": ":", + "char1": "=" + }, + { + "type": "Detect2Chars", + "attribute": "Operator", + "context": "#stay", + "char": ".", + "char1": "." + }, + { + "type": "Detect2Chars", + "attribute": "Operator", + "context": "#stay", + "char": "|", + "char1": "|" + }, + { + "type": "AnyChar", + "attribute": "Operator", + "context": "#stay", + "String": "+-*/=<>" + }, + { + "type": "AnyChar", + "attribute": "Normal Text", + "context": "#stay", + "String": "()[]{};," + }, + { + "type": "DetectIdentifier", + "attribute": "Normal Text", + "context": "#stay" + } + ] + }, + "comment-line": { + "attribute": "Comment", + "line-end-context": "#pop", + "rules": [ + { + "type": "DetectSpaces", + "attribute": "Comment", + "context": "#stay" + }, + { + "type": "DetectIdentifier", + "attribute": "Comment", + "context": "#stay" + }, + { + "type": "AnyChar", + "attribute": "Comment", + "context": "#stay", + "String": "+-*/%=<>!&|^~?:;.,()[]{}#@'\"\\`" + } + ] + }, + "comment-block": { + "attribute": "Comment", + "line-end-context": "#stay", + "rules": [ + { + "type": "Detect2Chars", + "attribute": "Comment", + "context": "#pop", + "char": "*", + "char1": "/" + }, + { + "type": "DetectSpaces", + "attribute": "Comment", + "context": "#stay" + }, + { + "type": "DetectIdentifier", + "attribute": "Comment", + "context": "#stay" + }, + { + "type": "AnyChar", + "attribute": "Comment", + "context": "#stay", + "String": "+-*/%=<>!&|^~?:;.,()[]{}#@'\"\\`" + } + ] + }, + "string": { + "attribute": "String", + "line-end-context": "#stay", + "rules": [ + { + "type": "DetectChar", + "attribute": "String", + "context": "#pop", + "char": "'" + }, + { + "type": "Detect2Chars", + "attribute": "String Char", + "context": "#stay", + "char": "\\", + "char1": "'" + }, + { + "type": "Detect2Chars", + "attribute": "String Char", + "context": "#stay", + "char": "'", + "char1": "'" + }, + { + "type": "Detect2Chars", + "attribute": "String Char", + "context": "#stay", + "char": "\\", + "char1": "n" + }, + { + "type": "Detect2Chars", + "attribute": "String Char", + "context": "#stay", + "char": "\\", + "char1": "t" + }, + { + "type": "Detect2Chars", + "attribute": "String Char", + "context": "#stay", + "char": "\\", + "char1": "r" + }, + { + "type": "Detect2Chars", + "attribute": "String Char", + "context": "#stay", + "char": "\\", + "char1": "0" + } + ] + }, + "user-identifier": { + "attribute": "Identifier", + "line-end-context": "#pop", + "rules": [ + { + "type": "DetectChar", + "attribute": "Identifier", + "context": "#pop", + "char": "\"" + } + ] + } + } +} \ No newline at end of file diff --git a/highlight/resources/syntax/swift.json b/highlight/resources/syntax/swift.json new file mode 100644 index 0000000..88a10d6 --- /dev/null +++ b/highlight/resources/syntax/swift.json @@ -0,0 +1,192 @@ +{ + "metadata": { + "copyright": [ + "SPDX-FileCopyrightText: 2026 The Goldfish Scheme Authors", + "SPDX-FileCopyrightText: Swift syntax derived from swift.xml by the KDE syntax-highlighting authors" + ], + "license": "SPDX-License-Identifier: LGPL-2.0-or-later", + "name": "Swift" + }, + "name": "Swift", + "extensions": [ + "*.swift" + ], + "initial-context": "Normal", + "lists": { + "keywords": [ + "@testable", "import", "struct", "class", "enum", "protocol", + "extension", "private", "lazy", "public", "fileprivate", + "internal", "final", "dynamic", "static", "mutating", "nonmutating", + "get", "set", "func", "var", "let", "is", "as", "where", "willSet", + "didSet", "willGet", "didGet", "return", "throws", "rethrows", + "throw", "typealias", "typeof", "override", "infix", "operator", + "indirect", "convenience", "optional", "required", "associatedtype", + "some", "any", "open", "unchecked", "borrowing", "consuming", + "consume", "discard", "each", "macro" + ], + "controlFlowKeyword": [ + "if", "else", "guard", "defer", "in", "inout", "for", "repeat", + "while", "case", "switch", "do", "try", "catch", "async", "await", + "actor", "continue", "break", "fallthrough", "fatalError" + ], + "predeclared": [ + "nil", "super", "self", "init", "deinit", "true", "false", + "required", "weak", "strong", "unowned", "default", "Self" + ], + "types": [ + "Unit", "Nothing", "String", "Char", "Int", "Long", "Byte", + "Short", "Float", "Double", "Boolean", "Bool", "UInt", "Int8", + "Int16", "Int32", "Int64", "UInt8", "UInt16", "UInt32", "UInt64", + "Array", "Set", "Dictionary", "Optional", "Any", "Void" + ] + }, + "item-datas": { + "Normal Text": "Normal", + "Keyword": "Keyword", + "ControlFlowKeyword": "ControlFlow", + "Function": "Function", + "Variable": "Variable", + "Imports": "Import", + "Annotation": "Attribute", + "Data Type": "DataType", + "Decimal": "DecVal", + "Hex": "BaseN", + "Binary": "BaseN", + "Float": "Float", + "Char": "Char", + "String": "String", + "String Char": "SpecialChar", + "String Interpolation": "SpecialString", + "Comment": "Comment", + "Symbol": "Operator", + "Error": "Error" + }, + "contexts": { + "Normal": { + "attribute": "Normal Text", + "line-end-context": "#stay", + "rules": [ + { "type": "Detect2Chars", "attribute": "Comment", "context": "shebang", "char": "#", "char1": "!", "column": 0 }, + { "type": "DetectSpaces", "attribute": "Normal Text", "context": "#stay" }, + { "type": "DetectChar", "attribute": "Annotation", "context": "annotation", "char": "@" }, + { "type": "Detect2Chars", "attribute": "Comment", "context": "comment-line", "char": "/", "char1": "/" }, + { "type": "Detect2Chars", "attribute": "Comment", "context": "comment-block", "char": "/", "char1": "*" }, + { "type": "StringDetect", "attribute": "String", "context": "string-multiline", "String": "\"\"\"" }, + { "type": "DetectChar", "attribute": "String", "context": "string", "char": "\"" }, + { "type": "DetectChar", "attribute": "Char", "context": "char", "char": "'" }, + { "type": "Hex", "attribute": "Hex", "context": "#stay" }, + { "type": "Float", "attribute": "Float", "context": "#stay" }, + { "type": "Int", "attribute": "Decimal", "context": "#stay" }, + { "type": "keyword", "attribute": "Keyword", "context": "#stay", "String": "predeclared", "delimiters": " \t\r\n()[]{}\",';.:=+-*/%^#~<>&|!?" }, + { "type": "keyword", "attribute": "Keyword", "context": "#stay", "String": "keywords", "delimiters": " \t\r\n()[]{}\",';.:=+-*/%^#~<>&|!?" }, + { "type": "keyword", "attribute": "ControlFlowKeyword", "context": "#stay", "String": "controlFlowKeyword", "delimiters": " \t\r\n()[]{}\",';.:=+-*/%^#~<>&|!?" }, + { "type": "keyword", "attribute": "Data Type", "context": "#stay", "String": "types", "delimiters": " \t\r\n()[]{}\",';.:=+-*/%^#~<>&|!?" }, + { "type": "Detect2Chars", "attribute": "Symbol", "context": "member", "char": ".", "char1": "." }, + { "type": "DetectChar", "attribute": "Symbol", "context": "member", "char": "." }, + { "type": "Detect2Chars", "attribute": "Symbol", "context": "#stay", "char": "-", "char1": ">" }, + { "type": "Detect2Chars", "attribute": "Symbol", "context": "#stay", "char": "=", "char1": ">" }, + { "type": "Detect2Chars", "attribute": "Symbol", "context": "#stay", "char": "=", "char1": "=" }, + { "type": "Detect2Chars", "attribute": "Symbol", "context": "#stay", "char": "!", "char1": "=" }, + { "type": "Detect2Chars", "attribute": "Symbol", "context": "#stay", "char": "<", "char1": "=" }, + { "type": "Detect2Chars", "attribute": "Symbol", "context": "#stay", "char": ">", "char1": "=" }, + { "type": "Detect2Chars", "attribute": "Symbol", "context": "#stay", "char": "&", "char1": "&" }, + { "type": "Detect2Chars", "attribute": "Symbol", "context": "#stay", "char": "|", "char1": "|" }, + { "type": "Detect2Chars", "attribute": "Symbol", "context": "#stay", "char": "+", "char1": "+" }, + { "type": "Detect2Chars", "attribute": "Symbol", "context": "#stay", "char": "-", "char1": "-" }, + { "type": "AnyChar", "attribute": "Symbol", "context": "#stay", "String": "()[]&+,-/*<=;>!%?:~^" }, + { "type": "DetectIdentifier", "attribute": "Normal Text", "context": "#stay" } + ] + }, + "shebang": { + "attribute": "Comment", + "line-end-context": "#pop", + "rules": [ + { "type": "DetectIdentifier", "attribute": "Comment", "context": "#stay" }, + { "type": "AnyChar", "attribute": "Comment", "context": "#stay", "String": "/._-:" } + ] + }, + "annotation": { + "attribute": "Annotation", + "line-end-context": "#pop", + "rules": [ + { "type": "DetectIdentifier", "attribute": "Annotation", "context": "#stay" }, + { "type": "DetectChar", "attribute": "Annotation", "context": "#stay", "char": "." }, + { "type": "DetectChar", "attribute": "Symbol", "context": "#stay", "char": ":" } + ] + }, + "comment-line": { + "attribute": "Comment", + "line-end-context": "#pop", + "rules": [ + { "type": "DetectSpaces", "attribute": "Comment", "context": "#stay" }, + { "type": "DetectIdentifier", "attribute": "Comment", "context": "#stay" }, + { "type": "AnyChar", "attribute": "Comment", "context": "#stay", "String": "+-*/%=<>!&|^~?:;.,()[]{}#@$'\"\\`" } + ] + }, + "comment-block": { + "attribute": "Comment", + "line-end-context": "#stay", + "rules": [ + { "type": "Detect2Chars", "attribute": "Comment", "context": "#pop", "char": "*", "char1": "/" }, + { "type": "DetectSpaces", "attribute": "Comment", "context": "#stay" }, + { "type": "DetectIdentifier", "attribute": "Comment", "context": "#stay" }, + { "type": "AnyChar", "attribute": "Comment", "context": "#stay", "String": "+-*/%=<>!&|^~?:;.,()[]{}#@$'\"\\`" } + ] + }, + "string": { + "attribute": "String", + "line-end-context": "#pop", + "rules": [ + { "type": "DetectChar", "attribute": "String", "context": "#pop", "char": "\"" }, + { "type": "Detect2Chars", "attribute": "String Interpolation", "context": "interp-expr", "char": "\\", "char1": "(" }, + { "type": "Detect2Chars", "attribute": "String Char", "context": "#stay", "char": "\\", "char1": "\\" }, + { "type": "Detect2Chars", "attribute": "String Char", "context": "#stay", "char": "\\", "char1": "\"" }, + { "type": "Detect2Chars", "attribute": "String Char", "context": "#stay", "char": "\\", "char1": "'" }, + { "type": "Detect2Chars", "attribute": "String Char", "context": "#stay", "char": "\\", "char1": "n" }, + { "type": "Detect2Chars", "attribute": "String Char", "context": "#stay", "char": "\\", "char1": "t" }, + { "type": "Detect2Chars", "attribute": "String Char", "context": "#stay", "char": "\\", "char1": "r" }, + { "type": "Detect2Chars", "attribute": "String Char", "context": "#stay", "char": "\\", "char1": "0" }, + { "type": "Detect2Chars", "attribute": "String Char", "context": "#stay", "char": "\\", "char1": "u" } + ] + }, + "string-multiline": { + "attribute": "String", + "line-end-context": "#stay", + "rules": [ + { "type": "StringDetect", "attribute": "String", "context": "#pop", "String": "\"\"\"" }, + { "type": "Detect2Chars", "attribute": "String Interpolation", "context": "interp-expr", "char": "\\", "char1": "(" } + ] + }, + "interp-expr": { + "attribute": "String Interpolation", + "line-end-context": "#stay", + "rules": [ + { "type": "DetectChar", "attribute": "String Interpolation", "context": "#pop", "char": ")" }, + { "type": "DetectIdentifier", "attribute": "String Interpolation", "context": "#stay" }, + { "type": "AnyChar", "attribute": "String Interpolation", "context": "#stay", "String": "0123456789.[]!:.,+-*/%<>=&|^~(){}" } + ] + }, + "char": { + "attribute": "Char", + "line-end-context": "#pop", + "rules": [ + { "type": "DetectChar", "attribute": "Char", "context": "#pop", "char": "'" }, + { "type": "Detect2Chars", "attribute": "String Char", "context": "#stay", "char": "\\", "char1": "\\" }, + { "type": "Detect2Chars", "attribute": "String Char", "context": "#stay", "char": "\\", "char1": "'" }, + { "type": "Detect2Chars", "attribute": "String Char", "context": "#stay", "char": "\\", "char1": "n" }, + { "type": "Detect2Chars", "attribute": "String Char", "context": "#stay", "char": "\\", "char1": "t" }, + { "type": "Detect2Chars", "attribute": "String Char", "context": "#stay", "char": "\\", "char1": "r" }, + { "type": "Detect2Chars", "attribute": "String Char", "context": "#stay", "char": "\\", "char1": "0" }, + { "type": "Detect2Chars", "attribute": "String Char", "context": "#stay", "char": "\\", "char1": "u" } + ] + }, + "member": { + "attribute": "Normal Text", + "line-end-context": "#pop", + "rules": [ + { "type": "DetectChar", "attribute": "Symbol", "context": "#stay", "char": "." }, + { "type": "DetectIdentifier", "attribute": "Function", "context": "#pop" } + ] + } + } +} diff --git a/highlight/resources/syntax/toml.json b/highlight/resources/syntax/toml.json new file mode 100644 index 0000000..536b2a4 --- /dev/null +++ b/highlight/resources/syntax/toml.json @@ -0,0 +1,226 @@ +{ + "metadata": { + "copyright": [ + "SPDX-FileCopyrightText: 2026 The Goldfish Scheme Authors", + "SPDX-FileCopyrightText: TOML syntax derived from toml.xml by flying-sheep@web.de (KDE syntax-highlighting)" + ], + "license": "SPDX-License-Identifier: LGPL-2.0-or-later", + "name": "TOML" + }, + "name": "TOML", + "extensions": [ + "Cargo.lock", + "*.toml", + "*.rc", + "*.cfg", + "*.cf", + "*.cnf", + "*.ini", + "mirrorlist" + ], + "initial-context": "Toml", + "lists": { + "bools": [ + "true", "false" + ] + }, + "item-datas": { + "Whitespace": "Normal", + "Key": "DataType", + "TableHeader": "Keyword", + "Assignment": "Operator", + "Comment": "Comment", + "Date": "BaseN", + "Float": "Float", + "Int": "DecVal", + "Boolean true": "Constant", + "Boolean false": "Constant", + "String": "String", + "LitString": "VerbatimString", + "Escape": "SpecialChar", + "Array": "Operator", + "InlineTable": "Operator", + "NextEntry": "Operator", + "Error": "Error" + }, + "contexts": { + "Toml": { + "attribute": "Normal", + "line-end-context": "#stay", + "rules": [ + { "type": "DetectSpaces", "attribute": "Whitespace", "context": "#stay" }, + { "type": "Detect2Chars", "attribute": "TableHeader", "context": "NestedTableHeader", "char": "[", "char1": "[" }, + { "type": "DetectChar", "attribute": "TableHeader", "context": "TableHeader", "char": "[" }, + { "type": "DetectChar", "attribute": "Assignment", "context": "Value", "char": "=" }, + { "type": "DetectChar", "attribute": "Comment", "context": "Comment", "char": "#" }, + { "type": "DetectChar", "attribute": "Key", "context": "QuotedKey", "char": "\"" }, + { "type": "DetectChar", "attribute": "Key", "context": "LitQuotedKey", "char": "'" }, + { "type": "DetectChar", "attribute": "Key", "context": "#stay", "char": "." }, + { "type": "DetectIdentifier", "attribute": "Key", "context": "#stay" } + ] + }, + "TableHeader": { + "attribute": "TableHeader", + "line-end-context": "#pop", + "fallthrough-context": "#pop", + "rules": [ + { "type": "DetectChar", "attribute": "TableHeader", "context": "#pop", "char": "]" }, + { "type": "DetectSpaces", "attribute": "Whitespace", "context": "#stay" }, + { "type": "DetectChar", "attribute": "TableHeader", "context": "QuotedKey", "char": "\"" }, + { "type": "DetectChar", "attribute": "TableHeader", "context": "LitQuotedKey", "char": "'" }, + { "type": "DetectChar", "attribute": "TableHeader", "context": "#stay", "char": "." }, + { "type": "DetectIdentifier", "attribute": "TableHeader", "context": "#stay" } + ] + }, + "NestedTableHeader": { + "attribute": "TableHeader", + "line-end-context": "#pop", + "fallthrough-context": "#pop", + "rules": [ + { "type": "Detect2Chars", "attribute": "TableHeader", "context": "#pop", "char": "]", "char1": "]" }, + { "type": "DetectSpaces", "attribute": "Whitespace", "context": "#stay" }, + { "type": "DetectChar", "attribute": "TableHeader", "context": "QuotedKey", "char": "\"" }, + { "type": "DetectChar", "attribute": "TableHeader", "context": "LitQuotedKey", "char": "'" }, + { "type": "DetectChar", "attribute": "TableHeader", "context": "#stay", "char": "." }, + { "type": "DetectIdentifier", "attribute": "TableHeader", "context": "#stay" } + ] + }, + "Value": { + "attribute": "Normal", + "line-end-context": "#pop", + "fallthrough-context": "#pop", + "rules": [ + { "type": "DetectSpaces", "attribute": "Whitespace", "context": "#stay" }, + { "type": "WordDetect", "attribute": "Boolean true", "context": "#pop", "String": "true", "delimiters": " \t\r\n]#,}" }, + { "type": "WordDetect", "attribute": "Boolean false", "context": "#pop", "String": "false", "delimiters": " \t\r\n]#,}" }, + { "type": "StringDetect", "attribute": "String", "context": "MultilineString", "String": "\"\"\"" }, + { "type": "DetectChar", "attribute": "String", "context": "String", "char": "\"" }, + { "type": "StringDetect", "attribute": "LitString", "context": "LitMultilineString", "String": "'''" }, + { "type": "DetectChar", "attribute": "LitString", "context": "LitString", "char": "'" }, + { "type": "DetectChar", "attribute": "Array", "context": "Array", "char": "[" }, + { "type": "DetectChar", "attribute": "InlineTable", "context": "InlineTable", "char": "{" }, + { "type": "Hex", "attribute": "Int", "context": "#pop" }, + { "type": "Float", "attribute": "Float", "context": "#pop" }, + { "type": "Int", "attribute": "Int", "context": "#pop" } + ] + }, + "Comment": { + "attribute": "Comment", + "line-end-context": "#pop", + "rules": [ + { "type": "DetectSpaces", "attribute": "Comment", "context": "#stay" }, + { "type": "DetectIdentifier", "attribute": "Comment", "context": "#stay" }, + { "type": "AnyChar", "attribute": "Comment", "context": "#stay", "String": "+-*/%=<>!&|^~?:;.,()[]{}#@$'\"\\`" } + ] + }, + "QuotedKey": { + "attribute": "Key", + "line-end-context": "#pop", + "rules": [ + { "type": "DetectChar", "attribute": "Key", "context": "#pop", "char": "\"" }, + { "type": "Detect2Chars", "attribute": "Escape", "context": "#stay", "char": "\\", "char1": "\\" }, + { "type": "Detect2Chars", "attribute": "Escape", "context": "#stay", "char": "\\", "char1": "\"" }, + { "type": "Detect2Chars", "attribute": "Escape", "context": "#stay", "char": "\\", "char1": "n" }, + { "type": "Detect2Chars", "attribute": "Escape", "context": "#stay", "char": "\\", "char1": "t" }, + { "type": "Detect2Chars", "attribute": "Escape", "context": "#stay", "char": "\\", "char1": "r" }, + { "type": "Detect2Chars", "attribute": "Escape", "context": "#stay", "char": "\\", "char1": "u" }, + { "type": "Detect2Chars", "attribute": "Escape", "context": "#stay", "char": "\\", "char1": "U" } + ] + }, + "LitQuotedKey": { + "attribute": "Key", + "line-end-context": "#pop", + "rules": [ + { "type": "DetectChar", "attribute": "Key", "context": "#pop", "char": "'" } + ] + }, + "String": { + "attribute": "String", + "line-end-context": "#pop", + "rules": [ + { "type": "DetectChar", "attribute": "String", "context": "#pop", "char": "\"" }, + { "type": "Detect2Chars", "attribute": "Escape", "context": "#stay", "char": "\\", "char1": "\\" }, + { "type": "Detect2Chars", "attribute": "Escape", "context": "#stay", "char": "\\", "char1": "\"" }, + { "type": "Detect2Chars", "attribute": "Escape", "context": "#stay", "char": "\\", "char1": "n" }, + { "type": "Detect2Chars", "attribute": "Escape", "context": "#stay", "char": "\\", "char1": "t" }, + { "type": "Detect2Chars", "attribute": "Escape", "context": "#stay", "char": "\\", "char1": "r" }, + { "type": "Detect2Chars", "attribute": "Escape", "context": "#stay", "char": "\\", "char1": "b" }, + { "type": "Detect2Chars", "attribute": "Escape", "context": "#stay", "char": "\\", "char1": "f" }, + { "type": "Detect2Chars", "attribute": "Escape", "context": "#stay", "char": "\\", "char1": "u" }, + { "type": "Detect2Chars", "attribute": "Escape", "context": "#stay", "char": "\\", "char1": "U" } + ] + }, + "MultilineString": { + "attribute": "String", + "line-end-context": "#stay", + "rules": [ + { "type": "StringDetect", "attribute": "String", "context": "#pop", "String": "\"\"\"" }, + { "type": "Detect2Chars", "attribute": "Escape", "context": "#stay", "char": "\\", "char1": "\\" }, + { "type": "Detect2Chars", "attribute": "Escape", "context": "#stay", "char": "\\", "char1": "n" }, + { "type": "Detect2Chars", "attribute": "Escape", "context": "#stay", "char": "\\", "char1": "t" }, + { "type": "Detect2Chars", "attribute": "Escape", "context": "#stay", "char": "\\", "char1": "u" }, + { "type": "Detect2Chars", "attribute": "Escape", "context": "#stay", "char": "\\", "char1": "U" } + ] + }, + "LitString": { + "attribute": "LitString", + "line-end-context": "#pop", + "rules": [ + { "type": "DetectChar", "attribute": "LitString", "context": "#pop", "char": "'" } + ] + }, + "LitMultilineString": { + "attribute": "LitString", + "line-end-context": "#stay", + "rules": [ + { "type": "StringDetect", "attribute": "LitString", "context": "#pop", "String": "'''" } + ] + }, + "Array": { + "attribute": "Array", + "line-end-context": "#stay", + "rules": [ + { "type": "DetectSpaces", "attribute": "Whitespace", "context": "#stay" }, + { "type": "DetectChar", "attribute": "Array", "context": "#pop", "char": "]" }, + { "type": "DetectChar", "attribute": "Comment", "context": "Comment", "char": "#" }, + { "type": "DetectChar", "attribute": "NextEntry", "context": "InArray", "char": "," }, + { "type": "StringDetect", "attribute": "String", "context": "MultilineString", "String": "\"\"\"" }, + { "type": "DetectChar", "attribute": "String", "context": "String", "char": "\"" }, + { "type": "StringDetect", "attribute": "LitString", "context": "LitMultilineString", "String": "'''" }, + { "type": "DetectChar", "attribute": "LitString", "context": "LitString", "char": "'" }, + { "type": "DetectChar", "attribute": "Array", "context": "Array", "char": "[" }, + { "type": "DetectChar", "attribute": "InlineTable", "context": "InlineTable", "char": "{" }, + { "type": "Hex", "attribute": "Int", "context": "#stay" }, + { "type": "Float", "attribute": "Float", "context": "#stay" }, + { "type": "Int", "attribute": "Int", "context": "#stay" }, + { "type": "WordDetect", "attribute": "Boolean true", "context": "#stay", "String": "true", "delimiters": " \t\r\n]#,}" }, + { "type": "WordDetect", "attribute": "Boolean false", "context": "#stay", "String": "false", "delimiters": " \t\r\n]#,}" }, + { "type": "DetectIdentifier", "attribute": "Normal", "context": "#stay" } + ] + }, + "InArray": { + "attribute": "Normal", + "line-end-context": "#stay", + "rules": [ + { "type": "DetectChar", "attribute": "Array", "context": "#pop#pop", "char": "]" }, + { "type": "DetectChar", "attribute": "Comment", "context": "Comment", "char": "#" }, + { "type": "IncludeRules", "attribute": "Normal", "context": "#stay", "context-ref": "#TOML.Array" } + ] + }, + "InlineTable": { + "attribute": "InlineTable", + "line-end-context": "#stay", + "rules": [ + { "type": "DetectChar", "attribute": "InlineTable", "context": "#pop", "char": "}" }, + { "type": "DetectSpaces", "attribute": "Whitespace", "context": "#stay" }, + { "type": "DetectChar", "attribute": "Comment", "context": "Comment", "char": "#" }, + { "type": "DetectChar", "attribute": "Assignment", "context": "Value", "char": "=" }, + { "type": "DetectChar", "attribute": "NextEntry", "context": "#stay", "char": "," }, + { "type": "DetectChar", "attribute": "Key", "context": "QuotedKey", "char": "\"" }, + { "type": "DetectChar", "attribute": "Key", "context": "LitQuotedKey", "char": "'" }, + { "type": "DetectChar", "attribute": "Key", "context": "#stay", "char": "." }, + { "type": "DetectIdentifier", "attribute": "Key", "context": "#stay" } + ] + } + } +} diff --git a/highlight/resources/syntax/typescript.json b/highlight/resources/syntax/typescript.json new file mode 100644 index 0000000..fa4f930 --- /dev/null +++ b/highlight/resources/syntax/typescript.json @@ -0,0 +1,272 @@ +{ + "metadata": { + "copyright": [ + "SPDX-FileCopyrightText: 2026 The Goldfish Scheme Authors", + "SPDX-FileCopyrightText: TypeScript syntax derived from typescript.xml by Nibaldo González S. and the JavaScript highlighter authors (KDE syntax-highlighting)" + ], + "license": "SPDX-License-Identifier: MIT", + "name": "TypeScript" + }, + "name": "TypeScript", + "extensions": [ + "*.ts", + "*.mts", + "*.cts" + ], + "initial-context": "Normal", + "lists": { + "controlflow": [ + "await", "break", "case", "catch", "continue", "debugger", "do", + "else", "finally", "for", "goto", "if", "return", "switch", "throw", + "try", "while", "with" + ], + "keywords": [ + "const", "delete", "in", "instanceof", "new", "of", "this", + "typeof", "var", "void" + ], + "reserved": [ + "async", "class", "enum", "extends", "super", "arguments", + "implements", "interface", "let", "private", "protected", "public", + "static", "yield", "type", "declare", "readonly", "abstract", + "constructor", "get", "set", "namespace", "module", "keyof", "infer", + "is", "asserts", "satisfies", "override" + ], + "modules": [ + "import", "from", "as", "default", "export", "package" + ], + "primitives": [ + "Infinity", "NaN", "false", "null", "true", "undefined", "object" + ], + "types": [ + "string", "number", "bigint", "boolean", "symbol", "any", "void", + "never", "unknown", "null", "undefined", "object" + ], + "builtins": [ + "Array", "ArrayBuffer", "Atomics", "BigInt", "BigInt64Array", + "BigUint64Array", "Boolean", "DataView", "Date", "FinalizationRegistry", + "Float32Array", "Float64Array", "Function", "Generator", + "GeneratorFunction", "Int8Array", "Int16Array", "Int32Array", "Intl", + "JSON", "Map", "Math", "Number", "Object", "Promise", "Proxy", + "Reflect", "RegExp", "SIMD", "Set", "SharedArrayBuffer", "String", + "Symbol", "TypedArray", "Uint8Array", "Uint16Array", "Uint32Array", + "Uint8ClampedArray", "WeakMap", "WeakRef", "WeakSet", "Error", + "EvalError", "InternalError", "RangeError", "ReferenceError", + "SyntaxError", "TypeError", "URIError", "console", "document", + "globalThis", "navigator", "process", "window", "module", "exports", + "require", "__filename", "__dirname", "Partial", "Readonly", + "Record", "Pick", "Omit", "Exclude", "Extract", "NonNullable", + "ReturnType", "InstanceType", "Required", "ThisType", "Awaited", + "Promise", "Symbol" + ], + "functions": [ + "clearInterval", "clearTimeout", "decodeURI", "decodeURIComponent", + "encodeURI", "encodeURIComponent", "escape", "eval", "isFinite", + "isNaN", "parseFloat", "parseInt", "setInterval", "setTimeout", + "unescape", "fetch" + ] + }, + "item-datas": { + "Normal": "Normal", + "Keyword": "Keyword", + "ControlFlow": "ControlFlow", + "Reserved": "Keyword", + "Module": "Import", + "Primitives": "Constant", + "DataType": "DataType", + "Constant": "Constant", + "Built-in Objects": "BuiltIn", + "Function Name": "Function", + "Function Declaration": "Function", + "Object Member": "Attribute", + "Object Property (Built-in)": "Attribute", + "Symbol": "Operator", + "Special Operators": "Keyword", + "Private Member Operator": "Normal", + "Decimal": "DecVal", + "Hex": "BaseN", + "Float": "Float", + "String": "String", + "Template": "VerbatimString", + "Escape": "SpecialChar", + "Reserved Char. Escape": "SpecialChar", + "Substitution": "SpecialChar", + "Comment": "Comment", + "Regular Expression": "SpecialString", + "Decorator": "Attribute", + "Error": "Error" + }, + "contexts": { + "Normal": { + "attribute": "Normal", + "line-end-context": "#stay", + "rules": [ + { "type": "DetectSpaces", "attribute": "Normal", "context": "#stay" }, + { "type": "Detect2Chars", "attribute": "Comment", "context": "shebang", "char": "#", "char1": "!", "column": 0 }, + { "type": "Detect2Chars", "attribute": "Comment", "context": "comment-line", "char": "/", "char1": "/" }, + { "type": "Detect2Chars", "attribute": "Comment", "context": "comment-block", "char": "/", "char1": "*" }, + { "type": "DetectChar", "attribute": "Decorator", "context": "decorator", "char": "@" }, + { "type": "StringDetect", "attribute": "Template", "context": "template", "String": "`" }, + { "type": "DetectChar", "attribute": "String", "context": "string-double", "char": "\"" }, + { "type": "DetectChar", "attribute": "String", "context": "string-single", "char": "'" }, + { "type": "WordDetect", "attribute": "Keyword", "context": "function-name", "String": "function", "delimiters": " \t\r\n()[]{}\",'`;\\.:=+-*/%^#~<>&|!?" }, + { "type": "keyword", "attribute": "ControlFlow", "context": "#stay", "String": "controlflow", "delimiters": " \t\r\n()[]{}\",'`;\\.:=+-*/%^#~<>&|!?" }, + { "type": "keyword", "attribute": "Keyword", "context": "#stay", "String": "keywords", "delimiters": " \t\r\n()[]{}\",'`;\\.:=+-*/%^#~<>&|!?" }, + { "type": "keyword", "attribute": "Reserved", "context": "#stay", "String": "reserved", "delimiters": " \t\r\n()[]{}\",'`;\\.:=+-*/%^#~<>&|!?" }, + { "type": "keyword", "attribute": "Module", "context": "#stay", "String": "modules", "delimiters": " \t\r\n()[]{}\",'`;\\.:=+-*/%^#~<>&|!?" }, + { "type": "keyword", "attribute": "Primitives", "context": "#stay", "String": "primitives", "delimiters": " \t\r\n()[]{}\",'`;\\.:=+-*/%^#~<>&|!?" }, + { "type": "keyword", "attribute": "DataType", "context": "#stay", "String": "types", "delimiters": " \t\r\n()[]{}\",'`;\\.:=+-*/%^#~<>&|!?" }, + { "type": "keyword", "attribute": "Built-in Objects", "context": "#stay", "String": "builtins", "delimiters": " \t\r\n()[]{}\",'`;\\.:=+-*/%^#~<>&|!?" }, + { "type": "keyword", "attribute": "Function Name", "context": "#stay", "String": "functions", "delimiters": " \t\r\n()[]{}\",'`;\\.:=+-*/%^#~<>&|!?" }, + { "type": "Hex", "attribute": "Hex", "context": "#stay" }, + { "type": "Float", "attribute": "Float", "context": "#stay" }, + { "type": "Decimal", "attribute": "Decimal", "context": "#stay" }, + { "type": "DetectChar", "attribute": "Symbol", "context": "member", "char": ".", "look-ahead": true }, + { "type": "Detect2Chars", "attribute": "Special Operators", "context": "#stay", "char": "=", "char1": ">" }, + { "type": "Detect2Chars", "attribute": "Symbol", "context": "#stay", "char": "<", "char1": ":" }, + { "type": "DetectChar", "attribute": "Private Member Operator", "context": "#stay", "char": "#" }, + { "type": "AnyChar", "attribute": "Symbol", "context": "#stay", "String": "+-*/%=<>!&|^~?:;" }, + { "type": "AnyChar", "attribute": "Normal", "context": "#stay", "String": "()[]{}.," }, + { "type": "DetectIdentifier", "attribute": "Normal", "context": "#stay" } + ] + }, + "shebang": { + "attribute": "Comment", + "line-end-context": "#pop", + "rules": [ + { "type": "DetectSpaces", "attribute": "Comment", "context": "#stay" }, + { "type": "DetectIdentifier", "attribute": "Comment", "context": "#stay" }, + { "type": "AnyChar", "attribute": "Comment", "context": "#stay", "String": "/.-_:=~" } + ] + }, + "decorator": { + "attribute": "Decorator", + "line-end-context": "#pop", + "rules": [ + { "type": "DetectIdentifier", "attribute": "Decorator", "context": "decorator-tail" } + ] + }, + "decorator-tail": { + "attribute": "Decorator", + "line-end-context": "#pop", + "rules": [ + { "type": "DetectChar", "attribute": "Decorator", "context": "decorator-arg", "char": "(" }, + { "type": "DetectChar", "attribute": "Decorator", "context": "#stay", "char": "." }, + { "type": "DetectIdentifier", "attribute": "Decorator", "context": "#stay" } + ] + }, + "decorator-arg": { + "attribute": "Decorator", + "line-end-context": "#stay", + "rules": [ + { "type": "DetectChar", "attribute": "Decorator", "context": "#pop", "char": ")" }, + { "type": "DetectSpaces", "attribute": "Decorator", "context": "#stay" }, + { "type": "DetectIdentifier", "attribute": "Decorator", "context": "#stay" }, + { "type": "AnyChar", "attribute": "Decorator", "context": "#stay", "String": ",.+-*/%=<>!&|^~?:;[]{}@'\"" } + ] + }, + "comment-line": { + "attribute": "Comment", + "line-end-context": "#pop", + "rules": [ + { "type": "DetectSpaces", "attribute": "Comment", "context": "#stay" }, + { "type": "DetectIdentifier", "attribute": "Comment", "context": "#stay" }, + { "type": "AnyChar", "attribute": "Comment", "context": "#stay", "String": "+-*/%=<>!&|^~?:;.,()[]{}#@$&'\"\\" } + ] + }, + "comment-block": { + "attribute": "Comment", + "line-end-context": "#stay", + "rules": [ + { "type": "Detect2Chars", "attribute": "Comment", "context": "#pop", "char": "*", "char1": "/" }, + { "type": "DetectSpaces", "attribute": "Comment", "context": "#stay" }, + { "type": "DetectIdentifier", "attribute": "Comment", "context": "#stay" }, + { "type": "AnyChar", "attribute": "Comment", "context": "#stay", "String": "+-*/%=<>!&|^~?:;.,()[]{}#@$&'\"\\" } + ] + }, + "string-double": { + "attribute": "String", + "line-end-context": "#pop", + "rules": [ + { "type": "DetectChar", "attribute": "String", "context": "#pop", "char": "\"" }, + { "type": "DetectChar", "attribute": "Escape", "context": "escape", "char": "\\", "look-ahead": true } + ] + }, + "string-single": { + "attribute": "String", + "line-end-context": "#pop", + "rules": [ + { "type": "DetectChar", "attribute": "String", "context": "#pop", "char": "'" }, + { "type": "DetectChar", "attribute": "Escape", "context": "escape", "char": "\\", "look-ahead": true } + ] + }, + "template": { + "attribute": "Template", + "line-end-context": "#stay", + "rules": [ + { "type": "DetectChar", "attribute": "Template", "context": "#pop", "char": "`" }, + { "type": "Detect2Chars", "attribute": "Substitution", "context": "substitution", "char": "$", "char1": "{" }, + { "type": "DetectChar", "attribute": "Escape", "context": "escape", "char": "\\", "look-ahead": true } + ] + }, + "substitution": { + "attribute": "Normal", + "line-end-context": "#stay", + "rules": [ + { "type": "DetectChar", "attribute": "Substitution", "context": "#pop", "char": "}" }, + { "type": "DetectSpaces", "attribute": "Normal", "context": "#stay" }, + { "type": "Detect2Chars", "attribute": "Comment", "context": "comment-line", "char": "/", "char1": "/" }, + { "type": "Detect2Chars", "attribute": "Comment", "context": "comment-block", "char": "/", "char1": "*" }, + { "type": "StringDetect", "attribute": "Template", "context": "template", "String": "`" }, + { "type": "DetectChar", "attribute": "String", "context": "string-double", "char": "\"" }, + { "type": "DetectChar", "attribute": "String", "context": "string-single", "char": "'" }, + { "type": "keyword", "attribute": "ControlFlow", "context": "#stay", "String": "controlflow", "delimiters": " \t\r\n()[]{}\",'`;\\.:=+-*/%^#~<>&|!?" }, + { "type": "keyword", "attribute": "Keyword", "context": "#stay", "String": "keywords", "delimiters": " \t\r\n()[]{}\",'`;\\.:=+-*/%^#~<>&|!?" }, + { "type": "keyword", "attribute": "Reserved", "context": "#stay", "String": "reserved", "delimiters": " \t\r\n()[]{}\",'`;\\.:=+-*/%^#~<>&|!?" }, + { "type": "keyword", "attribute": "Module", "context": "#stay", "String": "modules", "delimiters": " \t\r\n()[]{}\",'`;\\.:=+-*/%^#~<>&|!?" }, + { "type": "keyword", "attribute": "Primitives", "context": "#stay", "String": "primitives", "delimiters": " \t\r\n()[]{}\",'`;\\.:=+-*/%^#~<>&|!?" }, + { "type": "keyword", "attribute": "DataType", "context": "#stay", "String": "types", "delimiters": " \t\r\n()[]{}\",'`;\\.:=+-*/%^#~<>&|!?" }, + { "type": "keyword", "attribute": "Built-in Objects", "context": "#stay", "String": "builtins", "delimiters": " \t\r\n()[]{}\",'`;\\.:=+-*/%^#~<>&|!?" }, + { "type": "keyword", "attribute": "Function Name", "context": "#stay", "String": "functions", "delimiters": " \t\r\n()[]{}\",'`;\\.:=+-*/%^#~<>&|!?" }, + { "type": "Hex", "attribute": "Hex", "context": "#stay" }, + { "type": "Float", "attribute": "Float", "context": "#stay" }, + { "type": "Decimal", "attribute": "Decimal", "context": "#stay" }, + { "type": "DetectChar", "attribute": "Symbol", "context": "member", "char": ".", "look-ahead": true }, + { "type": "Detect2Chars", "attribute": "Special Operators", "context": "#stay", "char": "=", "char1": ">" }, + { "type": "AnyChar", "attribute": "Symbol", "context": "#stay", "String": "+-*/%=<>!&|^~?:;" }, + { "type": "AnyChar", "attribute": "Normal", "context": "#stay", "String": "()[]{},." }, + { "type": "DetectIdentifier", "attribute": "Normal", "context": "#stay" } + ] + }, + "escape": { + "attribute": "Escape", + "line-end-context": "#pop", + "rules": [ + { "type": "AnyChar", "attribute": "Reserved Char. Escape", "context": "#pop", "String": "0bfnrtv\"'`\\/" }, + { "type": "DetectIdentifier", "attribute": "Escape", "context": "#pop" }, + { "type": "DetectSpaces", "attribute": "Escape", "context": "#pop" }, + { "type": "AnyChar", "attribute": "Escape", "context": "#pop", "String": "+-*/%=<>!&|^~?:;.,()[]{}#@$&" } + ] + }, + "member": { + "attribute": "Normal", + "line-end-context": "#pop", + "fallthrough-context": "#pop", + "rules": [ + { "type": "DetectSpaces", "attribute": "Normal", "context": "#stay" }, + { "type": "DetectChar", "attribute": "Symbol", "context": "#stay", "char": "." }, + { "type": "DetectChar", "attribute": "Private Member Operator", "context": "#stay", "char": "#" }, + { "type": "DetectIdentifier", "attribute": "Object Member", "context": "#pop" } + ] + }, + "function-name": { + "attribute": "Normal", + "line-end-context": "#pop", + "fallthrough-context": "#pop", + "rules": [ + { "type": "DetectSpaces", "attribute": "Normal", "context": "#stay" }, + { "type": "DetectIdentifier", "attribute": "Function Declaration", "context": "#pop" }, + { "type": "DetectChar", "attribute": "Private Member Operator", "context": "#stay", "char": "#" } + ] + } + } +} diff --git a/highlight/resources/syntax/vue.json b/highlight/resources/syntax/vue.json new file mode 100644 index 0000000..744ce8f --- /dev/null +++ b/highlight/resources/syntax/vue.json @@ -0,0 +1,203 @@ +{ + "metadata": { + "copyright": [ + "SPDX-FileCopyrightText: 2026 The Goldfish Scheme Authors", + "SPDX-FileCopyrightText: Vue syntax derived from vue.xml by James Zuccon (KDE syntax-highlighting)" + ], + "license": "SPDX-License-Identifier: MIT", + "name": "Vue" + }, + "name": "Vue", + "extensions": [ + "*.vue" + ], + "initial-context": "Normal", + "lists": {}, + "item-datas": { + "Normal": "Normal", + "Comment": "Comment", + "Doctype": "DataType", + "Tag": "Keyword", + "TagClose": "Keyword", + "AttributeName": "Attribute", + "Value": "String", + "Binding": "Function", + "Interpolation": "SpecialString", + "InterpolationSymbol": "Operator", + "EntityRef": "DecVal", + "Symbol": "Operator", + "Error": "Error" + }, + "contexts": { + "Normal": { + "attribute": "Normal", + "line-end-context": "#stay", + "rules": [ + { "type": "DetectSpaces", "attribute": "Normal", "context": "#stay" }, + { "type": "StringDetect", "attribute": "Comment", "context": "comment", "String": "" }, + { "type": "DetectSpaces", "attribute": "Comment", "context": "#stay" }, + { "type": "DetectIdentifier", "attribute": "Comment", "context": "#stay" } + ] + }, + "doctype": { + "attribute": "Doctype", + "line-end-context": "#pop", + "rules": [ + { "type": "DetectChar", "attribute": "Symbol", "context": "#pop", "char": ">" }, + { "type": "DetectSpaces", "attribute": "Doctype", "context": "#stay" }, + { "type": "DetectIdentifier", "attribute": "Doctype", "context": "#stay" } + ] + }, + "entity": { + "attribute": "EntityRef", + "line-end-context": "#pop", + "fallthrough-context": "#pop", + "rules": [ + { "type": "DetectChar", "attribute": "EntityRef", "context": "#pop", "char": ";" }, + { "type": "DetectIdentifier", "attribute": "EntityRef", "context": "#stay" }, + { "type": "AnyChar", "attribute": "EntityRef", "context": "#stay", "String": "0123456789#" } + ] + }, + "interp": { + "attribute": "Interpolation", + "line-end-context": "#stay", + "rules": [ + { "type": "StringDetect", "attribute": "InterpolationSymbol", "context": "#pop", "String": "}}" }, + { "type": "DetectSpaces", "attribute": "Interpolation", "context": "#stay" }, + { "type": "DetectIdentifier", "attribute": "Interpolation", "context": "#stay" }, + { "type": "AnyChar", "attribute": "Interpolation", "context": "#stay", "String": ".+-*/%=<>!&|^~?:;.,()[]'\"" } + ] + }, + "tag-open": { + "attribute": "Tag", + "line-end-context": "#stay", + "fallthrough-context": "#stay", + "rules": [ + { "type": "DetectChar", "attribute": "Symbol", "context": "#pop!tag-close", "char": "/" }, + { "type": "StringDetect", "attribute": "Tag", "context": "#pop!style-tag", "String": "style" }, + { "type": "StringDetect", "attribute": "Tag", "context": "#pop!script-tag", "String": "script" }, + { "type": "DetectIdentifier", "attribute": "Tag", "context": "#pop!tag-attrs" }, + { "type": "DetectChar", "attribute": "Symbol", "context": "#pop", "char": ">" } + ] + }, + "tag-close": { + "attribute": "TagClose", + "line-end-context": "#stay", + "fallthrough-context": "#stay", + "rules": [ + { "type": "StringDetect", "attribute": "TagClose", "context": "#pop!style-end", "String": "style" }, + { "type": "StringDetect", "attribute": "TagClose", "context": "#pop!script-end", "String": "script" }, + { "type": "DetectIdentifier", "attribute": "TagClose", "context": "#pop!tag-close-wait" }, + { "type": "DetectChar", "attribute": "Symbol", "context": "#pop", "char": ">" } + ] + }, + "tag-attrs": { + "attribute": "Normal", + "line-end-context": "#stay", + "rules": [ + { "type": "DetectSpaces", "attribute": "Normal", "context": "#stay" }, + { "type": "Detect2Chars", "attribute": "Symbol", "context": "#pop", "char": "/", "char1": ">" }, + { "type": "DetectChar", "attribute": "Symbol", "context": "#pop", "char": ">" }, + { "type": "DetectChar", "attribute": "Value", "context": "attr-value", "char": "\"" }, + { "type": "DetectChar", "attribute": "Value", "context": "attr-value-single", "char": "'" }, + { "type": "DetectChar", "attribute": "Binding", "context": "binding-name", "char": ":" }, + { "type": "DetectChar", "attribute": "Binding", "context": "binding-name", "char": "@" }, + { "type": "DetectChar", "attribute": "Binding", "context": "binding-name", "char": "#" }, + { "type": "DetectChar", "attribute": "Symbol", "context": "#stay", "char": "=" }, + { "type": "DetectIdentifier", "attribute": "AttributeName", "context": "#stay" } + ] + }, + "binding-name": { + "attribute": "Binding", + "line-end-context": "#pop", + "fallthrough-context": "#pop", + "rules": [ + { "type": "DetectIdentifier", "attribute": "Binding", "context": "#pop" }, + { "type": "DetectChar", "attribute": "Binding", "context": "#stay", "char": "-" }, + { "type": "DetectChar", "attribute": "Binding", "context": "#stay", "char": "." }, + { "type": "DetectChar", "attribute": "Binding", "context": "#stay", "char": "_" } + ] + }, + "tag-close-wait": { + "attribute": "Normal", + "line-end-context": "#stay", + "rules": [ + { "type": "DetectSpaces", "attribute": "Normal", "context": "#stay" }, + { "type": "DetectChar", "attribute": "Symbol", "context": "#pop", "char": ">" } + ] + }, + "attr-value": { + "attribute": "Value", + "line-end-context": "#pop", + "rules": [ + { "type": "DetectChar", "attribute": "Value", "context": "#pop", "char": "\"" } + ] + }, + "attr-value-single": { + "attribute": "Value", + "line-end-context": "#pop", + "rules": [ + { "type": "DetectChar", "attribute": "Value", "context": "#pop", "char": "'" } + ] + }, + "style-tag": { + "attribute": "Normal", + "line-end-context": "#stay", + "rules": [ + { "type": "DetectSpaces", "attribute": "Normal", "context": "#stay" }, + { "type": "DetectChar", "attribute": "Symbol", "context": "#pop!style-css", "char": ">" } + ] + }, + "style-css": { + "attribute": "Normal", + "line-end-context": "#stay", + "rules": [ + { "type": "StringDetect", "attribute": "TagClose", "context": "#pop!style-end", "String": "" } + ] + }, + "script-tag": { + "attribute": "Normal", + "line-end-context": "#stay", + "rules": [ + { "type": "DetectSpaces", "attribute": "Normal", "context": "#stay" }, + { "type": "DetectChar", "attribute": "Symbol", "context": "#pop!script-js", "char": ">" } + ] + }, + "script-js": { + "attribute": "Normal", + "line-end-context": "#stay", + "rules": [ + { "type": "StringDetect", "attribute": "TagClose", "context": "#pop!script-end", "String": "" } + ] + } + } +} diff --git a/highlight/resources/syntax/yaml.json b/highlight/resources/syntax/yaml.json new file mode 100644 index 0000000..abd139e --- /dev/null +++ b/highlight/resources/syntax/yaml.json @@ -0,0 +1,232 @@ +{ + "metadata": { + "copyright": [ + "SPDX-FileCopyrightText: 2026 The Goldfish Scheme Authors", + "SPDX-FileCopyrightText: YAML syntax derived from yaml.xml by Dr Orlovsky MA and Nibaldo González S. (KDE syntax-highlighting)" + ], + "license": "SPDX-License-Identifier: LGPL-2.0-or-later", + "name": "YAML" + }, + "name": "YAML", + "extensions": [ + "*.yaml", + "*.yml", + ".clang-format", + ".clang-tidy", + "metadata", + "*.ksy" + ], + "initial-context": "normal", + "lists": { + "booleans": [ + "true", "True", "TRUE", "false", "False", "FALSE", "yes", "Yes", + "YES", "no", "No", "NO", "on", "On", "ON", "off", "Off", "OFF", + "y", "Y", "n", "N" + ], + "nulls": [ + "null", "Null", "NULL", "~" + ] + }, + "item-datas": { + "Normal Text": "Attribute", + "Attribute": "Attribute", + "Comment": "Comment", + "End of Document": "Comment", + "Document Header": "Preprocessor", + "Tag": "Others", + "Alias": "Others", + "Reference": "Others", + "Key": "Function", + "Directive": "Preprocessor", + "Key Points Operator": "Keyword", + "Operator": "Keyword", + "String": "String", + "Escaped Character": "SpecialChar", + "Literal/Folded Operator": "Char", + "Null": "Char", + "Boolean": "Char", + "Integer": "DecVal", + "Float": "Float", + "Timestamp": "BaseN", + "Error": "Error" + }, + "contexts": { + "normal": { + "attribute": "Normal Text", + "line-end-context": "#stay", + "rules": [ + { "type": "DetectSpaces", "attribute": "Normal Text", "context": "#stay" }, + { "type": "DetectChar", "attribute": "Comment", "context": "comment", "char": "#" }, + { "type": "StringDetect", "attribute": "Document Header", "context": "#stay", "String": "---", "column": 0 }, + { "type": "StringDetect", "attribute": "End of Document", "context": "#stay", "String": "...", "column": 0 }, + { "type": "DetectChar", "attribute": "Directive", "context": "directive", "char": "%", "column": 0 }, + { "type": "StringDetect", "attribute": "Operator", "context": "#stay", "String": "- " }, + { "type": "StringDetect", "attribute": "Operator", "context": "#stay", "String": "? " }, + { "type": "DetectChar", "attribute": "Operator", "context": "list", "char": "[" }, + { "type": "DetectChar", "attribute": "Operator", "context": "hash", "char": "{" }, + { "type": "DetectChar", "attribute": "String", "context": "string-sq", "char": "'" }, + { "type": "DetectChar", "attribute": "String", "context": "string-dq", "char": "\"" }, + { "type": "AnyChar", "attribute": "Literal/Folded Operator", "context": "block-operator", "String": "|>" }, + { "type": "DetectChar", "attribute": "Tag", "context": "tag", "char": "!" }, + { "type": "DetectChar", "attribute": "Alias", "context": "alias", "char": "&" }, + { "type": "DetectChar", "attribute": "Reference", "context": "reference", "char": "*" }, + { "type": "DetectChar", "attribute": "Key Points Operator", "context": "key", "char": ":", "look-ahead": true }, + { "type": "DetectIdentifier", "attribute": "Normal Text", "context": "key-plain" } + ] + }, + "key-plain": { + "attribute": "Key", + "line-end-context": "#stay", + "rules": [ + { "type": "DetectSpaces", "attribute": "Normal Text", "context": "#stay" }, + { "type": "DetectChar", "attribute": "Comment", "context": "comment", "char": "#" }, + { "type": "StringDetect", "attribute": "Key Points Operator", "context": "value", "String": ": " }, + { "type": "DetectChar", "attribute": "Key Points Operator", "context": "value", "char": ":", "look-ahead": true }, + { "type": "DetectIdentifier", "attribute": "Key", "context": "#stay" }, + { "type": "AnyChar", "attribute": "Key", "context": "#stay", "String": "._-/" } + ] + }, + "key": { + "attribute": "Key Points Operator", + "line-end-context": "#pop", + "fallthrough-context": "value", + "rules": [ + { "type": "DetectSpaces", "attribute": "Normal Text", "context": "#stay" }, + { "type": "StringDetect", "attribute": "Key Points Operator", "context": "value", "String": ": " } + ] + }, + "value": { + "attribute": "Attribute", + "line-end-context": "#stay", + "rules": [ + { "type": "DetectSpaces", "attribute": "Normal Text", "context": "#stay" }, + { "type": "DetectChar", "attribute": "Comment", "context": "comment", "char": "#" }, + { "type": "DetectChar", "attribute": "String", "context": "string-sq", "char": "'" }, + { "type": "DetectChar", "attribute": "String", "context": "string-dq", "char": "\"" }, + { "type": "DetectChar", "attribute": "Operator", "context": "list", "char": "[" }, + { "type": "DetectChar", "attribute": "Operator", "context": "hash", "char": "{" }, + { "type": "AnyChar", "attribute": "Literal/Folded Operator", "context": "block-operator", "String": "|>" }, + { "type": "DetectChar", "attribute": "Alias", "context": "alias", "char": "&" }, + { "type": "DetectChar", "attribute": "Reference", "context": "reference", "char": "*" }, + { "type": "DetectChar", "attribute": "Tag", "context": "tag", "char": "!" }, + { "type": "Hex", "attribute": "Integer", "context": "#stay" }, + { "type": "Float", "attribute": "Float", "context": "#stay" }, + { "type": "Int", "attribute": "Integer", "context": "#stay" }, + { "type": "keyword", "attribute": "Boolean", "context": "#stay", "String": "booleans", "delimiters": " \t\r\n,[]{}:#\"" }, + { "type": "keyword", "attribute": "Null", "context": "#stay", "String": "nulls", "delimiters": " \t\r\n,[]{}:#\"" }, + { "type": "StringDetect", "attribute": "Float", "context": "#stay", "String": ".inf" }, + { "type": "StringDetect", "attribute": "Float", "context": "#stay", "String": ".Inf" }, + { "type": "StringDetect", "attribute": "Float", "context": "#stay", "String": ".INF" }, + { "type": "StringDetect", "attribute": "Float", "context": "#stay", "String": ".nan" }, + { "type": "StringDetect", "attribute": "Float", "context": "#stay", "String": ".NaN" }, + { "type": "StringDetect", "attribute": "Float", "context": "#stay", "String": ".NAN" }, + { "type": "DetectIdentifier", "attribute": "Attribute", "context": "#stay" } + ] + }, + "list": { + "attribute": "Normal Text", + "line-end-context": "#stay", + "rules": [ + { "type": "DetectChar", "attribute": "Operator", "context": "#pop", "char": "]" }, + { "type": "DetectSpaces", "attribute": "Normal Text", "context": "#stay" }, + { "type": "DetectChar", "attribute": "Comment", "context": "comment", "char": "#" }, + { "type": "DetectChar", "attribute": "String", "context": "string-sq", "char": "'" }, + { "type": "DetectChar", "attribute": "String", "context": "string-dq", "char": "\"" }, + { "type": "Float", "attribute": "Float", "context": "#stay" }, + { "type": "Int", "attribute": "Integer", "context": "#stay" }, + { "type": "keyword", "attribute": "Boolean", "context": "#stay", "String": "booleans", "delimiters": " \t\r\n,[]{}:#\"" }, + { "type": "keyword", "attribute": "Null", "context": "#stay", "String": "nulls", "delimiters": " \t\r\n,[]{}:#\"" }, + { "type": "AnyChar", "attribute": "Operator", "context": "#stay", "String": ",[]" }, + { "type": "DetectIdentifier", "attribute": "Attribute", "context": "#stay" } + ] + }, + "hash": { + "attribute": "Normal Text", + "line-end-context": "#stay", + "rules": [ + { "type": "DetectChar", "attribute": "Operator", "context": "#pop", "char": "}" }, + { "type": "DetectSpaces", "attribute": "Normal Text", "context": "#stay" }, + { "type": "DetectChar", "attribute": "Comment", "context": "comment", "char": "#" }, + { "type": "DetectChar", "attribute": "String", "context": "string-sq", "char": "'" }, + { "type": "DetectChar", "attribute": "String", "context": "string-dq", "char": "\"" }, + { "type": "Float", "attribute": "Float", "context": "#stay" }, + { "type": "Int", "attribute": "Integer", "context": "#stay" }, + { "type": "keyword", "attribute": "Boolean", "context": "#stay", "String": "booleans", "delimiters": " \t\r\n,[]{}:#\"" }, + { "type": "keyword", "attribute": "Null", "context": "#stay", "String": "nulls", "delimiters": " \t\r\n,[]{}:#\"" }, + { "type": "AnyChar", "attribute": "Operator", "context": "#stay", "String": ",{}" }, + { "type": "DetectIdentifier", "attribute": "Attribute", "context": "#stay" } + ] + }, + "string-sq": { + "attribute": "String", + "line-end-context": "#pop", + "rules": [ + { "type": "DetectChar", "attribute": "String", "context": "#pop", "char": "'" }, + { "type": "Detect2Chars", "attribute": "String", "context": "#stay", "char": "'", "char1": "'" } + ] + }, + "string-dq": { + "attribute": "String", + "line-end-context": "#pop", + "rules": [ + { "type": "DetectChar", "attribute": "String", "context": "#pop", "char": "\"" }, + { "type": "Detect2Chars", "attribute": "Escaped Character", "context": "#stay", "char": "\\", "char1": "\\" }, + { "type": "Detect2Chars", "attribute": "Escaped Character", "context": "#stay", "char": "\\", "char1": "\"" }, + { "type": "Detect2Chars", "attribute": "Escaped Character", "context": "#stay", "char": "\\", "char1": "n" }, + { "type": "Detect2Chars", "attribute": "Escaped Character", "context": "#stay", "char": "\\", "char1": "t" }, + { "type": "Detect2Chars", "attribute": "Escaped Character", "context": "#stay", "char": "\\", "char1": "r" }, + { "type": "Detect2Chars", "attribute": "Escaped Character", "context": "#stay", "char": "\\", "char1": "0" } + ] + }, + "block-operator": { + "attribute": "Literal/Folded Operator", + "line-end-context": "#pop", + "rules": [ + { "type": "DetectChar", "attribute": "Literal/Folded Operator", "context": "#stay", "char": "|" }, + { "type": "DetectChar", "attribute": "Literal/Folded Operator", "context": "#stay", "char": ">" }, + { "type": "DetectChar", "attribute": "Literal/Folded Operator", "context": "#stay", "char": "-" }, + { "type": "DetectChar", "attribute": "Literal/Folded Operator", "context": "#stay", "char": "+" }, + { "type": "AnyChar", "attribute": "Literal/Folded Operator", "context": "#stay", "String": "0123456789" } + ] + }, + "comment": { + "attribute": "Comment", + "line-end-context": "#pop", + "rules": [ + { "type": "DetectSpaces", "attribute": "Comment", "context": "#stay" }, + { "type": "DetectIdentifier", "attribute": "Comment", "context": "#stay" }, + { "type": "AnyChar", "attribute": "Comment", "context": "#stay", "String": "+-*/%=<>!&|^~?:;.,()[]{}#@$'\"\\`" } + ] + }, + "directive": { + "attribute": "Directive", + "line-end-context": "#pop", + "rules": [ + { "type": "DetectIdentifier", "attribute": "Directive", "context": "#stay" }, + { "type": "AnyChar", "attribute": "Directive", "context": "#stay", "String": " .:/" } + ] + }, + "tag": { + "attribute": "Tag", + "line-end-context": "#pop", + "rules": [ + { "type": "DetectSpaces", "attribute": "Tag", "context": "#stay" }, + { "type": "DetectIdentifier", "attribute": "Tag", "context": "#stay" } + ] + }, + "alias": { + "attribute": "Alias", + "line-end-context": "#pop", + "rules": [ + { "type": "DetectIdentifier", "attribute": "Alias", "context": "#stay" } + ] + }, + "reference": { + "attribute": "Reference", + "line-end-context": "#pop", + "rules": [ + { "type": "DetectIdentifier", "attribute": "Reference", "context": "#stay" } + ] + } + } +} diff --git a/highlight/resources/themes/breeze-dark.theme b/highlight/resources/themes/breeze-dark.theme new file mode 100644 index 0000000..a6206b7 --- /dev/null +++ b/highlight/resources/themes/breeze-dark.theme @@ -0,0 +1,239 @@ +{ + "metadata" : { + "copyright": [ + "SPDX-FileCopyrightText: 2016 Volker Krause ", + "SPDX-FileCopyrightText: 2016 Dominik Haumann " + ], + "license": "SPDX-License-Identifier: MIT", + "revision" : 12, + "name" : "Breeze Dark" + }, + "text-styles": { + "Normal" : { + "text-color" : "#cfcfc2", + "selected-text-color" : "#cfcfc2", + "bold" : false, + "italic" : false, + "underline" : false, + "strike-through" : false + }, + "Keyword" : { + "text-color" : "#cfcfc2", + "selected-text-color" : "#cfcfc2", + "bold" : true + }, + "Function" : { + "text-color" : "#8e44ad", + "selected-text-color" : "#af81ff" + }, + "Variable" : { + "text-color" : "#27aeae", + "selected-text-color" : "#27aeae" + }, + "ControlFlow" : { + "text-color" : "#fdbc4b", + "selected-text-color" : "#fdbc4b", + "bold" : true + }, + "Operator" : { + "text-color" : "#3f8058", + "selected-text-color" : "#54aa75" + }, + "BuiltIn" : { + "text-color" : "#609ca0", + "selected-text-color" : "#75bfc4" + }, + "Extension" : { + "text-color" : "#0099ff", + "selected-text-color" : "#bdc3c7", + "bold" : true + }, + "Preprocessor" : { + "text-color" : "#27ae60", + "selected-text-color" : "#27ae60" + }, + "Attribute" : { + "text-color" : "#2980b9", + "selected-text-color" : "#fdbc4b" + }, + "Char" : { + "text-color" : "#3daee9", + "selected-text-color" : "#3daee9" + }, + "SpecialChar" : { + "text-color" : "#3daee9", + "selected-text-color" : "#3daee9" + }, + "String" : { + "text-color" : "#f44f4f", + "selected-text-color" : "#f44f4f" + }, + "VerbatimString" : { + "text-color" : "#da4453", + "selected-text-color" : "#da4453" + }, + "SpecialString" : { + "text-color" : "#da4453", + "selected-text-color" : "#da4453" + }, + "Import" : { + "text-color" : "#27ae60", + "selected-text-color" : "#27ae60" + }, + "DataType" : { + "text-color" : "#2980b9", + "selected-text-color" : "#fdbc4b" + }, + "DecVal" : { + "text-color" : "#f67400", + "selected-text-color" : "#f67400" + }, + "BaseN" : { + "text-color" : "#f67400", + "selected-text-color" : "#f67400" + }, + "Float" : { + "text-color" : "#f67400", + "selected-text-color" : "#f67400" + }, + "Constant" : { + "text-color" : "#27aeae", + "selected-text-color" : "#27aeae", + "bold" : true + }, + "Comment" : { + "text-color" : "#7a7c7d", + "selected-text-color" : "#808080" + }, + "Documentation" : { + "text-color" : "#a43340", + "selected-text-color" : "#da4453" + }, + "Annotation" : { + "text-color" : "#3f8058", + "selected-text-color" : "#54aa75" + }, + "CommentVar" : { + "text-color" : "#7f8c8d", + "selected-text-color" : "#94a3a4" + }, + "RegionMarker" : { + "text-color" : "#2980b9", + "selected-text-color" : "#3daee9", + "background-color" : "#153042" + }, + "Information" : { + "text-color" : "#c45b00", + "selected-text-color" : "#e46700" + }, + "Warning" : { + "text-color" : "#da4453", + "selected-text-color" : "#da4453" + }, + "Alert" : { + "text-color" : "#95da4c", + "selected-text-color" : "#95da4c", + "background-color" : "#4d1f24", + "bold" : true + }, + "Error" : { + "text-color" : "#da4453", + "selected-text-color" : "#da4453", + "underline" : true + }, + "Others" : { + "text-color" : "#27ae60", + "selected-text-color" : "#27ae60" + } + }, + "custom-styles": { + "CSV": { + "Column 1": { + "selected-text-color": "#3daee9", + "text-color": "#3daee9" + }, + "Column 4": { + "selected-text-color": "#af81ff", + "text-color": "#8e44ad" + }, + "Column 5": { + "selected-text-color": "#cfcfc2", + "text-color": "#cfcfc2" + }, + "Column 6": { + "selected-text-color": "#3daee9", + "text-color": "#3daee9" + }, + "Column 7": { + "selected-text-color": "#f44f4f", + "text-color": "#f44f4f" + }, + "Column 8": { + "selected-text-color": "#75bfc4", + "text-color": "#609ca0" + }, + "Column 9": { + "selected-text-color": "#af81ff", + "text-color": "#8e44ad" + }, + "Column 1 Separator": { + "selected-text-color": "#3daee9", + "text-color": "#3daee9" + }, + "Column 4 Separator": { + "selected-text-color": "#af81ff", + "text-color": "#8e44ad" + }, + "Column 5 Separator": { + "selected-text-color": "#cfcfc2", + "text-color": "#cfcfc2" + }, + "Column 6 Separator": { + "selected-text-color": "#3daee9", + "text-color": "#3daee9" + }, + "Column 7 Separator": { + "selected-text-color": "#f44f4f", + "text-color": "#f44f4f" + }, + "Column 8 Separator": { + "selected-text-color": "#75bfc4", + "text-color": "#609ca0" + }, + "Column 9 Separator": { + "selected-text-color": "#af81ff", + "text-color": "#8e44ad" + } + } + }, + "editor-colors": { + "BackgroundColor" : "#232629", + "CodeFolding" : "#224e65", + "BracketMatching" : "#000000", + "CurrentLine" : "#2A2E32", + "IconBorder" : "#31363b", + "IndentationLine" : "#3a3f44", + "LineNumbers" : "#7a7c7d", + "CurrentLineNumber" : "#a5a6a8", + "MarkBookmark" : "#0404bf", + "MarkBreakpointActive" : "#8b0607", + "MarkBreakpointReached" : "#6d6e07", + "MarkBreakpointDisabled" : "#820683", + "MarkExecution" : "#4d4e50", + "MarkWarning" : "#f67400", + "MarkError" : "#da4453", + "ModifiedLines" : "#c04900", + "ReplaceHighlight" : "#808021", + "SavedLines" : "#1c8042", + "SearchHighlight" : "#414857", + "TextSelection" : "#2d5c76", + "Separator" : "#3f4347", + "SpellChecking" : "#c0392b", + "TabMarker" : "#4d4d4d", + "TemplateBackground" : "#31363b", + "TemplatePlaceholder" : "#123723", + "TemplateFocusedPlaceholder" : "#123723", + "TemplateReadOnlyPlaceholder" : "#4d1f24", + "WordWrapMarker" : "#3a3f44" + } +} diff --git a/highlight/tests/liii/highlight/code-block/README.md b/highlight/tests/liii/highlight/code-block/README.md new file mode 100644 index 0000000..d1a4468 --- /dev/null +++ b/highlight/tests/liii/highlight/code-block/README.md @@ -0,0 +1,24 @@ +# (liii highlight code-block) 模块函数分类索引 + +`(liii highlight code-block)` 提供 Markdown 围栏代码块的纯解析工具与 IncludeRules 子定义缓存,不触及高亮状态机与上下文栈。从 `(liii highlight highlighter)` 拆出。 + +## 查看函数文档 + +使用以下命令查看函数文档和测试用例: +```bash +gf doc liii/highlight/code-block "函数名" +``` + +## 函数分类索引 + +### 一、围栏代码块识别 +- `fenced-code-frame?` - 判断栈帧是否为围栏代码块帧 +- `%parse-code-block-open` - 解析围栏代码块起始行 +- `%code-block-close-line?` - 判断当前行是否为围栏代码块闭合行 +- `%code-block-open-info` - 提取围栏代码块起始信息串 + +### 二、语言与子定义 +- `%normalize-code-lang` - 归一化围栏代码块语言标识 +- `%resolve-sub-definition` - 按语言名解析并缓存子语法定义 +- `%extract-first-word` - 提取字符串首个空白分隔词 +- `%rest-all-spaces?` - 判断从指定位置到行尾是否全为空格/Tab diff --git a/highlight/tests/liii/highlight/code-block/fenced-code-frame-p-test.scm b/highlight/tests/liii/highlight/code-block/fenced-code-frame-p-test.scm new file mode 100644 index 0000000..05aee0e --- /dev/null +++ b/highlight/tests/liii/highlight/code-block/fenced-code-frame-p-test.scm @@ -0,0 +1,33 @@ +;; fenced-code-frame? +;; 判断栈帧是否为 Markdown 围栏代码块帧。 +;; +;; 语法 +;; ---- +;; (fenced-code-frame? frame) +;; +;; 参数 +;; ---- +;; frame : any +;; 栈顶帧对象,围栏代码块帧形如 '(fenced-code fence-char fence-len lang-name sub-state)。 +;; +;; 返回值 +;; ---- +;; boolean +;; 为围栏代码块帧返回 #t,否则 #f。 + +(import (scheme base) (liii check) (liii highlight code-block)) + +(check-set-mode! 'report-failed) + +;; 围栏代码块帧:car 为 'fenced-code +(check-true (fenced-code-frame? (list 'fenced-code #\` 3 "scheme" #f))) +(check-true (fenced-code-frame? (list 'fenced-code #\~ 4 #f #f))) + +;; 非围栏代码块帧 +(check-false (fenced-code-frame? (list 'include #f '("Level0") "host" #f))) +(check-false (fenced-code-frame? '("string" "Level0"))) +(check-false (fenced-code-frame? "string")) +(check-false (fenced-code-frame? '())) +(check-false (fenced-code-frame? #f)) + +(check-report) diff --git a/highlight/tests/liii/highlight/context-stack/README.md b/highlight/tests/liii/highlight/context-stack/README.md new file mode 100644 index 0000000..bb2dd10 --- /dev/null +++ b/highlight/tests/liii/highlight/context-stack/README.md @@ -0,0 +1,21 @@ +# (liii highlight context-stack) 模块函数分类索引 + +`(liii highlight context-stack)` 提供高亮上下文栈的切换与栈顶查询工具,操作纯上下文名栈与 IncludeRules 帧,不触及高亮状态机记录。从 `(liii highlight highlighter)` 拆出。 + +## 查看函数文档 + +使用以下命令查看函数文档和测试用例: +```bash +gf doc liii/highlight/context-stack "函数名" +``` + +## 函数分类索引 + +### 一、上下文切换 +- `apply-context-switch` - 按切换指令操作栈(含 IncludeRules 帧) +- `apply-context-switch-simple` - 对纯上下文名栈应用切换 +- `apply-context-switch-host` - 宿主规则命中时丢弃 IncludeRules 帧并切换 + +### 二、栈顶查询 +- `%top-context` - 取栈顶上下文与对应定义(含 IncludeRules 帧) +- `%include-frame?` - 判断栈顶是否为 IncludeRules 帧 diff --git a/highlight/tests/liii/highlight/context-stack/apply-context-switch-host-test.scm b/highlight/tests/liii/highlight/context-stack/apply-context-switch-host-test.scm new file mode 100644 index 0000000..f22ae37 --- /dev/null +++ b/highlight/tests/liii/highlight/context-stack/apply-context-switch-host-test.scm @@ -0,0 +1,61 @@ +;; apply-context-switch-host +;; 宿主规则命中时使用:丢弃 IncludeRules 帧后对外层栈应用切换。 +;; +;; 语法 +;; ---- +;; (apply-context-switch-host stack target def) +;; +;; 参数 +;; ---- +;; stack : list +;; 上下文栈,栈顶可能是 IncludeRules 帧或普通上下文名。 +;; +;; target : list +;; 切换指令:'(stay) | '(push "Name") | '(pop N) | '(pop N "Target")。 +;; +;; def : +;; 语法定义对象,用于在栈弹空时回退到初始上下文。 +;; +;; 返回值 +;; ---- +;; list +;; 切换后的新上下文栈。 + +(import (scheme base) + (liii check) + (liii highlight definition) + (liii highlight context-stack) +) ;import + +(check-set-mode! 'report-failed) + +(let ((def (make-definition "Demo" '("*.demo") "Level0" '() '()))) + ;; 栈顶非 IncludeRules 帧:等同 simple 切换 + (check (apply-context-switch-host '("string" "Level0") '(pop 1) def) + => + '("Level0") + ) ;check + (check (apply-context-switch-host '("Level0") '(push "tag") def) + => + '("tag" "Level0") + ) ;check + (check (apply-context-switch-host '("Level0") '(stay) def) => '("Level0")) + + ;; 栈顶为 IncludeRules 帧:丢弃帧后对外层栈应用切换 + (let ((frame (list 'include #f '("Sub0") "host" #f))) + (check (apply-context-switch-host (list frame "Level0") '(stay) def) + => + '("Level0") + ) ;check + (check (apply-context-switch-host (list frame "Level0") '(push "tag") def) + => + '("tag" "Level0") + ) ;check + (check (apply-context-switch-host (list frame "string" "Level0") '(pop 1) def) + => + '("Level0") + ) ;check + ) ;let +) ;let + +(check-report) diff --git a/highlight/tests/liii/highlight/context-stack/apply-context-switch-simple-test.scm b/highlight/tests/liii/highlight/context-stack/apply-context-switch-simple-test.scm new file mode 100644 index 0000000..79d1b4f --- /dev/null +++ b/highlight/tests/liii/highlight/context-stack/apply-context-switch-simple-test.scm @@ -0,0 +1,63 @@ +;; apply-context-switch-simple +;; 对纯上下文名字符串栈应用切换指令(不处理 IncludeRules 帧)。 +;; +;; 语法 +;; ---- +;; (apply-context-switch-simple stack target def) +;; +;; 参数 +;; ---- +;; stack : list +;; 纯上下文名字符串栈,栈顶在 car。 +;; +;; target : list +;; 切换指令:'(stay) | '(push "Name") | '(pop N) | '(pop N "Target")。 +;; +;; def : +;; 语法定义对象,用于在栈弹空时回退到初始上下文。 +;; +;; 返回值 +;; ---- +;; list +;; 切换后的新上下文栈。 + +(import (scheme base) + (liii check) + (liii highlight definition) + (liii highlight context-stack) +) ;import + +(check-set-mode! 'report-failed) + +(let ((def (make-definition "Demo" '("*.demo") "Level0" '() '()))) + ;; stay:栈不变 + (check (apply-context-switch-simple '("Level0") '(stay) def) => '("Level0")) + ;; push:压入新上下文 + (check (apply-context-switch-simple '("Level0") '(push "string") def) + => + '("string" "Level0") + ) ;check + ;; pop 1 + (check (apply-context-switch-simple '("string" "Level0") '(pop 1) def) + => + '("Level0") + ) ;check + ;; pop 2 + (check (apply-context-switch-simple '("a" "b" "Level0") '(pop 2) def) + => + '("Level0") + ) ;check + ;; pop 带目标名 + (check (apply-context-switch-simple '("string" "Level0") '(pop 1 "Level0") def) + => + '("Level0" "Level0") + ) ;check + ;; pop 弹到空:至少保留底层初始上下文 + (check (apply-context-switch-simple '("Level0") '(pop 1) def) => '("Level0")) + (check (apply-context-switch-simple '("string" "Level0") '(pop 5) def) + => + '("Level0") + ) ;check +) ;let + +(check-report) diff --git a/highlight/tests/liii/highlight/context-stack/apply-context-switch-test.scm b/highlight/tests/liii/highlight/context-stack/apply-context-switch-test.scm new file mode 100644 index 0000000..ea0e326 --- /dev/null +++ b/highlight/tests/liii/highlight/context-stack/apply-context-switch-test.scm @@ -0,0 +1,72 @@ +;; apply-context-switch +;; 按切换指令操作上下文栈;栈顶为 IncludeRules 帧时对内部栈应用切换。 +;; +;; 语法 +;; ---- +;; (apply-context-switch stack target def) +;; +;; 参数 +;; ---- +;; stack : list +;; 上下文栈,栈顶在 car;元素可为上下文名字符串或 IncludeRules 帧。 +;; +;; target : list +;; 切换指令:'(stay) | '(push "Name") | '(pop N) | '(pop N "Target")。 +;; +;; def : +;; 语法定义对象,用于在栈弹空时回退到初始上下文。 +;; +;; 返回值 +;; ---- +;; list +;; 切换后的新上下文栈。 + +(import (scheme base) + (liii check) + (liii highlight definition) + (liii highlight context-stack) +) ;import + +(check-set-mode! 'report-failed) + +(let ((def (make-definition "Demo" '("*.demo") "Level0" '() '()))) + ;; stay:栈不变 + (check (apply-context-switch '("Level0") '(stay) def) => '("Level0")) + ;; push:压入新上下文 + (check (apply-context-switch '("Level0") '(push "string") def) + => + '("string" "Level0") + ) ;check + ;; pop:弹出栈顶 + (check (apply-context-switch '("string" "Level0") '(pop 1) def) => '("Level0")) + ;; pop 2 + (check (apply-context-switch '("a" "b" "Level0") '(pop 2) def) => '("Level0")) + ;; pop 带目标名:弹出后压入目标 + (check (apply-context-switch '("string" "Level0") '(pop 1 "Level0") def) + => + '("Level0" "Level0") + ) ;check + ;; pop 弹到空:至少保留底层初始上下文 + (check (apply-context-switch '("Level0") '(pop 1) def) => '("Level0")) + (check (apply-context-switch '("string" "Level0") '(pop 5) def) => '("Level0")) +) ;let + +;; IncludeRules 帧:对内部栈应用切换 +(let ((def (make-definition "Demo" '("*.demo") "Level0" '() '()))) + (let ((sub-def (make-definition "Sub" '() "Sub0" '() '())) + (frame (list 'include #f '("Sub0") "host" #f)) + ) ; + ;; stay 不变 + (check (apply-context-switch (list frame "Level0") '(stay) def) + => + (list (list 'include #f '("Sub0") "host" #f) "Level0") + ) ;check + ;; push 进入内部栈 + (check (apply-context-switch (list frame "Level0") '(push "Sub1") def) + => + (list (list 'include #f '("Sub1" "Sub0") "host" #f) "Level0") + ) ;check + ) ;let +) ;let + +(check-report) diff --git a/highlight/tests/liii/highlight/definition/README.md b/highlight/tests/liii/highlight/definition/README.md new file mode 100644 index 0000000..7d52a01 --- /dev/null +++ b/highlight/tests/liii/highlight/definition/README.md @@ -0,0 +1,37 @@ +# (liii highlight definition) 模块函数分类索引 + +`(liii highlight definition)` 提供了语法定义模型及其解析加载能力。 + +## 查看函数文档 + +使用以下命令查看函数文档和测试用例: +```bash +gf doc liii/highlight/definition "函数名" +``` + +## 函数分类索引 + +### 一、上下文定义 +- `make-context-def` - 创建上下文定义对象 +- `context-def?` - 判断对象是否为上下文定义 +- `context-def-name` - 获取上下文定义的名称 +- `context-def-attribute` - 获取上下文默认应用属性 +- `context-def-line-end-context` - 获取行尾跳转目标上下文 +- `context-def-fallthrough-context` - 获取未匹配时跳转目标上下文 +- `context-def-rules` - 获取上下文规则列表 + +### 二、语法定义 +- `make-definition` - 创建语法定义对象 +- `definition?` - 判断对象是否为语法定义 +- `definition-name` - 获取语法定义的语言名称 +- `definition-extensions` - 获取语法定义匹配的文件后缀列表 +- `definition-contexts` - 获取所有上下文定义列表 +- `definition-item-datas` - 获取所有 itemData 映射表 +- `definition-initial-context-name` - 获取初始上下文名称 +- `definition-find-context` - 按名称查找上下文定义 +- `definition-item-data-def-style` - 查找 itemData 的默认样式名 + +### 三、定义加载与解析 +- `parse-definition-json` - 从 JSON 对象解析整套语法定义 +- `load-syntax-definition` - 根据语言名称从 highlight/resources/syntax/*.json 文件加载语法定义 +- `load-definition-for-file` - 根据文件名自动查找并加载匹配的语法定义 diff --git a/highlight/tests/liii/highlight/definition/context-def-attribute-test.scm b/highlight/tests/liii/highlight/definition/context-def-attribute-test.scm new file mode 100644 index 0000000..6387425 --- /dev/null +++ b/highlight/tests/liii/highlight/definition/context-def-attribute-test.scm @@ -0,0 +1,26 @@ +;; context-def-attribute +;; 读取上下文定义的默认 itemData 名称。 +;; +;; 语法 +;; ---- +;; (context-def-attribute c) +;; +;; 参数 +;; ---- +;; c : context-def? +;; 上下文定义对象。 +;; +;; 返回值 +;; ---- +;; string +;; 默认 itemData 名称。 + +(import (scheme base) (liii check) (liii highlight definition)) + +(check-set-mode! 'report-failed) + +(check (context-def-attribute (make-context-def "x")) => "Normal") +(check (context-def-attribute (make-context-def "x" "Comment")) => "Comment") +(check (context-def-attribute (make-context-def "x" "String")) => "String") + +(check-report) diff --git a/highlight/tests/liii/highlight/definition/context-def-fallthrough-context-test.scm b/highlight/tests/liii/highlight/definition/context-def-fallthrough-context-test.scm new file mode 100644 index 0000000..483bb46 --- /dev/null +++ b/highlight/tests/liii/highlight/definition/context-def-fallthrough-context-test.scm @@ -0,0 +1,29 @@ +;; context-def-fallthrough-context +;; 读取上下文定义的 fallthrough 切换指令。 +;; +;; 语法 +;; ---- +;; (context-def-fallthrough-context c) +;; +;; 参数 +;; ---- +;; c : context-def? +;; 上下文定义对象。 +;; +;; 返回值 +;; ---- +;; list 或 #f +;; 无规则匹配时的切换指令;无则为 #f。 + +(import (scheme base) (liii check) (liii highlight definition)) + +(check-set-mode! 'report-failed) + +(check (context-def-fallthrough-context (make-context-def "x")) => #f) +(check (context-def-fallthrough-context (make-context-def "x" "Normal" '(stay) '(push "Other")) + ) ;context-def-fallthrough-context + => + '(push "Other") +) ;check + +(check-report) diff --git a/highlight/tests/liii/highlight/definition/context-def-line-end-context-test.scm b/highlight/tests/liii/highlight/definition/context-def-line-end-context-test.scm new file mode 100644 index 0000000..9afa7a4 --- /dev/null +++ b/highlight/tests/liii/highlight/definition/context-def-line-end-context-test.scm @@ -0,0 +1,33 @@ +;; context-def-line-end-context +;; 读取上下文定义的行尾切换指令。 +;; +;; 语法 +;; ---- +;; (context-def-line-end-context c) +;; +;; 参数 +;; ---- +;; c : context-def? +;; 上下文定义对象。 +;; +;; 返回值 +;; ---- +;; list +;; 行尾切换指令,如 '(stay)、'(pop 1)。 + +(import (scheme base) (liii check) (liii highlight definition)) + +(check-set-mode! 'report-failed) + +(check (context-def-line-end-context (make-context-def "x")) => '(stay)) +(check (context-def-line-end-context (make-context-def "x" "Normal" '(pop 1))) + => + '(pop 1) +) ;check +(check (context-def-line-end-context (make-context-def "x" "Normal" '(pop 2 + "Target"))) + => + '(pop 2 "Target") +) ;check + +(check-report) diff --git a/highlight/tests/liii/highlight/definition/context-def-name-test.scm b/highlight/tests/liii/highlight/definition/context-def-name-test.scm new file mode 100644 index 0000000..3d72e5a --- /dev/null +++ b/highlight/tests/liii/highlight/definition/context-def-name-test.scm @@ -0,0 +1,25 @@ +;; context-def-name +;; 读取上下文定义的名称。 +;; +;; 语法 +;; ---- +;; (context-def-name c) +;; +;; 参数 +;; ---- +;; c : context-def? +;; 上下文定义对象。 +;; +;; 返回值 +;; ---- +;; string +;; 上下文名称。 + +(import (scheme base) (liii check) (liii highlight definition)) + +(check-set-mode! 'report-failed) + +(check (context-def-name (make-context-def "Level0")) => "Level0") +(check (context-def-name (make-context-def "comment")) => "comment") + +(check-report) diff --git a/highlight/tests/liii/highlight/definition/context-def-p-test.scm b/highlight/tests/liii/highlight/definition/context-def-p-test.scm new file mode 100644 index 0000000..6cb0083 --- /dev/null +++ b/highlight/tests/liii/highlight/definition/context-def-p-test.scm @@ -0,0 +1,27 @@ +;; context-def? +;; 判断对象是否为上下文定义。 +;; +;; 语法 +;; ---- +;; (context-def? obj) +;; +;; 参数 +;; ---- +;; obj : any +;; 待判断的对象。 +;; +;; 返回值 +;; ---- +;; boolean +;; 是上下文定义返回 #t,否则 #f。 + +(import (scheme base) (liii check) (liii highlight definition)) + +(check-set-mode! 'report-failed) + +(check-true (context-def? (make-context-def "Level0"))) +(check-false (context-def? "Level0")) +(check-false (context-def? '("Level0"))) +(check-false (context-def? #f)) + +(check-report) diff --git a/highlight/tests/liii/highlight/definition/context-def-rules-test.scm b/highlight/tests/liii/highlight/definition/context-def-rules-test.scm new file mode 100644 index 0000000..d0c926b --- /dev/null +++ b/highlight/tests/liii/highlight/definition/context-def-rules-test.scm @@ -0,0 +1,43 @@ +;; context-def-rules +;; 读取上下文定义的规则列表。 +;; +;; 语法 +;; ---- +;; (context-def-rules c) +;; +;; 参数 +;; ---- +;; c : context-def? +;; 上下文定义对象。 +;; +;; 返回值 +;; ---- +;; list +;; 规则对象列表。 + +(import (scheme base) + (liii check) + (liii highlight rule) + (liii highlight definition) +) ;import + +(check-set-mode! 'report-failed) + +(check (context-def-rules (make-context-def "x")) => '()) + +(let ((rules (list (make-rule 'detect-spaces "Normal" '(stay) #t) + (make-rule 'detect-char "Comment" '(stay) #\;) + ) ;list + ) ;rules + ) ; + (check + (= + (length (context-def-rules (make-context-def "x" "Normal" '(stay) #f rules))) + 2 + ) ;= + => + #t + ) ;check +) ;let + +(check-report) diff --git a/highlight/tests/liii/highlight/definition/definition-contexts-test.scm b/highlight/tests/liii/highlight/definition/definition-contexts-test.scm new file mode 100644 index 0000000..28f0112 --- /dev/null +++ b/highlight/tests/liii/highlight/definition/definition-contexts-test.scm @@ -0,0 +1,40 @@ +;; definition-contexts +;; 读取语法定义的上下文列表。 +;; +;; 语法 +;; ---- +;; (definition-contexts def) +;; +;; 参数 +;; ---- +;; def : definition? +;; 语法定义对象。 +;; +;; 返回值 +;; ---- +;; list +;; alist (("ContextName" . ) ...)。 + +(import (scheme base) (liii check) (liii highlight definition)) + +(check-set-mode! 'report-failed) + +(check (definition-contexts (make-definition "X")) => '()) + +(let* ((ctx (make-context-def "Level0")) + (d (make-definition "X" '() "Level0" (list (cons "Level0" ctx)))) + ) ; + (check (= (length (definition-contexts d)) 1) => #t) + (check + (context-def-name (cdr (car (definition-contexts d)))) + => + "Level0" + ) ;check +) ;let* + +;; 内置 Scheme 定义包含核心上下文 +(let ((d (load-syntax-definition "scheme"))) + (check (= (length (definition-contexts d)) 6) => #t) +) ;let + +(check-report) diff --git a/highlight/tests/liii/highlight/definition/definition-extensions-test.scm b/highlight/tests/liii/highlight/definition/definition-extensions-test.scm new file mode 100644 index 0000000..cb5772e --- /dev/null +++ b/highlight/tests/liii/highlight/definition/definition-extensions-test.scm @@ -0,0 +1,28 @@ +;; definition-extensions +;; 读取语法定义适用的文件扩展名列表。 +;; +;; 语法 +;; ---- +;; (definition-extensions def) +;; +;; 参数 +;; ---- +;; def : definition? +;; 语法定义对象。 +;; +;; 返回值 +;; ---- +;; list of string +;; 扩展名列表,如 '("*.scm" "*.ss")。 + +(import (scheme base) (liii check) (liii highlight definition)) + +(check-set-mode! 'report-failed) + +(check (definition-extensions (make-definition "X")) => '()) +(check (definition-extensions (make-definition "X" '("*.scm" "*.ss"))) + => + '("*.scm" "*.ss") +) ;check + +(check-report) diff --git a/highlight/tests/liii/highlight/definition/definition-find-context-test.scm b/highlight/tests/liii/highlight/definition/definition-find-context-test.scm new file mode 100644 index 0000000..04736b3 --- /dev/null +++ b/highlight/tests/liii/highlight/definition/definition-find-context-test.scm @@ -0,0 +1,34 @@ +;; definition-find-context +;; 按名称查找上下文定义。 +;; +;; 语法 +;; ---- +;; (definition-find-context def name) +;; +;; 参数 +;; ---- +;; def : definition? +;; 语法定义对象。 +;; +;; name : string +;; 上下文名称。 +;; +;; 返回值 +;; ---- +;; 或 #f +;; 找到返回上下文定义,否则 #f。 + +(import (scheme base) (liii check) (liii highlight definition)) + +(check-set-mode! 'report-failed) + +(let ((d (load-syntax-definition "scheme"))) + (check-true (not (not (definition-find-context d "Level0")))) + (check-true (not (not (definition-find-context d "comment")))) + (check-true (not (not (definition-find-context d "string")))) + (check (definition-find-context d "no-such-context") => #f) +) ;let + +(check (definition-find-context (make-definition "X") "Level0") => #f) + +(check-report) diff --git a/highlight/tests/liii/highlight/definition/definition-initial-context-name-test.scm b/highlight/tests/liii/highlight/definition/definition-initial-context-name-test.scm new file mode 100644 index 0000000..a6019a5 --- /dev/null +++ b/highlight/tests/liii/highlight/definition/definition-initial-context-name-test.scm @@ -0,0 +1,32 @@ +;; definition-initial-context-name +;; 读取语法定义的初始上下文名称。 +;; +;; 语法 +;; ---- +;; (definition-initial-context-name def) +;; +;; 参数 +;; ---- +;; def : definition? +;; 语法定义对象。 +;; +;; 返回值 +;; ---- +;; string +;; 初始上下文名称,如 "Level0"。 + +(import (scheme base) (liii check) (liii highlight definition)) + +(check-set-mode! 'report-failed) + +(check (definition-initial-context-name (make-definition "X")) => "Level0") +(check (definition-initial-context-name (make-definition "X" '() "Base")) + => + "Base" +) ;check +(check (definition-initial-context-name (load-syntax-definition "scheme")) + => + "Level0" +) ;check + +(check-report) diff --git a/highlight/tests/liii/highlight/definition/definition-item-data-def-style-test.scm b/highlight/tests/liii/highlight/definition/definition-item-data-def-style-test.scm new file mode 100644 index 0000000..7b8bcce --- /dev/null +++ b/highlight/tests/liii/highlight/definition/definition-item-data-def-style-test.scm @@ -0,0 +1,30 @@ +;; definition-item-data-def-style +;; 查询 itemData 对应的样式名。 +;; +;; 语法 +;; ---- +;; (definition-item-data-def-style def item-name) +;; +;; 参数 +;; ---- +;; def : definition? +;; 语法定义对象。 +;; +;; item-name : string +;; itemData 名称。 +;; +;; 返回值 +;; ---- +;; string +;; 样式名;未知名称原样返回。 + +(import (scheme base) (liii check) (liii highlight definition)) + +(check-set-mode! 'report-failed) + +(let ((def (load-syntax-definition "scheme"))) + (check (definition-item-data-def-style def "Keyword") => "Keyword") + (check (definition-item-data-def-style def "Unknown") => "Unknown") +) ;let + +(check-report) diff --git a/highlight/tests/liii/highlight/definition/definition-item-datas-test.scm b/highlight/tests/liii/highlight/definition/definition-item-datas-test.scm new file mode 100644 index 0000000..988e5b3 --- /dev/null +++ b/highlight/tests/liii/highlight/definition/definition-item-datas-test.scm @@ -0,0 +1,29 @@ +;; definition-item-datas +;; 读取语法定义的 itemData 映射表。 +;; +;; 语法 +;; ---- +;; (definition-item-datas def) +;; +;; 参数 +;; ---- +;; def : definition? +;; 语法定义对象。 +;; +;; 返回值 +;; ---- +;; list +;; alist (("ItemName" . defStyleName) ...)。 + +(import (scheme base) (liii check) (liii highlight definition)) + +(check-set-mode! 'report-failed) + +(check (definition-item-datas (make-definition "X")) => '()) + +(let ((d (make-definition "X" '() "Level0" '() (list (cons "Keyword" "Keyword"))))) + (check (= (length (definition-item-datas d)) 1) => #t) + (check (cdr (car (definition-item-datas d))) => "Keyword") +) ;let + +(check-report) diff --git a/highlight/tests/liii/highlight/definition/definition-name-test.scm b/highlight/tests/liii/highlight/definition/definition-name-test.scm new file mode 100644 index 0000000..af46dd5 --- /dev/null +++ b/highlight/tests/liii/highlight/definition/definition-name-test.scm @@ -0,0 +1,25 @@ +;; definition-name +;; 读取语法定义的语言名称。 +;; +;; 语法 +;; ---- +;; (definition-name def) +;; +;; 参数 +;; ---- +;; def : definition? +;; 语法定义对象。 +;; +;; 返回值 +;; ---- +;; string +;; 语言名称。 + +(import (scheme base) (liii check) (liii highlight definition)) + +(check-set-mode! 'report-failed) + +(check (definition-name (make-definition "Scheme")) => "Scheme") +(check (definition-name (make-definition "JSON")) => "JSON") + +(check-report) diff --git a/highlight/tests/liii/highlight/definition/definition-p-test.scm b/highlight/tests/liii/highlight/definition/definition-p-test.scm new file mode 100644 index 0000000..4b6dfd9 --- /dev/null +++ b/highlight/tests/liii/highlight/definition/definition-p-test.scm @@ -0,0 +1,27 @@ +;; definition? +;; 判断对象是否为语法定义。 +;; +;; 语法 +;; ---- +;; (definition? obj) +;; +;; 参数 +;; ---- +;; obj : any +;; 待判断的对象。 +;; +;; 返回值 +;; ---- +;; boolean +;; 是语法定义返回 #t,否则 #f。 + +(import (scheme base) (liii check) (liii highlight definition)) + +(check-set-mode! 'report-failed) + +(check-true (definition? (make-definition "Scheme"))) +(check-false (definition? "Scheme")) +(check-false (definition? (make-context-def "x"))) +(check-false (definition? #f)) + +(check-report) diff --git a/highlight/tests/liii/highlight/definition/load-definition-for-file-test.scm b/highlight/tests/liii/highlight/definition/load-definition-for-file-test.scm new file mode 100644 index 0000000..72b7c20 --- /dev/null +++ b/highlight/tests/liii/highlight/definition/load-definition-for-file-test.scm @@ -0,0 +1,84 @@ +;; load-definition-for-file +;; 根据文件名自动查找并加载匹配的语法定义。 +;; +;; 语法 +;; ---- +;; (load-definition-for-file filename) +;; +;; 参数 +;; ---- +;; filename : string +;; 文件名或路径,如 "main.c"、"foo.cpp"、"data.json"、"test.scm"。 +;; +;; 返回值 +;; ---- +;; 或 #f +;; 匹配到的语法定义对象,若无匹配定义返回 #f。 + +(import (scheme base) (liii check) (liii highlight definition)) + +(check-set-mode! 'report-failed) + +(check (definition-name (load-definition-for-file "altsvc.c")) => "C") +(check (definition-name (load-definition-for-file "convert.hpp")) => "C++") +(check (definition-name (load-definition-for-file "main.cpp")) => "C++") +(check (definition-name (load-definition-for-file "package.json")) => "JSON") +(check (definition-name (load-definition-for-file "test.scm")) => "Scheme") +(check (definition-name (load-definition-for-file "xmake.lua")) => "Lua") +(check (definition-name (load-definition-for-file "deploy.sh")) => "Bash") +(check (definition-name (load-definition-for-file ".bashrc")) => "Bash") +(check (definition-name (load-definition-for-file "PKGBUILD")) => "Bash") +(check (definition-name (load-definition-for-file "main.js")) => "JavaScript") +(check (definition-name (load-definition-for-file "index.mjs")) => "JavaScript") +(check (definition-name (load-definition-for-file "app.cjs")) => "JavaScript") +(check (definition-name (load-definition-for-file "main.py")) => "Python") +(check (definition-name (load-definition-for-file "setup.pyw")) => "Python") +(check (definition-name (load-definition-for-file "SConstruct")) => "Python") +(check (definition-name (load-definition-for-file "main.rs")) => "Rust") +(check (definition-name (load-definition-for-file "app.ts")) => "TypeScript") +(check (definition-name (load-definition-for-file "index.mts")) => "TypeScript") +(check (definition-name (load-definition-for-file "config.yaml")) => "YAML") +(check (definition-name (load-definition-for-file "config.yml")) => "YAML") +(check (definition-name (load-definition-for-file ".clang-format")) => "YAML") +(check (definition-name (load-definition-for-file "Cargo.toml")) => "TOML") +(check (definition-name (load-definition-for-file "Cargo.lock")) => "TOML") +(check (definition-name (load-definition-for-file "app.ini")) => "TOML") +(check (definition-name (load-definition-for-file "query.sql")) => "SQL") +(check (definition-name (load-definition-for-file "schema.ddl")) => "SQL") +(check (definition-name (load-definition-for-file "main.rb")) => "Ruby") +(check (definition-name (load-definition-for-file "Gemfile")) => "Ruby") +(check (definition-name (load-definition-for-file "Rakefile")) => "Ruby") +(check (definition-name (load-definition-for-file "index.php")) => "PHP") +(check (definition-name (load-definition-for-file "page.phtml")) => "PHP") +(check (definition-name (load-definition-for-file "Main.kt")) => "Kotlin") +(check (definition-name (load-definition-for-file "build.gradle.kts")) + => + "Kotlin" +) ;check +(check (definition-name (load-definition-for-file "Main.swift")) => "Swift") +(check (definition-name (load-definition-for-file "App.vue")) => "Vue") +(check (definition-name (load-definition-for-file "CMakeLists.txt")) => "CMake") +(check (definition-name (load-definition-for-file "toolchain.cmake")) + => + "CMake" +) ;check +(check (definition-name (load-definition-for-file "config.cmake.in")) + => + "CMake" +) ;check +(check (definition-name (load-definition-for-file "flake.nix")) => "Nix") +(check (definition-name (load-definition-for-file "configuration.nix")) + => + "Nix" +) ;check +(check (definition-name (load-definition-for-file "refs.bib")) => "BibTeX") +(check (definition-name (load-definition-for-file "paper.tex")) => "LaTeX") +(check (definition-name (load-definition-for-file "thesis.ltx")) => "LaTeX") +(check (definition-name (load-definition-for-file "style.sty")) => "LaTeX") +(check (definition-name (load-definition-for-file "article.cls")) => "LaTeX") +(check (definition-name (load-definition-for-file "diagram.tikz")) => "LaTeX") +(check (definition-name (load-definition-for-file "Main.hs")) => "Haskell") +(check (definition-name (load-definition-for-file "Setup.lhs")) => "Haskell") +(check (load-definition-for-file "unknown.xyz123") => #f) + +(check-report) diff --git a/highlight/tests/liii/highlight/definition/load-syntax-definition-cwd-test.scm b/highlight/tests/liii/highlight/definition/load-syntax-definition-cwd-test.scm new file mode 100644 index 0000000..bdadf8b --- /dev/null +++ b/highlight/tests/liii/highlight/definition/load-syntax-definition-cwd-test.scm @@ -0,0 +1,71 @@ +;; load-syntax-definition +;; 验收用例:切换 cwd 后仍可通过 library-file 定位资源目录加载语法定义。 +;; +;; 语法 +;; ---- +;; (load-syntax-definition name) +;; +;; 参数 +;; ---- +;; name : string +;; 语言标识。 +;; +;; 返回值 +;; ---- +;; +;; 解析后的语法定义对象。 + +(import (scheme base) + (scheme process-context) + (liii check) + (liii os) + (liii path) + (liii highlight definition) + (liii highlight highlighter) +) ;import + +(check-set-mode! 'report-failed) + +;; 记录测试启动时的 cwd,便于最后还原 + +(define start-cwd (getcwd)) + +;; 切换到临时目录后再加载定义:definition.scm 在加载期已用 library-file +;; 缓存 resources/syntax 的绝对路径,运行期 cwd 变化不应影响资源定位。 +(let ((tmp (or (get-environment-variable "TMPDIR") "/tmp"))) + (when (path-exists? tmp) + (chdir tmp) + (let ((def (load-syntax-definition "scheme"))) + (check (definition-name def) => "Scheme") + (check (definition-initial-context-name def) => "Level0") + ;; 切换 cwd 后仍能高亮 + (let-values (((spans st) (highlight-line "(define x 42)" (initial-highlight-state def) def)) + ) ; + (check-true (pair? spans)) + (check-true + (any (lambda (sp) (string=? (caddr sp) "Extension")) spans) + ) ;check-true + ) ;let-values + ) ;let + ;; Markdown fenced scheme 在切 cwd 后仍生成嵌套高亮 + (let ((md (load-syntax-definition "markdown"))) + (let-values (((s1 st1) (highlight-line "```scheme" (initial-highlight-state md) md))) + (let-values (((s2 st2) (highlight-line "(define x 42)" st1 md))) + (check-true + (any (lambda (sp) (string=? (caddr sp) "Extension")) s2) + ) ;check-true + (check-true + (any (lambda (sp) (string=? (caddr sp) "DecVal")) s2) + ) ;check-true + ) ;let-values + ) ;let-values + ) ;let + ) ;when +) ;let + +;; 还原 cwd,避免影响后续测试 +(when (path-exists? start-cwd) + (chdir start-cwd) +) ;when + +(check-report) diff --git a/highlight/tests/liii/highlight/definition/load-syntax-definition-langs-1-test.scm b/highlight/tests/liii/highlight/definition/load-syntax-definition-langs-1-test.scm new file mode 100644 index 0000000..be17d4e --- /dev/null +++ b/highlight/tests/liii/highlight/definition/load-syntax-definition-langs-1-test.scm @@ -0,0 +1,231 @@ +;; load-syntax-definition +;; 各语法定义的上下文与样式别名回归测试(第一批:JSON/C/C++/Lua/Markdown/Bash/JavaScript/Python)。 +;; +;; 语法 +;; ---- +;; (load-syntax-definition name) +;; +;; 参数 +;; ---- +;; name : string +;; 语言标识(大小写不敏感)。 +;; +;; 返回值 +;; ---- +;; +;; 解析后的语法定义对象。 + +(import (scheme base) (liii check) (liii highlight definition)) + +(check-set-mode! 'report-failed) + +(let ((def-json (load-syntax-definition "json")) + (def-cpp (load-syntax-definition "cpp")) + (def-c (load-syntax-definition "c")) + (def-lua (load-syntax-definition "lua")) + (def-md (load-syntax-definition "markdown")) + (def-bash (load-syntax-definition "bash")) + (def-js (load-syntax-definition "javascript")) + (def-py (load-syntax-definition "python")) + ) ; + ;; JSON 上下文与样式别名 + (check-true (not (not (definition-find-context def-json "Normal")))) + (check-true (not (not (definition-find-context def-json "Pair")))) + (check-true (not (not (definition-find-context def-json "String_Key")))) + (check-true (not (not (definition-find-context def-json "String_Key_Char")))) + (check-true (not (not (definition-find-context def-json "Value")))) + (check-true (not (not (definition-find-context def-json "String_Value")))) + (check-true (not (not (definition-find-context def-json "String_Key_Value")))) + (check-true (not (not (definition-find-context def-json "Array")))) + (check (definition-item-data-def-style def-json "Style_Normal") => "Normal") + (check (definition-item-data-def-style def-json "Style_Seperator_Pair") + => + "Function" + ) ;check + (check (definition-item-data-def-style def-json "Style_Seperator_Array") + => + "Others" + ) ;check + (check (definition-item-data-def-style def-json "Style_Decimal") => "DecVal") + (check (definition-item-data-def-style def-json "Style_Float") => "Float") + (check (definition-item-data-def-style def-json "Style_String_Key") + => + "DataType" + ) ;check + (check (definition-item-data-def-style def-json "Style_String_Value") + => + "String" + ) ;check + (check (definition-item-data-def-style def-json "Style_String_Key_Char") + => + "Char" + ) ;check + (check (definition-item-data-def-style def-json "Style_Keyword") => "Keyword") + (check (definition-item-data-def-style def-json "Style_Error") => "Error") + (check-true + (> (length (context-def-rules (definition-find-context def-json "Normal"))) 0) + ) ;check-true + + ;; C++ 上下文与样式 + (check-true (not (not (definition-find-context def-cpp "Normal")))) + (check-true (not (not (definition-find-context def-cpp "preprocessor")))) + (check-true (not (not (definition-find-context def-cpp "include-angle")))) + (check-true (not (not (definition-find-context def-cpp "comment-line")))) + (check-true (not (not (definition-find-context def-cpp "comment-block")))) + (check-true (not (not (definition-find-context def-cpp "string")))) + (check-true (not (not (definition-find-context def-cpp "char")))) + (check-true (not (not (definition-find-context def-cpp "raw-string")))) + (check (definition-item-data-def-style def-cpp "ControlFlow") => "ControlFlow") + (check (definition-item-data-def-style def-cpp "Keyword") => "Keyword") + (check (definition-item-data-def-style def-cpp "DataType") => "DataType") + (check (definition-item-data-def-style def-cpp "Preprocessor") + => + "Preprocessor" + ) ;check + (check (definition-item-data-def-style def-cpp "Comment") => "Comment") + (check (definition-item-data-def-style def-cpp "String") => "String") + (check (definition-item-data-def-style def-cpp "Char") => "Char") + (check (definition-item-data-def-style def-cpp "BaseN") => "BaseN") + + ;; C 上下文与样式 + (check-true (not (not (definition-find-context def-c "Normal")))) + (check-true (not (not (definition-find-context def-c "preprocessor")))) + (check-true (not (not (definition-find-context def-c "include-angle")))) + (check-true (not (not (definition-find-context def-c "comment-line")))) + (check-true (not (not (definition-find-context def-c "comment-block")))) + (check-true (not (not (definition-find-context def-c "string")))) + (check-true (not (not (definition-find-context def-c "char")))) + (check (definition-item-data-def-style def-c "ControlFlow") => "ControlFlow") + (check (definition-item-data-def-style def-c "Keyword") => "Keyword") + (check (definition-item-data-def-style def-c "DataType") => "DataType") + (check (definition-item-data-def-style def-c "Preprocessor") => "Preprocessor") + (check (definition-item-data-def-style def-c "Comment") => "Comment") + (check (definition-item-data-def-style def-c "String") => "String") + (check (definition-item-data-def-style def-c "Char") => "Char") + (check (definition-item-data-def-style def-c "BaseN") => "BaseN") + + ;; Lua 上下文与样式 + (check-true (not (not (definition-find-context def-lua "Normal")))) + (check-true (not (not (definition-find-context def-lua "shebang")))) + (check-true (not (not (definition-find-context def-lua "comment-line")))) + (check-true (not (not (definition-find-context def-lua "comment-block")))) + (check-true (not (not (definition-find-context def-lua "comment-block-eq1")))) + (check-true (not (not (definition-find-context def-lua "comment-block-eq2")))) + (check-true (not (not (definition-find-context def-lua "raw-string")))) + (check-true (not (not (definition-find-context def-lua "raw-string-eq1")))) + (check-true (not (not (definition-find-context def-lua "raw-string-eq2")))) + (check-true (not (not (definition-find-context def-lua "string-double")))) + (check-true (not (not (definition-find-context def-lua "string-single")))) + (check (definition-item-data-def-style def-lua "ControlFlow") => "ControlFlow") + (check (definition-item-data-def-style def-lua "Keyword") => "Keyword") + (check (definition-item-data-def-style def-lua "Constant") => "Constant") + (check (definition-item-data-def-style def-lua "Function") => "Function") + (check (definition-item-data-def-style def-lua "BuiltIn") => "BuiltIn") + (check (definition-item-data-def-style def-lua "Variable") => "Variable") + (check (definition-item-data-def-style def-lua "Comment") => "Comment") + (check (definition-item-data-def-style def-lua "String") => "String") + (check (definition-item-data-def-style def-lua "VerbatimString") + => + "VerbatimString" + ) ;check + (check (definition-item-data-def-style def-lua "SpecialChar") => "SpecialChar") + + ;; Markdown 上下文与样式 + (check-true (not (not (definition-find-context def-md "Normal")))) + (check-true (not (not (definition-find-context def-md "header-1")))) + (check-true (not (not (definition-find-context def-md "header-2")))) + (check-true (not (not (definition-find-context def-md "header-3")))) + (check-true (not (not (definition-find-context def-md "blockquote")))) + (check-true (not (not (definition-find-context def-md "inline-code-single")))) + (check-true (not (not (definition-find-context def-md "comment")))) + (check (definition-item-data-def-style def-md "Header") => "Function") + (check (definition-item-data-def-style def-md "Header H1") => "Function") + (check (definition-item-data-def-style def-md "Blockquote") => "Attribute") + (check (definition-item-data-def-style def-md "List") => "SpecialString") + (check (definition-item-data-def-style def-md "Table") => "Preprocessor") + (check (definition-item-data-def-style def-md "Code") => "Information") + (check (definition-item-data-def-style def-md "Fenced Code") => "Information") + (check (definition-item-data-def-style def-md "Link") => "Others") + (check (definition-item-data-def-style def-md "Comment") => "Comment") + + ;; Bash 上下文与样式 + (check-true (not (not (definition-find-context def-bash "Normal")))) + (check-true (not (not (definition-find-context def-bash "shebang")))) + (check-true (not (not (definition-find-context def-bash "comment")))) + (check-true (not (not (definition-find-context def-bash "dollar")))) + (check-true (not (not (definition-find-context def-bash "var-brace")))) + (check-true (not (not (definition-find-context def-bash "subst-command")))) + (check-true (not (not (definition-find-context def-bash "string-double")))) + (check-true (not (not (definition-find-context def-bash "string-single")))) + (check-true (not (not (definition-find-context def-bash "backquote")))) + (check-true (not (not (definition-find-context def-bash "escape")))) + (check (definition-item-data-def-style def-bash "ControlFlow") => "ControlFlow") + (check (definition-item-data-def-style def-bash "Keyword") => "Keyword") + (check (definition-item-data-def-style def-bash "Builtin") => "BuiltIn") + (check (definition-item-data-def-style def-bash "Variable") => "Variable") + (check (definition-item-data-def-style def-bash "Parameter Expansion") + => + "Variable" + ) ;check + (check (definition-item-data-def-style def-bash "Operator") => "Operator") + (check (definition-item-data-def-style def-bash "Comment") => "Comment") + (check (definition-item-data-def-style def-bash "String") => "String") + (check (definition-item-data-def-style def-bash "String Transl.") => "String") + (check (definition-item-data-def-style def-bash "Backquote") => "SpecialChar") + + ;; JavaScript 上下文与样式 + (check-true (not (not (definition-find-context def-js "Normal")))) + (check-true (not (not (definition-find-context def-js "shebang")))) + (check-true (not (not (definition-find-context def-js "comment-line")))) + (check-true (not (not (definition-find-context def-js "comment-block")))) + (check-true (not (not (definition-find-context def-js "string-double")))) + (check-true (not (not (definition-find-context def-js "string-single")))) + (check-true (not (not (definition-find-context def-js "template")))) + (check-true (not (not (definition-find-context def-js "substitution")))) + (check-true (not (not (definition-find-context def-js "escape")))) + (check-true (not (not (definition-find-context def-js "member")))) + (check-true (not (not (definition-find-context def-js "function-name")))) + (check (definition-item-data-def-style def-js "ControlFlow") => "ControlFlow") + (check (definition-item-data-def-style def-js "Keyword") => "Keyword") + (check (definition-item-data-def-style def-js "Module") => "Import") + (check (definition-item-data-def-style def-js "Primitives") => "Constant") + (check (definition-item-data-def-style def-js "Built-in Objects") => "BuiltIn") + (check (definition-item-data-def-style def-js "Function Name") => "Function") + (check (definition-item-data-def-style def-js "Object Member") => "Attribute") + (check (definition-item-data-def-style def-js "Symbol") => "Operator") + (check (definition-item-data-def-style def-js "String") => "String") + (check (definition-item-data-def-style def-js "Template") => "VerbatimString") + (check (definition-item-data-def-style def-js "Comment") => "Comment") + + ;; Python 上下文与样式 + (check-true (not (not (definition-find-context def-py "Normal")))) + (check-true (not (not (definition-find-context def-py "hash-comment")))) + (check-true (not (not (definition-find-context def-py "decorator")))) + (check-true (not (not (definition-find-context def-py "triple-d")))) + (check-true (not (not (definition-find-context def-py "triple-s")))) + (check-true (not (not (definition-find-context def-py "raw-string-d")))) + (check-true (not (not (definition-find-context def-py "raw-string-s")))) + (check-true (not (not (definition-find-context def-py "f-string-d")))) + (check-true (not (not (definition-find-context def-py "f-string-s")))) + (check-true (not (not (definition-find-context def-py "string-d")))) + (check-true (not (not (definition-find-context def-py "string-s")))) + (check (definition-item-data-def-style def-py "Flow Control Keyword") + => + "ControlFlow" + ) ;check + (check (definition-item-data-def-style def-py "Operator Keyword") => "Keyword") + (check (definition-item-data-def-style def-py "Builtin Function") => "BuiltIn") + (check (definition-item-data-def-style def-py "Import") => "Import") + (check (definition-item-data-def-style def-py "Overloaders") => "Function") + (check (definition-item-data-def-style def-py "Special Variable") => "Constant") + (check (definition-item-data-def-style def-py "Decorator") => "Attribute") + (check (definition-item-data-def-style def-py "String") => "String") + (check (definition-item-data-def-style def-py "Raw String") => "VerbatimString") + (check (definition-item-data-def-style def-py "F-String") => "SpecialString") + (check (definition-item-data-def-style def-py "Comment") => "Comment") + (check (definition-item-data-def-style def-py "Hex") => "BaseN") + (check (definition-item-data-def-style def-py "Float") => "Float") + (check (definition-item-data-def-style def-py "Int") => "DecVal") +) ;let + +(check-report) diff --git a/highlight/tests/liii/highlight/definition/load-syntax-definition-langs-2-test.scm b/highlight/tests/liii/highlight/definition/load-syntax-definition-langs-2-test.scm new file mode 100644 index 0000000..bdec3a6 --- /dev/null +++ b/highlight/tests/liii/highlight/definition/load-syntax-definition-langs-2-test.scm @@ -0,0 +1,298 @@ +;; load-syntax-definition +;; 各语法定义的上下文与样式别名回归测试(第二批:Rust/TypeScript/YAML/TOML/SQL/Ruby/PHP/Kotlin)。 +;; +;; 语法 +;; ---- +;; (load-syntax-definition name) +;; +;; 参数 +;; ---- +;; name : string +;; 语言标识(大小写不敏感)。 +;; +;; 返回值 +;; ---- +;; +;; 解析后的语法定义对象。 + +(import (scheme base) (liii check) (liii highlight definition)) + +(check-set-mode! 'report-failed) + +(let ((def-rs (load-syntax-definition "rust")) + (def-ts (load-syntax-definition "typescript")) + (def-yaml (load-syntax-definition "yaml")) + (def-toml (load-syntax-definition "toml")) + (def-sql (load-syntax-definition "sql")) + (def-rb (load-syntax-definition "ruby")) + (def-php (load-syntax-definition "php")) + (def-kt (load-syntax-definition "kotlin")) + ) ; + ;; Rust 上下文与样式 + (check-true (not (not (definition-find-context def-rs "Normal")))) + (check-true (not (not (definition-find-context def-rs "Function")))) + (check-true (not (not (definition-find-context def-rs "Type")))) + (check-true (not (not (definition-find-context def-rs "attribute")))) + (check-true (not (not (definition-find-context def-rs "string")))) + (check-true (not (not (definition-find-context def-rs "byte-string")))) + (check-true (not (not (definition-find-context def-rs "raw-string")))) + (check-true (not (not (definition-find-context def-rs "character")))) + (check-true (not (not (definition-find-context def-rs "comment-line")))) + (check-true (not (not (definition-find-context def-rs "comment-block")))) + (check (definition-item-data-def-style def-rs "Keyword") => "Keyword") + (check (definition-item-data-def-style def-rs "Control Flow") => "ControlFlow") + (check (definition-item-data-def-style def-rs "Type") => "DataType") + (check (definition-item-data-def-style def-rs "CType") => "DataType") + (check (definition-item-data-def-style def-rs "Trait") => "BuiltIn") + (check (definition-item-data-def-style def-rs "Constant") => "Constant") + (check (definition-item-data-def-style def-rs "Comment") => "Comment") + (check (definition-item-data-def-style def-rs "Number") => "DecVal") + (check (definition-item-data-def-style def-rs "String") => "String") + (check (definition-item-data-def-style def-rs "CharEscape") => "SpecialChar") + (check (definition-item-data-def-style def-rs "Character") => "Char") + (check (definition-item-data-def-style def-rs "Macro") => "Preprocessor") + (check (definition-item-data-def-style def-rs "Symbol") => "Operator") + (check (definition-item-data-def-style def-rs "Attribute") => "Attribute") + (check (definition-item-data-def-style def-rs "Lifetime") => "Others") + + ;; TypeScript 上下文与样式 + (check-true (not (not (definition-find-context def-ts "Normal")))) + (check-true (not (not (definition-find-context def-ts "shebang")))) + (check-true (not (not (definition-find-context def-ts "decorator")))) + (check-true (not (not (definition-find-context def-ts "comment-line")))) + (check-true (not (not (definition-find-context def-ts "comment-block")))) + (check-true (not (not (definition-find-context def-ts "string-double")))) + (check-true (not (not (definition-find-context def-ts "string-single")))) + (check-true (not (not (definition-find-context def-ts "template")))) + (check-true (not (not (definition-find-context def-ts "substitution")))) + (check-true (not (not (definition-find-context def-ts "escape")))) + (check-true (not (not (definition-find-context def-ts "member")))) + (check-true (not (not (definition-find-context def-ts "function-name")))) + (check (definition-item-data-def-style def-ts "ControlFlow") => "ControlFlow") + (check (definition-item-data-def-style def-ts "Keyword") => "Keyword") + (check (definition-item-data-def-style def-ts "Reserved") => "Keyword") + (check (definition-item-data-def-style def-ts "Module") => "Import") + (check (definition-item-data-def-style def-ts "Primitives") => "Constant") + (check (definition-item-data-def-style def-ts "DataType") => "DataType") + (check (definition-item-data-def-style def-ts "Built-in Objects") => "BuiltIn") + (check (definition-item-data-def-style def-ts "Function Name") => "Function") + (check (definition-item-data-def-style def-ts "Function Declaration") + => + "Function" + ) ;check + (check (definition-item-data-def-style def-ts "Object Member") => "Attribute") + (check (definition-item-data-def-style def-ts "Decorator") => "Attribute") + (check (definition-item-data-def-style def-ts "Symbol") => "Operator") + (check (definition-item-data-def-style def-ts "Template") => "VerbatimString") + (check (definition-item-data-def-style def-ts "Comment") => "Comment") + + ;; YAML 上下文与样式 + (check-true (not (not (definition-find-context def-yaml "normal")))) + (check-true (not (not (definition-find-context def-yaml "key")))) + (check-true (not (not (definition-find-context def-yaml "value")))) + (check-true (not (not (definition-find-context def-yaml "list")))) + (check-true (not (not (definition-find-context def-yaml "hash")))) + (check-true (not (not (definition-find-context def-yaml "string-sq")))) + (check-true (not (not (definition-find-context def-yaml "string-dq")))) + (check-true (not (not (definition-find-context def-yaml "block-operator")))) + (check-true (not (not (definition-find-context def-yaml "comment")))) + (check-true (not (not (definition-find-context def-yaml "directive")))) + (check-true (not (not (definition-find-context def-yaml "tag")))) + (check-true (not (not (definition-find-context def-yaml "alias")))) + (check-true (not (not (definition-find-context def-yaml "reference")))) + (check (definition-item-data-def-style def-yaml "Key") => "Function") + (check (definition-item-data-def-style def-yaml "Key Points Operator") + => + "Keyword" + ) ;check + (check (definition-item-data-def-style def-yaml "Operator") => "Keyword") + (check (definition-item-data-def-style def-yaml "Comment") => "Comment") + (check (definition-item-data-def-style def-yaml "End of Document") => "Comment") + (check (definition-item-data-def-style def-yaml "Document Header") + => + "Preprocessor" + ) ;check + (check (definition-item-data-def-style def-yaml "Directive") => "Preprocessor") + (check (definition-item-data-def-style def-yaml "String") => "String") + (check (definition-item-data-def-style def-yaml "Escaped Character") + => + "SpecialChar" + ) ;check + (check (definition-item-data-def-style def-yaml "Literal/Folded Operator") + => + "Char" + ) ;check + (check (definition-item-data-def-style def-yaml "Integer") => "DecVal") + (check (definition-item-data-def-style def-yaml "Float") => "Float") + (check (definition-item-data-def-style def-yaml "Boolean") => "Char") + (check (definition-item-data-def-style def-yaml "Null") => "Char") + (check (definition-item-data-def-style def-yaml "Tag") => "Others") + (check (definition-item-data-def-style def-yaml "Alias") => "Others") + (check (definition-item-data-def-style def-yaml "Reference") => "Others") + + ;; TOML 上下文与样式 + (check-true (not (not (definition-find-context def-toml "Toml")))) + (check-true (not (not (definition-find-context def-toml "TableHeader")))) + (check-true (not (not (definition-find-context def-toml "NestedTableHeader")))) + (check-true (not (not (definition-find-context def-toml "Value")))) + (check-true (not (not (definition-find-context def-toml "Comment")))) + (check-true (not (not (definition-find-context def-toml "QuotedKey")))) + (check-true (not (not (definition-find-context def-toml "LitQuotedKey")))) + (check-true (not (not (definition-find-context def-toml "String")))) + (check-true (not (not (definition-find-context def-toml "MultilineString")))) + (check-true (not (not (definition-find-context def-toml "LitString")))) + (check-true (not (not (definition-find-context def-toml "LitMultilineString")))) + (check-true (not (not (definition-find-context def-toml "Array")))) + (check-true (not (not (definition-find-context def-toml "InArray")))) + (check-true (not (not (definition-find-context def-toml "InlineTable")))) + (check (definition-item-data-def-style def-toml "Key") => "DataType") + (check (definition-item-data-def-style def-toml "TableHeader") => "Keyword") + (check (definition-item-data-def-style def-toml "Assignment") => "Operator") + (check (definition-item-data-def-style def-toml "Comment") => "Comment") + (check (definition-item-data-def-style def-toml "Int") => "DecVal") + (check (definition-item-data-def-style def-toml "Float") => "Float") + (check (definition-item-data-def-style def-toml "Boolean true") => "Constant") + (check (definition-item-data-def-style def-toml "Boolean false") => "Constant") + (check (definition-item-data-def-style def-toml "String") => "String") + (check (definition-item-data-def-style def-toml "LitString") + => + "VerbatimString" + ) ;check + (check (definition-item-data-def-style def-toml "Escape") => "SpecialChar") + (check (definition-item-data-def-style def-toml "Array") => "Operator") + (check (definition-item-data-def-style def-toml "InlineTable") => "Operator") + + ;; SQL 上下文与样式 + (check-true (not (not (definition-find-context def-sql "Normal")))) + (check-true (not (not (definition-find-context def-sql "comment-line")))) + (check-true (not (not (definition-find-context def-sql "comment-block")))) + (check-true (not (not (definition-find-context def-sql "string")))) + (check-true (not (not (definition-find-context def-sql "user-identifier")))) + (check (definition-item-data-def-style def-sql "Keyword") => "Keyword") + (check (definition-item-data-def-style def-sql "ControlFlow") => "ControlFlow") + (check (definition-item-data-def-style def-sql "Operator Keyword") => "Keyword") + (check (definition-item-data-def-style def-sql "Function") => "Function") + (check (definition-item-data-def-style def-sql "Data Type") => "DataType") + (check (definition-item-data-def-style def-sql "Comment") => "Comment") + (check (definition-item-data-def-style def-sql "String") => "String") + (check (definition-item-data-def-style def-sql "String Char") => "Char") + (check (definition-item-data-def-style def-sql "Decimal") => "DecVal") + (check (definition-item-data-def-style def-sql "Hex") => "BaseN") + (check (definition-item-data-def-style def-sql "Float") => "Float") + (check (definition-item-data-def-style def-sql "Identifier") => "Others") + (check (definition-item-data-def-style def-sql "Preprocessor") => "Others") + + ;; Ruby 上下文与样式 + (check-true (not (not (definition-find-context def-rb "Ruby")))) + (check-true (not (not (definition-find-context def-rb "shebang")))) + (check-true (not (not (definition-find-context def-rb "comment")))) + (check-true (not (not (definition-find-context def-rb "embedded-doc")))) + (check-true (not (not (definition-find-context def-rb "dquote")))) + (check-true (not (not (definition-find-context def-rb "squote")))) + (check-true (not (not (definition-find-context def-rb "command")))) + (check-true (not (not (definition-find-context def-rb "symbol")))) + (check-true (not (not (definition-find-context def-rb "symbol-quoted")))) + (check-true (not (not (definition-find-context def-rb "subst")))) + (check-true (not (not (definition-find-context def-rb "member")))) + (check (definition-item-data-def-style def-rb "Keyword") => "ControlFlow") + (check (definition-item-data-def-style def-rb "Definition") => "Keyword") + (check (definition-item-data-def-style def-rb "Access Control") => "Attribute") + (check (definition-item-data-def-style def-rb "Attribute Definition") + => + "Others" + ) ;check + (check (definition-item-data-def-style def-rb "Pseudo variable") => "DecVal") + (check (definition-item-data-def-style def-rb "Kernel methods") => "Function") + (check (definition-item-data-def-style def-rb "Module mixin methods") + => + "Function" + ) ;check + (check (definition-item-data-def-style def-rb "Comment") => "Comment") + (check (definition-item-data-def-style def-rb "Blockcomment") => "Comment") + (check (definition-item-data-def-style def-rb "String") => "String") + (check (definition-item-data-def-style def-rb "Raw String") => "VerbatimString") + (check (definition-item-data-def-style def-rb "Command") => "Information") + (check (definition-item-data-def-style def-rb "Symbol") => "Warning") + (check (definition-item-data-def-style def-rb "Substitution") => "SpecialChar") + (check (definition-item-data-def-style def-rb "Member") => "Attribute") + + ;; PHP 上下文与样式 + (check-true (not (not (definition-find-context def-php "start")))) + (check-true (not (not (definition-find-context def-php "phpsource")))) + (check-true (not (not (definition-find-context def-php "attribute")))) + (check-true (not (not (definition-find-context def-php "comment-line")))) + (check-true (not (not (definition-find-context def-php "comment-block")))) + (check-true (not (not (definition-find-context def-php "string-double")))) + (check-true (not (not (definition-find-context def-php "string-single")))) + (check-true (not (not (definition-find-context def-php "backtick")))) + (check (definition-item-data-def-style def-php "Keyword") => "Keyword") + (check (definition-item-data-def-style def-php "Control Structures") + => + "ControlFlow" + ) ;check + (check (definition-item-data-def-style def-php "Function") => "Function") + (check (definition-item-data-def-style def-php "Special method") => "BuiltIn") + (check (definition-item-data-def-style def-php "Classes") => "BuiltIn") + (check (definition-item-data-def-style def-php "Attribute") => "Attribute") + (check (definition-item-data-def-style def-php "Types") => "DataType") + (check (definition-item-data-def-style def-php "Properties") => "DataType") + (check (definition-item-data-def-style def-php "Constant") => "Constant") + (check (definition-item-data-def-style def-php "Library Constant") + => + "Constant" + ) ;check + (check (definition-item-data-def-style def-php "Special Variable") + => + "Variable" + ) ;check + (check (definition-item-data-def-style def-php "Variable") => "Variable") + (check (definition-item-data-def-style def-php "Comment") => "Comment") + (check (definition-item-data-def-style def-php "String") => "String") + (check (definition-item-data-def-style def-php "Heredoc") => "SpecialString") + (check (definition-item-data-def-style def-php "Nowdoc") => "VerbatimString") + (check (definition-item-data-def-style def-php "Decimal") => "DecVal") + (check (definition-item-data-def-style def-php "Hex") => "BaseN") + (check (definition-item-data-def-style def-php "Float") => "Float") + (check (definition-item-data-def-style def-php "Operator") => "Operator") + (check (definition-item-data-def-style def-php "Error Control Operator") + => + "Preprocessor" + ) ;check + + ;; Kotlin 上下文与样式 + (check-true (not (not (definition-find-context def-kt "Normal")))) + (check-true (not (not (definition-find-context def-kt "shebang")))) + (check-true (not (not (definition-find-context def-kt "annotation")))) + (check-true (not (not (definition-find-context def-kt "comment-line")))) + (check-true (not (not (definition-find-context def-kt "comment-block")))) + (check-true (not (not (definition-find-context def-kt "string")))) + (check-true (not (not (definition-find-context def-kt "string-multiline")))) + (check-true (not (not (definition-find-context def-kt "interp-expr")))) + (check-true (not (not (definition-find-context def-kt "interp-var")))) + (check-true (not (not (definition-find-context def-kt "char")))) + (check-true (not (not (definition-find-context def-kt "member")))) + (check (definition-item-data-def-style def-kt "Keyword") => "Keyword") + (check (definition-item-data-def-style def-kt "ControlFlowKeyword") + => + "ControlFlow" + ) ;check + (check (definition-item-data-def-style def-kt "Function") => "Function") + (check (definition-item-data-def-style def-kt "Variable") => "Variable") + (check (definition-item-data-def-style def-kt "Imports") => "Import") + (check (definition-item-data-def-style def-kt "Annotation") => "Attribute") + (check (definition-item-data-def-style def-kt "Data Type") => "DataType") + (check (definition-item-data-def-style def-kt "Comment") => "Comment") + (check (definition-item-data-def-style def-kt "String") => "String") + (check (definition-item-data-def-style def-kt "String Char") => "SpecialChar") + (check (definition-item-data-def-style def-kt "String Interpolation") + => + "SpecialString" + ) ;check + (check (definition-item-data-def-style def-kt "Char") => "Char") + (check (definition-item-data-def-style def-kt "Decimal") => "DecVal") + (check (definition-item-data-def-style def-kt "Hex") => "BaseN") + (check (definition-item-data-def-style def-kt "Float") => "Float") + (check (definition-item-data-def-style def-kt "Symbol") => "Operator") +) ;let + +(check-report) diff --git a/highlight/tests/liii/highlight/definition/load-syntax-definition-langs-3-test.scm b/highlight/tests/liii/highlight/definition/load-syntax-definition-langs-3-test.scm new file mode 100644 index 0000000..96429ec --- /dev/null +++ b/highlight/tests/liii/highlight/definition/load-syntax-definition-langs-3-test.scm @@ -0,0 +1,270 @@ +;; load-syntax-definition +;; 各语法定义的上下文与样式别名回归测试(第三批:Swift/Vue/CMake/Nix/BibTeX/LaTeX/Haskell)。 +;; +;; 语法 +;; ---- +;; (load-syntax-definition name) +;; +;; 参数 +;; ---- +;; name : string +;; 语言标识(大小写不敏感)。 +;; +;; 返回值 +;; ---- +;; +;; 解析后的语法定义对象。 + +(import (scheme base) (liii check) (liii highlight definition)) + +(check-set-mode! 'report-failed) + +(let ((def-swift (load-syntax-definition "swift")) + (def-vue (load-syntax-definition "vue")) + (def-cmake (load-syntax-definition "cmake")) + (def-nix (load-syntax-definition "nix")) + (def-bib (load-syntax-definition "bibtex")) + (def-tex (load-syntax-definition "latex")) + (def-hs (load-syntax-definition "haskell")) + ) ; + ;; Swift 上下文与样式 + (check-true (not (not (definition-find-context def-swift "Normal")))) + (check-true (not (not (definition-find-context def-swift "shebang")))) + (check-true (not (not (definition-find-context def-swift "annotation")))) + (check-true (not (not (definition-find-context def-swift "comment-line")))) + (check-true (not (not (definition-find-context def-swift "comment-block")))) + (check-true (not (not (definition-find-context def-swift "string")))) + (check-true (not (not (definition-find-context def-swift "string-multiline")))) + (check-true (not (not (definition-find-context def-swift "interp-expr")))) + (check-true (not (not (definition-find-context def-swift "char")))) + (check-true (not (not (definition-find-context def-swift "member")))) + (check (definition-item-data-def-style def-swift "Keyword") => "Keyword") + (check (definition-item-data-def-style def-swift "ControlFlowKeyword") + => + "ControlFlow" + ) ;check + (check (definition-item-data-def-style def-swift "Function") => "Function") + (check (definition-item-data-def-style def-swift "Variable") => "Variable") + (check (definition-item-data-def-style def-swift "Imports") => "Import") + (check (definition-item-data-def-style def-swift "Annotation") => "Attribute") + (check (definition-item-data-def-style def-swift "Data Type") => "DataType") + (check (definition-item-data-def-style def-swift "Comment") => "Comment") + (check (definition-item-data-def-style def-swift "String") => "String") + (check (definition-item-data-def-style def-swift "String Char") + => + "SpecialChar" + ) ;check + (check (definition-item-data-def-style def-swift "String Interpolation") + => + "SpecialString" + ) ;check + (check (definition-item-data-def-style def-swift "Char") => "Char") + (check (definition-item-data-def-style def-swift "Decimal") => "DecVal") + (check (definition-item-data-def-style def-swift "Hex") => "BaseN") + (check (definition-item-data-def-style def-swift "Float") => "Float") + (check (definition-item-data-def-style def-swift "Symbol") => "Operator") + + ;; Vue 上下文与样式(复用 IncludeRules 跨语言嵌入 CSS/JavaScript) + (check-true (not (not (definition-find-context def-vue "Normal")))) + (check-true (not (not (definition-find-context def-vue "comment")))) + (check-true (not (not (definition-find-context def-vue "doctype")))) + (check-true (not (not (definition-find-context def-vue "entity")))) + (check-true (not (not (definition-find-context def-vue "interp")))) + (check-true (not (not (definition-find-context def-vue "tag-open")))) + (check-true (not (not (definition-find-context def-vue "tag-close")))) + (check-true (not (not (definition-find-context def-vue "tag-attrs")))) + (check-true (not (not (definition-find-context def-vue "binding-name")))) + (check-true (not (not (definition-find-context def-vue "style-css")))) + (check-true (not (not (definition-find-context def-vue "script-js")))) + (check (definition-item-data-def-style def-vue "Tag") => "Keyword") + (check (definition-item-data-def-style def-vue "TagClose") => "Keyword") + (check (definition-item-data-def-style def-vue "AttributeName") => "Attribute") + (check (definition-item-data-def-style def-vue "Binding") => "Function") + (check (definition-item-data-def-style def-vue "Interpolation") + => + "SpecialString" + ) ;check + (check (definition-item-data-def-style def-vue "InterpolationSymbol") + => + "Operator" + ) ;check + (check (definition-item-data-def-style def-vue "Value") => "String") + (check (definition-item-data-def-style def-vue "Comment") => "Comment") + (check (definition-item-data-def-style def-vue "EntityRef") => "DecVal") + (check (definition-item-data-def-style def-vue "Symbol") => "Operator") + + ;; CMake 上下文与样式 + (check-true (not (not (definition-find-context def-cmake "Normal Text")))) + (check-true (not (not (definition-find-context def-cmake "comment")))) + (check-true (not (not (definition-find-context def-cmake "string")))) + (check-true (not (not (definition-find-context def-cmake "var-subst")))) + (check-true (not (not (definition-find-context def-cmake "cache-var-subst")))) + (check-true (not (not (definition-find-context def-cmake "env-var-subst")))) + (check-true (not (not (definition-find-context def-cmake "genexpr")))) + (check (definition-item-data-def-style def-cmake "Command") => "Keyword") + (check (definition-item-data-def-style def-cmake "Control Flow") + => + "ControlFlow" + ) ;check + (check (definition-item-data-def-style def-cmake "CMake Provided Function/Macro") + => + "Function" + ) ;check + (check (definition-item-data-def-style def-cmake "User Function/Macro") + => + "Function" + ) ;check + (check (definition-item-data-def-style def-cmake "Comment") => "Comment") + (check (definition-item-data-def-style def-cmake "Strings") => "String") + (check (definition-item-data-def-style def-cmake "Escapes") => "SpecialChar") + (check (definition-item-data-def-style def-cmake "Builtin Variable") + => + "DecVal" + ) ;check + (check (definition-item-data-def-style def-cmake "CMake Internal Variable") + => + "Variable" + ) ;check + (check (definition-item-data-def-style def-cmake "Internal Name") => "Variable") + (check (definition-item-data-def-style def-cmake "Variable Substitution") + => + "DecVal" + ) ;check + (check (definition-item-data-def-style def-cmake "@Variable Substitution") + => + "BaseN" + ) ;check + (check (definition-item-data-def-style def-cmake "Cache Variable Substitution") + => + "Float" + ) ;check + (check (definition-item-data-def-style def-cmake "Environment Variable Substitution") + => + "Float" + ) ;check + (check (definition-item-data-def-style def-cmake "Generator Expression") + => + "Others" + ) ;check + + ;; Nix 上下文与样式 + (check-true (not (not (definition-find-context def-nix "Expression")))) + (check-true (not (not (definition-find-context def-nix "comment")))) + (check-true (not (not (definition-find-context def-nix "block-comment")))) + (check-true (not (not (definition-find-context def-nix "string")))) + (check-true (not (not (definition-find-context def-nix "string2")))) + (check-true (not (not (definition-find-context def-nix "interp")))) + (check-true (not (not (definition-find-context def-nix "any-brace")))) + (check-true (not (not (definition-find-context def-nix "set")))) + (check-true (not (not (definition-find-context def-nix "set-value")))) + (check-true (not (not (definition-find-context def-nix "list")))) + (check-true (not (not (definition-find-context def-nix "paren")))) + (check-true (not (not (definition-find-context def-nix "let-expr")))) + (check-true (not (not (definition-find-context def-nix "if-expr")))) + (check-true (not (not (definition-find-context def-nix "then-expr")))) + (check-true (not (not (definition-find-context def-nix "with-expr")))) + (check-true (not (not (definition-find-context def-nix "assert-expr")))) + (check (definition-item-data-def-style def-nix "Keyword") => "Keyword") + (check (definition-item-data-def-style def-nix "Builtin") => "BuiltIn") + (check (definition-item-data-def-style def-nix "Constant") => "Constant") + (check (definition-item-data-def-style def-nix "Comment") => "Comment") + (check (definition-item-data-def-style def-nix "String") => "String") + (check (definition-item-data-def-style def-nix "Special Char") => "SpecialChar") + (check (definition-item-data-def-style def-nix "Int") => "DecVal") + (check (definition-item-data-def-style def-nix "Float") => "Float") + (check (definition-item-data-def-style def-nix "Identifier") => "Variable") + (check (definition-item-data-def-style def-nix "Symbol") => "Operator") + (check (definition-item-data-def-style def-nix "Operator") => "Operator") + (check (definition-item-data-def-style def-nix "Path") => "SpecialString") + + ;; BibTeX 上下文与样式 + (check-true (not (not (definition-find-context def-bib "Normal")))) + (check-true (not (not (definition-find-context def-bib "Entry")))) + (check-true (not (not (definition-find-context def-bib "Field")))) + (check-true (not (not (definition-find-context def-bib "CurlyBracket")))) + (check-true (not (not (definition-find-context def-bib "QuotedText")))) + (check-true (not (not (definition-find-context def-bib "StringCommand")))) + (check-true (not (not (definition-find-context def-bib "PreambleCommand")))) + (check-true (not (not (definition-find-context def-bib "latex-cmd")))) + (check (definition-item-data-def-style def-bib "Entry") => "Variable") + (check (definition-item-data-def-style def-bib "Command") => "Function") + (check (definition-item-data-def-style def-bib "Field") => "DataType") + (check (definition-item-data-def-style def-bib "Ref Key") => "Others") + (check (definition-item-data-def-style def-bib "LatexCommand") => "Char") + (check (definition-item-data-def-style def-bib "Comment") => "Comment") + (check (definition-item-data-def-style def-bib "String") => "String") + (check (definition-item-data-def-style def-bib "Error") => "Error") + + ;; LaTeX 上下文与样式 + (check-true (not (not (definition-find-context def-tex "Normal Text")))) + (check-true (not (not (definition-find-context def-tex "LatexMacro")))) + (check-true (not (not (definition-find-context def-tex "ContrSeq")))) + (check-true (not (not (definition-find-context def-tex "Comment")))) + (check-true (not (not (definition-find-context def-tex "FindBeginEnvironment"))) + ) ;check-true + (check-true (not (not (definition-find-context def-tex "FindEndEnvironment")))) + (check-true (not (not (definition-find-context def-tex "Verbatim")))) + (check-true (not (not (definition-find-context def-tex "BlockComment")))) + (check-true (not (not (definition-find-context def-tex "MathMode")))) + (check-true (not (not (definition-find-context def-tex "MathModeDisplay")))) + (check-true (not (not (definition-find-context def-tex "MathModeLatex")))) + (check-true (not (not (definition-find-context def-tex "MathModeLatexEquation"))) + ) ;check-true + (check-true (not (not (definition-find-context def-tex "MathModeEnv")))) + (check-true (not (not (definition-find-context def-tex "Sectioning")))) + (check-true (not (not (definition-find-context def-tex "SectioningInside")))) + (check-true (not (not (definition-find-context def-tex "Label")))) + (check-true (not (not (definition-find-context def-tex "LabelParameter")))) + (check-true (not (not (definition-find-context def-tex "FancyLabel")))) + (check-true (not (not (definition-find-context def-tex "FancyLabelParameter")))) + (check (definition-item-data-def-style def-tex "Structure") => "Keyword") + (check (definition-item-data-def-style def-tex "Builtin Macro") => "BuiltIn") + (check (definition-item-data-def-style def-tex "Macro") => "Function") + (check (definition-item-data-def-style def-tex "Macro Mathmode") + => + "SpecialChar" + ) ;check + (check (definition-item-data-def-style def-tex "Comment") => "Comment") + (check (definition-item-data-def-style def-tex "Math") => "SpecialString") + (check (definition-item-data-def-style def-tex "Environment") => "Extension") + (check (definition-item-data-def-style def-tex "Reference") => "Extension") + (check (definition-item-data-def-style def-tex "Verbatim") => "VerbatimString") + (check (definition-item-data-def-style def-tex "Sectioning Text") => "Normal") + (check (definition-item-data-def-style def-tex "Sectioning Macro") + => + "Function" + ) ;check + (check (definition-item-data-def-style def-tex "Sectioning Math") + => + "SpecialString" + ) ;check + (check (definition-item-data-def-style def-tex "Error") => "Error") + + ;; Haskell 上下文与样式 + (check-true (not (not (definition-find-context def-hs "code")))) + (check-true (not (not (definition-find-context def-hs "pragma")))) + (check-true (not (not (definition-find-context def-hs "line-comment")))) + (check-true (not (not (definition-find-context def-hs "block-comment")))) + (check-true (not (not (definition-find-context def-hs "char")))) + (check-true (not (not (definition-find-context def-hs "string")))) + (check-true (not (not (definition-find-context def-hs "infix")))) + (check-true (not (not (definition-find-context def-hs "import-ctx")))) + (check (definition-item-data-def-style def-hs "Keyword") => "Keyword") + (check (definition-item-data-def-style def-hs "Type Prelude") => "DataType") + (check (definition-item-data-def-style def-hs "Function Prelude") => "Function") + (check (definition-item-data-def-style def-hs "Data Prelude") => "DataType") + (check (definition-item-data-def-style def-hs "Class Prelude") => "DataType") + (check (definition-item-data-def-style def-hs "Comment") => "Comment") + (check (definition-item-data-def-style def-hs "Pragma") => "Others") + (check (definition-item-data-def-style def-hs "Char") => "Char") + (check (definition-item-data-def-style def-hs "String") => "String") + (check (definition-item-data-def-style def-hs "Hex") => "BaseN") + (check (definition-item-data-def-style def-hs "Float") => "Float") + (check (definition-item-data-def-style def-hs "Decimal") => "DecVal") + (check (definition-item-data-def-style def-hs "Operator") => "Operator") + (check (definition-item-data-def-style def-hs "Type") => "DataType") + (check (definition-item-data-def-style def-hs "Function Infix") => "Others") + (check (definition-item-data-def-style def-hs "EnumFromTo") => "Others") +) ;let + +(check-report) diff --git a/highlight/tests/liii/highlight/definition/load-syntax-definition-test.scm b/highlight/tests/liii/highlight/definition/load-syntax-definition-test.scm new file mode 100644 index 0000000..ada36ec --- /dev/null +++ b/highlight/tests/liii/highlight/definition/load-syntax-definition-test.scm @@ -0,0 +1,170 @@ +;; load-syntax-definition +;; 根据语言名称从 highlight/resources/syntax/.json 文件加载语法定义。 +;; +;; 语法 +;; ---- +;; (load-syntax-definition name) +;; +;; 参数 +;; ---- +;; name : string +;; 语言标识,如 "c"、"cpp"、"json"、"scheme"(大小写不敏感)。 +;; +;; 返回值 +;; ---- +;; +;; 解析后的语法定义对象。 +;; +;; 说明 +;; ---- +;; 本文件覆盖各语言定义的名称、大小写、初始上下文、扩展名与 Scheme 上下文样式, +;; 以及每次加载返回新对象的语义。其余语言的上下文与样式别名回归测试分别在 +;; load-syntax-definition-langs-1-test.scm、langs-2-test.scm、langs-3-test.scm。 + +(import (scheme base) (liii check) (liii highlight definition)) + +(check-set-mode! 'report-failed) + +(let ((def-scm (load-syntax-definition "scheme")) + (def-json (load-syntax-definition "json")) + (def-cpp (load-syntax-definition "cpp")) + (def-c (load-syntax-definition "c")) + (def-lua (load-syntax-definition "lua")) + (def-md (load-syntax-definition "markdown")) + (def-bash (load-syntax-definition "bash")) + (def-js (load-syntax-definition "javascript")) + (def-py (load-syntax-definition "python")) + (def-rs (load-syntax-definition "rust")) + (def-ts (load-syntax-definition "typescript")) + (def-yaml (load-syntax-definition "yaml")) + (def-toml (load-syntax-definition "toml")) + (def-sql (load-syntax-definition "sql")) + (def-rb (load-syntax-definition "ruby")) + (def-php (load-syntax-definition "php")) + (def-kt (load-syntax-definition "kotlin")) + (def-swift (load-syntax-definition "swift")) + (def-vue (load-syntax-definition "vue")) + (def-cmake (load-syntax-definition "cmake")) + (def-nix (load-syntax-definition "nix")) + (def-bib (load-syntax-definition "bibtex")) + (def-tex (load-syntax-definition "latex")) + (def-hs (load-syntax-definition "haskell")) + ) ; + ;; 名称与大小写不敏感 + (check (definition? def-scm) => #t) + (check (definition-name def-scm) => "Scheme") + (check (definition-name (load-syntax-definition "C")) => "C") + (check (definition-name (load-syntax-definition "BASH")) => "Bash") + + (check (definition-name def-json) => "JSON") + (check (definition-name def-cpp) => "C++") + (check (definition-name def-c) => "C") + (check (definition-name def-lua) => "Lua") + (check (definition-name def-md) => "Markdown") + (check (definition-name def-bash) => "Bash") + (check (definition-name def-js) => "JavaScript") + (check (definition-name def-py) => "Python") + (check (definition-name def-rs) => "Rust") + (check (definition-name def-ts) => "TypeScript") + (check (definition-name def-yaml) => "YAML") + (check (definition-name def-toml) => "TOML") + (check (definition-name def-sql) => "SQL") + (check (definition-name def-rb) => "Ruby") + (check (definition-name def-php) => "PHP") + (check (definition-name def-kt) => "Kotlin") + (check (definition-name def-swift) => "Swift") + (check (definition-name def-vue) => "Vue") + (check (definition-name def-cmake) => "CMake") + (check (definition-name def-nix) => "Nix") + (check (definition-name def-bib) => "BibTeX") + (check (definition-name def-tex) => "LaTeX") + (check (definition-name def-hs) => "Haskell") + + ;; 初始上下文 + (check (definition-initial-context-name def-scm) => "Level0") + (check (definition-initial-context-name def-json) => "Normal") + (check (definition-initial-context-name def-cpp) => "Normal") + (check (definition-initial-context-name def-c) => "Normal") + (check (definition-initial-context-name def-lua) => "Normal") + (check (definition-initial-context-name def-md) => "Normal") + (check (definition-initial-context-name def-bash) => "Normal") + (check (definition-initial-context-name def-js) => "Normal") + (check (definition-initial-context-name def-py) => "Normal") + (check (definition-initial-context-name def-rs) => "Normal") + (check (definition-initial-context-name def-ts) => "Normal") + (check (definition-initial-context-name def-yaml) => "normal") + (check (definition-initial-context-name def-toml) => "Toml") + (check (definition-initial-context-name def-sql) => "Normal") + (check (definition-initial-context-name def-rb) => "Ruby") + (check (definition-initial-context-name def-php) => "start") + (check (definition-initial-context-name def-kt) => "Normal") + (check (definition-initial-context-name def-swift) => "Normal") + (check (definition-initial-context-name def-vue) => "Normal") + (check (definition-initial-context-name def-cmake) => "Normal Text") + (check (definition-initial-context-name def-nix) => "Expression") + (check (definition-initial-context-name def-bib) => "Normal") + (check (definition-initial-context-name def-tex) => "Normal Text") + (check (definition-initial-context-name def-hs) => "code") + + ;; 扩展名 + (check (definition-extensions def-scm) => '("*.scm" "*.ss" "*.scheme")) + (check (definition-extensions def-json) + => + '("*.json" "*.jsonl" "*.ndjson" "*.geojson") + ) ;check + (check-true + (not (not (member "*.cpp" (definition-extensions def-cpp)))) + ) ;check-true + (check-true + (not (not (member "*.hpp" (definition-extensions def-cpp)))) + ) ;check-true + (check-true + (not (not (member "*.c" (definition-extensions def-c)))) + ) ;check-true + (check-true + (not (not (member "*.h" (definition-extensions def-c)))) + ) ;check-true + (check-true + (not (not (member "*.lua" (definition-extensions def-lua)))) + ) ;check-true + (check-true + (not (not (member "*.rockspec" (definition-extensions def-lua)))) + ) ;check-true + (check-true + (not (not (member "*.md" (definition-extensions def-md)))) + ) ;check-true + (check-true + (not (not (member "*.markdown" (definition-extensions def-md)))) + ) ;check-true + (check-true + (not (not (member "*.sh" (definition-extensions def-bash)))) + ) ;check-true + (check-true + (not (not (member "*.bash" (definition-extensions def-bash)))) + ) ;check-true + (check-true + (not (not (member "*.envrc" (definition-extensions def-bash)))) + ) ;check-true + (check-true + (not (not (member "PKGBUILD" (definition-extensions def-bash)))) + ) ;check-true + + ;; Scheme 上下文与样式 + (check-true (not (not (definition-find-context def-scm "Level0")))) + (check-true (not (not (definition-find-context def-scm "Level1")))) + (check-true (not (not (definition-find-context def-scm "comment")))) + (check-true (not (not (definition-find-context def-scm "multiline-comment")))) + (check-true (not (not (definition-find-context def-scm "string")))) + (check-true (not (not (definition-find-context def-scm "char-lit")))) + (check (definition-item-data-def-style def-scm "Keyword") => "Keyword") + (check (definition-item-data-def-style def-scm "Comment") => "Comment") + (check (definition-item-data-def-style def-scm "String") => "String") + (check-true + (> (length (context-def-rules (definition-find-context def-scm "Level0"))) 0) + ) ;check-true + + ;; 每次调用返回新对象 + (check-true (not (eq? def-scm (load-syntax-definition "scheme")))) +) ;let + +(check-report) diff --git a/highlight/tests/liii/highlight/definition/make-context-def-test.scm b/highlight/tests/liii/highlight/definition/make-context-def-test.scm new file mode 100644 index 0000000..00474b0 --- /dev/null +++ b/highlight/tests/liii/highlight/definition/make-context-def-test.scm @@ -0,0 +1,61 @@ +;; make-context-def +;; 构造上下文定义对象。 +;; +;; 语法 +;; ---- +;; (make-context-def name) +;; (make-context-def name attribute line-end-context fallthrough-context rules) +;; +;; 参数 +;; ---- +;; name : string +;; 上下文名称。 +;; +;; attribute : string (可选) +;; 默认 itemData 名称,默认 "Normal"。 +;; +;; line-end-context : list (可选) +;; 行尾切换指令,默认 '(stay)。 +;; +;; fallthrough-context : list (可选) +;; 无规则匹配时的切换指令,默认 #f。 +;; +;; rules : list (可选) +;; 规则列表,默认 '()。 +;; +;; 返回值 +;; ---- +;; +;; 上下文定义对象。 + +(import (scheme base) + (liii check) + (liii highlight rule) + (liii highlight definition) +) ;import + +(check-set-mode! 'report-failed) + +(let ((c (make-context-def "Level0"))) + (check (context-def-name c) => "Level0") + (check (context-def-attribute c) => "Normal") + (check (context-def-line-end-context c) => '(stay)) + (check (context-def-fallthrough-context c) => #f) + (check (context-def-rules c) => '()) +) ;let + +(let ((c + (make-context-def "comment" + "Comment" + '(pop 1) + #f + (list (make-rule 'detect-identifier "Comment" '(stay) #f)) + ) ;make-context-def + ) ;c + ) ; + (check (context-def-attribute c) => "Comment") + (check (context-def-line-end-context c) => '(pop 1)) + (check (= (length (context-def-rules c)) 1) => #t) +) ;let + +(check-report) diff --git a/highlight/tests/liii/highlight/definition/make-definition-test.scm b/highlight/tests/liii/highlight/definition/make-definition-test.scm new file mode 100644 index 0000000..8142b88 --- /dev/null +++ b/highlight/tests/liii/highlight/definition/make-definition-test.scm @@ -0,0 +1,57 @@ +;; make-definition +;; 构造完整语法定义对象。 +;; +;; 语法 +;; ---- +;; (make-definition name) +;; (make-definition name extensions initial-context-name contexts item-datas) +;; +;; 参数 +;; ---- +;; name : string +;; 语言名称。 +;; +;; extensions : list (可选) +;; 文件扩展名列表,默认 '()。 +;; +;; initial-context-name : string (可选) +;; 初始上下文名称,默认 "Level0"。 +;; +;; contexts : list (可选) +;; alist (("Name" . ) ...),默认 '()。 +;; +;; item-datas : list (可选) +;; alist (("ItemName" . style-name) ...),默认 '()。 +;; +;; 返回值 +;; ---- +;; +;; 语法定义对象。 + +(import (scheme base) (liii check) (liii highlight definition)) + +(check-set-mode! 'report-failed) + +(let ((d (make-definition "Scheme"))) + (check (definition-name d) => "Scheme") + (check (definition-extensions d) => '()) + (check (definition-initial-context-name d) => "Level0") + (check (definition-contexts d) => '()) + (check (definition-item-datas d) => '()) +) ;let + +(let ((d + (make-definition "JSON" + '("*.json") + "Level0" + (list (cons "Level0" (make-context-def "Level0"))) + (list (cons "Key" "Others")) + ) ;make-definition + ) ;d + ) ; + (check (definition-extensions d) => '("*.json")) + (check (= (length (definition-contexts d)) 1) => #t) + (check (= (length (definition-item-datas d)) 1) => #t) +) ;let + +(check-report) diff --git a/highlight/tests/liii/highlight/definition/parse-definition-json-test.scm b/highlight/tests/liii/highlight/definition/parse-definition-json-test.scm new file mode 100644 index 0000000..35f0d94 --- /dev/null +++ b/highlight/tests/liii/highlight/definition/parse-definition-json-test.scm @@ -0,0 +1,130 @@ +;; parse-definition-json +;; 从 JSON 对象解析整套语法定义。 +;; +;; 语法 +;; ---- +;; (parse-definition-json root) +;; +;; 参数 +;; ---- +;; root : json-object +;; 语法定义 JSON 对象。 +;; +;; 返回值 +;; ---- +;; +;; 解析后的语法定义对象。 + +(import (scheme base) + (liii check) + (liii json) + (liii path) + (liii highlight definition) +) ;import +(check-set-mode! 'report-failed) + +;; 资源解析:gf test 目录模式会 chdir 到域根,兼容域内与仓库根两种 cwd + +(define (resource-file rel) + (let ((local (string-append "highlight/resources/" rel)) + (alt (string-append "resources/" rel)) + ) ; + (if (path-exists? local) local alt) + ) ;let +) ;define + +;; 最小对象:使用默认值 +(let* ((raw (string->json "{\"name\": \"Tiny\"}")) (def (parse-definition-json raw))) + (check (definition-name def) => "Tiny") + (check (definition-initial-context-name def) => "Level0") + (check (definition-contexts def) => '()) + (check (definition-item-datas def) => '()) +) ;let* + +;; 完整结构:contexts、rules、item-datas +(let* ((raw (string->json (string-append "{\"name\": \"Demo\"," + " \"extensions\": [\"*.demo\"]," + " \"initial-context\": \"Base\"," + " \"item-datas\": {\"Keyword\": \"Keyword\"}," + " \"contexts\": {\"Base\": {\"attribute\": \"Normal\"," + " \"rules\": [{\"type\": \"DetectChar\", \"char\": \";\"," + " \"attribute\": \"Comment\", \"context\": \"#stay\"}]}}" + "}" + ) ;string-append + ) ;string->json + ) ;raw + (def (parse-definition-json raw)) + (ctx (definition-find-context def "Base")) + ) ; + (check (definition-name def) => "Demo") + (check (definition-extensions def) => '("*.demo")) + (check (definition-initial-context-name def) => "Base") + (check-true (not (not ctx))) + (check (context-def-attribute ctx) => "Normal") + (check (= (length (context-def-rules ctx)) 1) => #t) + (check (definition-item-data-def-style def "Keyword") => "Keyword") +) ;let* + +;; 从数据文件加载真实 Scheme 定义 +(let* ((raw-def (string->json (path-read-text (resource-file "syntax/scheme.json")))) + (def (parse-definition-json raw-def)) + ) ; + (check (definition-name def) => "Scheme") + (check (definition-initial-context-name def) => "Level0") +) ;let* + +;; 从数据文件加载真实 JSON 定义 +(let* ((raw-def (string->json (path-read-text (resource-file "syntax/json.json")))) + (def (parse-definition-json raw-def)) + ) ; + (check (definition-name def) => "JSON") + (check (definition-initial-context-name def) => "Normal") + (check-true (not (not (definition-find-context def "Normal")))) + (check-true (not (not (definition-find-context def "Pair")))) +) ;let* + +;; 从数据文件加载真实 C++ 定义 +(let* ((raw-def (string->json (path-read-text (resource-file "syntax/cpp.json")))) + (def (parse-definition-json raw-def)) + ) ; + (check (definition-name def) => "C++") + (check (definition-initial-context-name def) => "Normal") + (check-true (not (not (definition-find-context def "Normal")))) + (check-true (not (not (definition-find-context def "preprocessor")))) +) ;let* + +;; 从数据文件加载真实 C 定义 +(let* ((raw-def (string->json (path-read-text (resource-file "syntax/c.json")))) + (def (parse-definition-json raw-def)) + ) ; + (check (definition-name def) => "C") + (check (definition-initial-context-name def) => "Normal") + (check-true (not (not (definition-find-context def "Normal")))) + (check-true (not (not (definition-find-context def "preprocessor")))) +) ;let* + +;; 从数据文件加载真实 Lua 定义 +(let* ((raw-def (string->json (path-read-text (resource-file "syntax/lua.json")))) + (def (parse-definition-json raw-def)) + ) ; + (check (definition-name def) => "Lua") + (check (definition-initial-context-name def) => "Normal") + (check-true (not (not (definition-find-context def "Normal")))) + (check-true (not (not (definition-find-context def "comment-line")))) + (check-true (not (not (definition-find-context def "comment-block")))) + (check-true (not (not (definition-find-context def "raw-string")))) +) ;let* + +;; 从数据文件加载真实 Bash 定义 +(let* ((raw-def (string->json (path-read-text (resource-file "syntax/bash.json")))) + (def (parse-definition-json raw-def)) + ) ; + (check (definition-name def) => "Bash") + (check (definition-initial-context-name def) => "Normal") + (check-true (not (not (definition-find-context def "Normal")))) + (check-true (not (not (definition-find-context def "comment")))) + (check-true (not (not (definition-find-context def "string-double")))) + (check-true (not (not (definition-find-context def "var-brace")))) +) ;let* + +(check-report) diff --git a/highlight/tests/liii/highlight/highlighter/README.md b/highlight/tests/liii/highlight/highlighter/README.md new file mode 100644 index 0000000..c8fd608 --- /dev/null +++ b/highlight/tests/liii/highlight/highlighter/README.md @@ -0,0 +1,22 @@ +# (liii highlight highlighter) 模块函数分类索引 + +`(liii highlight highlighter)` 提供了高亮引擎状态机核心与多行文本着色分词功能。 + +## 查看函数文档 + +使用以下命令查看函数文档和测试用例: +```bash +gf doc liii/highlight/highlighter "函数名" +``` + +## 函数分类索引 + +### 一、高亮状态模型 +- `make-highlight-state` - 创建高亮引擎状态对象 +- `highlight-state?` - 判断对象是否为高亮状态 +- `highlight-state-stack` - 获取上下文状态栈列表 +- `initial-highlight-state` - 获取语法定义的初始高亮状态 + +### 二、文本高亮处理 +- `highlight-line` - 高亮单行文本并返回 spans 与下一行状态 +- `highlight-text` - 高亮整段多行文本并返回各行 spans 序列 diff --git a/highlight/tests/liii/highlight/highlighter/highlight-line-test.scm b/highlight/tests/liii/highlight/highlighter/highlight-line-test.scm new file mode 100644 index 0000000..12d8df2 --- /dev/null +++ b/highlight/tests/liii/highlight/highlighter/highlight-line-test.scm @@ -0,0 +1,369 @@ +;; highlight-line +;; 高亮单行文本。 +;; +;; 语法 +;; ---- +;; (highlight-line text state def) +;; +;; 参数 +;; ---- +;; text : string +;; 当前行文本(不含换行符)。 +;; +;; state : highlight-state? +;; 进入本行前的高亮状态。 +;; +;; def : definition? +;; 语法定义对象。 +;; +;; 返回值 +;; ---- +;; values +;; 两个值:spans 列表 '((offset length item-data) ...) 与下一行的高亮状态。 + +(import (scheme base) + (liii check) + (liii highlight definition) + (liii highlight highlighter) +) ;import + +(check-set-mode! 'report-failed) + +(define (span-with-style? spans style) + (any (lambda (sp) (string=? (caddr sp) style)) spans) +) ;define + +(let ((def (load-syntax-definition "scheme"))) + ;; define 语句:识别 Extension 与 DecVal + (let-values (((spans next-state) + (highlight-line "(define x 42)" (initial-highlight-state def) def) + ) ; + ) ; + (check-true (pair? spans)) + (check-true (span-with-style? spans "Extension")) + (check-true (span-with-style? spans "DecVal")) + (check (car (highlight-state-stack next-state)) => "Level0") + ) ;let-values + + ;; 单行注释:整行 Comment 且行尾自动 pop 回 Level0 + (let-values (((spans next-state) + (highlight-line ";; a comment" (initial-highlight-state def) def) + ) ; + ) ; + (check-true (span-with-style? spans "Comment")) + (check (car (highlight-state-stack next-state)) => "Level0") + ) ;let-values + + ;; 字符串跨行:行尾进入 string 上下文 + (let-values (((spans s1) (highlight-line "(display \"abc" (initial-highlight-state def) def)) + ) ; + (check (car (highlight-state-stack s1)) => "string") + ;; 第二行仍在字符串中 + (let-values (((spans2 s2) (highlight-line "still string" s1 def))) + (check (car (highlight-state-stack s2)) => "string") + ) ;let-values + ) ;let-values + + ;; 多行注释跨行 + (let-values (((spans1 s1) (highlight-line "#| start" (initial-highlight-state def) def))) + (check (car (highlight-state-stack s1)) => "multiline-comment") + (let-values (((spans2 s2) (highlight-line "end |#" s1 def))) + (check (car (highlight-state-stack s2)) => "Level0") + ) ;let-values + ) ;let-values + + ;; 空行:spans 为空,状态保持 + (let-values (((spans next-state) (highlight-line "" (initial-highlight-state def) def))) + (check spans => '()) + (check (car (highlight-state-stack next-state)) => "Level0") + ) ;let-values +) ;let + +;; JSON 行级高亮测试 +(let ((jdef (load-syntax-definition "json"))) + ;; 键值对:在对象内部识别 DataType、Float、Function + (let-values (((spans next-state) + (highlight-line "{\"key\": 3.14}" (initial-highlight-state jdef) jdef) + ) ; + ) ; + (check-true (span-with-style? spans "DataType")) + (check-true (span-with-style? spans "Float")) + (check-true (span-with-style? spans "Function")) + ) ;let-values + + ;; 合法与非法转义序列 + (let-values (((spans1 s1) (highlight-line "\"\\n\"" (initial-highlight-state jdef) jdef))) + (check-true (span-with-style? spans1 "Char")) + ) ;let-values + + (let-values (((spans2 s2) (highlight-line "\"\\a\"" (initial-highlight-state jdef) jdef))) + (check-true (span-with-style? spans2 "Error")) + ) ;let-values +) ;let + +;; C++ 行级高亮测试 +(let ((cppdef (load-syntax-definition "cpp"))) + ;; 预处理器与尖括号 include + (let-values (((spans next-state) + (highlight-line "#include " (initial-highlight-state cppdef) cppdef) + ) ; + ) ; + (check-true (span-with-style? spans "Preprocessor")) + (check-true (span-with-style? spans "String")) + ) ;let-values + + ;; 语句行:识别 DataType、Keyword、ControlFlow、Operator + (let-values (((spans next-state) + (highlight-line "int x = 42;" (initial-highlight-state cppdef) cppdef) + ) ; + ) ; + (check-true (span-with-style? spans "DataType")) + (check-true (span-with-style? spans "Operator")) + (check-true (span-with-style? spans "DecVal")) + ) ;let-values +) ;let + +;; C 行级高亮测试 +(let ((cdef (load-syntax-definition "c"))) + (let-values (((spans next-state) + (highlight-line "static const char *s = \"hello\";" + (initial-highlight-state cdef) + cdef + ) ;highlight-line + ) ; + ) ; + (check-true (span-with-style? spans "DataType")) + (check-true (span-with-style? spans "Operator")) + (check-true (span-with-style? spans "String")) + ) ;let-values +) ;let + +;; Lua 行级高亮测试 +(let ((luadef (load-syntax-definition "lua"))) + (let-values (((spans next-state) + (highlight-line "local function add(a, b) return a + b end" + (initial-highlight-state luadef) + luadef + ) ;highlight-line + ) ; + ) ; + (check-true (span-with-style? spans "Keyword")) + (check-true (span-with-style? spans "ControlFlow")) + (check-true (span-with-style? spans "Operator")) + ) ;let-values +) ;let + +;; Markdown 行级高亮测试 +(let ((mddef (load-syntax-definition "markdown"))) + ;; ATX 标题 + (let-values (((spans next-state) + (highlight-line "# Header 1" (initial-highlight-state mddef) mddef) + ) ; + ) ; + (check-true (span-with-style? spans "Header H1")) + ) ;let-values + + (let-values (((spans next-state) + (highlight-line "## Header 2" (initial-highlight-state mddef) mddef) + ) ; + ) ; + (check-true (span-with-style? spans "Header H2")) + ) ;let-values + + ;; 引用块 + (let-values (((spans next-state) + (highlight-line "> a quote block" (initial-highlight-state mddef) mddef) + ) ; + ) ; + (check-true (span-with-style? spans "Blockquote")) + ) ;let-values + + ;; 列表与复选框 + (let-values (((spans next-state) + (highlight-line "- [ ] todo task" (initial-highlight-state mddef) mddef) + ) ; + ) ; + (check-true (span-with-style? spans "List")) + ) ;let-values + + ;; 分隔线 + (let-values (((spans next-state) + (highlight-line "---" (initial-highlight-state mddef) mddef) + ) ; + ) ; + (check-true (span-with-style? spans "Horizontal Rule")) + ) ;let-values + + ;; 表格 + (let-values (((spans next-state) + (highlight-line "| col1 | col2 |" (initial-highlight-state mddef) mddef) + ) ; + ) ; + (check-true (span-with-style? spans "Table")) + ) ;let-values + + ;; 行内代码 + (let-values (((spans next-state) + (highlight-line "text `code` more" (initial-highlight-state mddef) mddef) + ) ; + ) ; + (check-true (span-with-style? spans "Code")) + ) ;let-values + + ;; 粗体 + (let-values (((spans next-state) + (highlight-line "text **bold** more" (initial-highlight-state mddef) mddef) + ) ; + ) ; + (check-true (span-with-style? spans "Strong Text")) + ) ;let-values + + ;; 代码块起始与闭合 + (let-values (((spans1 s1) (highlight-line "```scheme" (initial-highlight-state mddef) mddef)) + ) ; + (check-true (span-with-style? spans1 "Fenced Code")) + ;; 代码块内部执行 Scheme 高亮 + (let-values (((spans2 s2) (highlight-line "(define x 42)" s1 mddef))) + (check-true (span-with-style? spans2 "Extension")) + (check-true (span-with-style? spans2 "DecVal")) + ;; 闭合代码块 + (let-values (((spans3 s3) (highlight-line "```" s2 mddef))) + (check-true (span-with-style? spans3 "Fenced Code")) + ) ;let-values + ) ;let-values + ) ;let-values +) ;let + +;; Bash 行级高亮测试 +(let ((bashdef (load-syntax-definition "bash"))) + ;; 变量赋值与命令替换:识别 Variable、Operator 与 Builtin + (let-values (((spans next-state) + (highlight-line "local name=${USER:-world}" + (initial-highlight-state bashdef) + bashdef + ) ;highlight-line + ) ; + ) ; + (check-true (span-with-style? spans "Builtin")) + (check-true (span-with-style? spans "Operator")) + (check-true (span-with-style? spans "Variable")) + ) ;let-values + + ;; 控制流关键字 + (let-values (((spans next-state) + (highlight-line "if [ -f \"/etc/passwd\" ]; then" + (initial-highlight-state bashdef) + bashdef + ) ;highlight-line + ) ; + ) ; + (check-true (span-with-style? spans "ControlFlow")) + (check-true (span-with-style? spans "String")) + ) ;let-values + + ;; 注释与双引号字符串中的变量 + (let-values (((spans next-state) + (highlight-line "echo \"hi $USER\" # greeting" + (initial-highlight-state bashdef) + bashdef + ) ;highlight-line + ) ; + ) ; + (check-true (span-with-style? spans "Builtin")) + (check-true (span-with-style? spans "String")) + (check-true (span-with-style? spans "Variable")) + (check-true (span-with-style? spans "Comment")) + ) ;let-values + + ;; 字符串跨行仍保持 String 上下文 + (let-values (((spans s1) + (highlight-line "echo \"unterminated" (initial-highlight-state bashdef) bashdef) + ) ; + ) ; + (check (car (highlight-state-stack s1)) => "string-double") + (let-values (((spans2 s2) (highlight-line "still string\"" s1 bashdef))) + (check (car (highlight-state-stack s2)) => "Normal") + ) ;let-values + ) ;let-values +) ;let + + +;; JavaScript 行级高亮测试 +(let ((jsdef (load-syntax-definition "javascript"))) + ;; import/export 模块关键字与字符串 + (let-values (((spans next-state) + (highlight-line "import fs from 'fs';" (initial-highlight-state jsdef) jsdef) + ) ; + ) ; + (check-true (span-with-style? spans "Module")) + (check-true (span-with-style? spans "String")) + ) ;let-values + + ;; 函数声明与控制流 + (let-values (((spans next-state) + (highlight-line "if (a && b) { return null; }" + (initial-highlight-state jsdef) + jsdef + ) ;highlight-line + ) ; + ) ; + (check-true (span-with-style? spans "ControlFlow")) + (check-true (span-with-style? spans "Symbol")) + (check-true (span-with-style? spans "Primitives")) + ) ;let-values + + ;; 函数声明识别函数名 + (let-values (((spans next-state) + (highlight-line "function greet(name) {" (initial-highlight-state jsdef) jsdef) + ) ; + ) ; + (check-true (span-with-style? spans "Keyword")) + (check-true (span-with-style? spans "Function Declaration")) + ) ;let-values + + ;; 数字字面量与对象成员 + (let-values (((spans next-state) + (highlight-line "const x = 0xFF + 1.5e3;" (initial-highlight-state jsdef) jsdef) + ) ; + ) ; + (check-true (span-with-style? spans "Hex")) + (check-true (span-with-style? spans "Float")) + ) ;let-values + + ;; 十进制字面量 + (let-values (((spans next-state) + (highlight-line "const n = 42;" (initial-highlight-state jsdef) jsdef) + ) ; + ) ; + (check-true (span-with-style? spans "Decimal")) + ) ;let-values + + ;; 模板字符串与替换 + (let-values (((spans next-state) + (highlight-line "const s = `hi ${name}`;" (initial-highlight-state jsdef) jsdef) + ) ; + ) ; + (check-true (span-with-style? spans "Template")) + (check-true (span-with-style? spans "Substitution")) + ) ;let-values + + ;; 多行注释跨行 + (let-values (((spans s1) (highlight-line "/* start" (initial-highlight-state jsdef) jsdef))) + (check (car (highlight-state-stack s1)) => "comment-block") + (let-values (((spans2 s2) (highlight-line "end */" s1 jsdef))) + (check (car (highlight-state-stack s2)) => "Normal") + (check-true (span-with-style? spans2 "Comment")) + ) ;let-values + ) ;let-values + + ;; 点号成员访问 + (let-values (((spans next-state) + (highlight-line "console.log(value);" (initial-highlight-state jsdef) jsdef) + ) ; + ) ; + (check-true (span-with-style? spans "Built-in Objects")) + (check-true (span-with-style? spans "Object Member")) + ) ;let-values +) ;let + +(check-report) diff --git a/highlight/tests/liii/highlight/highlighter/highlight-state-p-test.scm b/highlight/tests/liii/highlight/highlighter/highlight-state-p-test.scm new file mode 100644 index 0000000..42547e5 --- /dev/null +++ b/highlight/tests/liii/highlight/highlighter/highlight-state-p-test.scm @@ -0,0 +1,27 @@ +;; highlight-state? +;; 判断对象是否为高亮状态。 +;; +;; 语法 +;; ---- +;; (highlight-state? obj) +;; +;; 参数 +;; ---- +;; obj : any +;; 待判断的对象。 +;; +;; 返回值 +;; ---- +;; boolean +;; 是高亮状态返回 #t,否则 #f。 + +(import (scheme base) (liii check) (liii highlight highlighter)) + +(check-set-mode! 'report-failed) + +(check-true (highlight-state? (make-highlight-state))) +(check-false (highlight-state? '("Level0"))) +(check-false (highlight-state? "state")) +(check-false (highlight-state? #f)) + +(check-report) diff --git a/highlight/tests/liii/highlight/highlighter/highlight-state-stack-test.scm b/highlight/tests/liii/highlight/highlighter/highlight-state-stack-test.scm new file mode 100644 index 0000000..74db88a --- /dev/null +++ b/highlight/tests/liii/highlight/highlighter/highlight-state-stack-test.scm @@ -0,0 +1,39 @@ +;; highlight-state-stack +;; 读取高亮状态的上下文栈。 +;; +;; 语法 +;; ---- +;; (highlight-state-stack s) +;; +;; 参数 +;; ---- +;; s : highlight-state? +;; 高亮状态对象。 +;; +;; 返回值 +;; ---- +;; list of string +;; 上下文名称栈,栈顶在 car。 + +(import (scheme base) + (liii check) + (liii highlight definition) + (liii highlight highlighter) +) ;import + +(check-set-mode! 'report-failed) + +(check (highlight-state-stack (make-highlight-state)) => '("Level0")) +(check (highlight-state-stack (make-highlight-state '("comment" "Level0"))) + => + '("comment" "Level0") +) ;check + +;; 初始状态栈只有一个初始上下文 +(check (highlight-state-stack (initial-highlight-state (load-syntax-definition "scheme")) + ) ;highlight-state-stack + => + '("Level0") +) ;check + +(check-report) diff --git a/highlight/tests/liii/highlight/highlighter/highlight-text-e2e-test.scm b/highlight/tests/liii/highlight/highlighter/highlight-text-e2e-test.scm new file mode 100644 index 0000000..78889cf --- /dev/null +++ b/highlight/tests/liii/highlight/highlighter/highlight-text-e2e-test.scm @@ -0,0 +1,270 @@ +;; highlight-text +;; 端到端高亮验证:对本仓库及本机关联仓库的真实源码文件执行 highlight-text。 +;; 这些用例依赖外部路径,均以 path-exists? 守卫,缺失时自动跳过,不产生失败。 +;; +;; 语法 +;; ---- +;; (highlight-text text def) +;; +;; 参数 +;; ---- +;; text : string +;; 多行文本。 +;; +;; def : definition? +;; 语法定义对象。 +;; +;; 返回值 +;; ---- +;; list +;; '((spans . "line-text") ...),每行一个元素。 + +(import (scheme base) + (scheme process-context) + (liii check) + (liii list) + (liii path) + (liii highlight definition) + (liii highlight highlighter) +) ;import + +(check-set-mode! 'report-failed) + +;; 端到端测试:本仓库 JSON 文件 +(let ((jdef (load-syntax-definition "json"))) + (for-each + (lambda (rel) + (let ((p (if (path-exists? rel) rel (string-append "../" rel)))) + (when (path-exists? p) + (let* ((text (path-read-text p)) (res (highlight-text text jdef))) + (check-true (> (length res) 0)) + ) ;let* + ) ;when + ) ;let + ) ;lambda + '("gfproject.json" "gf_check.json" "highlight/resources/syntax/json.json" + "highlight/resources/syntax/scheme.json") + ) ;for-each +) ;let + +;; 端到端测试:~/git/goldfish 仓库 JSON 文件 +(let* ((jdef (load-syntax-definition "json")) + (home (or (get-environment-variable "USERPROFILE") + (get-environment-variable "HOME") + "" + ) ;or + ) ;home + (gf-dir (string-append home "/git/goldfish")) + ) ; + (when (path-exists? gf-dir) + (for-each + (lambda (rel) + (let ((full (string-append gf-dir "/" rel))) + (when (path-exists? full) + (let* ((text (path-read-text full)) (res (highlight-text text jdef))) + (check-true (> (length res) 0)) + ) ;let* + ) ;when + ) ;let + ) ;lambda + '("gfproject.json" "gf_check.json" + "library/liii/json/schema/meta/draft2020-12/schema.json" + "repl/package.json" + "tools/pi/liii/pi/code/resources/all-in-one.schema.json") + ) ;for-each + ) ;when +) ;let* + +;; 对齐上游测试:KDE syntax-highlighting autotests 的 test.json.witherror +(let* ((jdef (load-syntax-definition "json")) + (home (or (get-environment-variable "USERPROFILE") + (get-environment-variable "HOME") + "" + ) ;or + ) ;home + (input-p (string-append home + "/git/syntax-highlighting/autotests/input/test.json.witherror" + ) ;string-append + ) ;input-p + (ref-p (string-append home + "/git/syntax-highlighting/autotests/reference/test.json.witherror.ref" + ) ;string-append + ) ;ref-p + ) ; + (when (and (path-exists? input-p) (path-exists? ref-p)) + (let* ((input-text (path-read-text input-p)) (res (highlight-text input-text jdef))) + ;; 22 行完整解析 + (check (= (length res) 22) => #t) + ;; 第 4 行包含转义字符 Char 和错误 Error + (let ((line4-spans (car (list-ref res 3)))) + (check-true + (any (lambda (sp) (string=? (caddr sp) "Char")) line4-spans) + ) ;check-true + (check-true + (any (lambda (sp) (string=? (caddr sp) "Error")) line4-spans) + ) ;check-true + ) ;let + ) ;let* + ) ;when +) ;let* + +;; 端到端测试:~/git/mogan 仓库 C++ 代码 +(let* ((cppdef (load-syntax-definition "cpp")) + (home (or (get-environment-variable "USERPROFILE") + (get-environment-variable "HOME") + "" + ) ;or + ) ;home + (mogan-dir (string-append home "/git/mogan")) + ) ; + (when (path-exists? mogan-dir) + (for-each + (lambda (rel) + (let ((full (string-append mogan-dir "/" rel))) + (when (path-exists? full) + (let* ((text (path-read-text full)) (res (highlight-text text cppdef))) + (check-true (> (length res) 0)) + ) ;let* + ) ;when + ) ;let + ) ;lambda + '("src/Data/Convert/convert.hpp" "src/Data/Convert/Generic/generic.cpp" + "src/Data/Document/new_data.hpp" "src/Data/History/archiver.cpp" + "3rdparty/argh/argh.h") + ) ;for-each + ) ;when +) ;let* + +;; 端到端测试:~/git/mogan 仓库 C 代码 +(let* ((cdef (load-syntax-definition "c")) + (home (or (get-environment-variable "USERPROFILE") + (get-environment-variable "HOME") + "" + ) ;or + ) ;home + (mogan-dir (string-append home "/git/mogan")) + ) ; + (when (path-exists? mogan-dir) + (for-each + (lambda (rel) + (let ((full (string-append mogan-dir "/" rel))) + (when (path-exists? full) + (let* ((text (path-read-text full)) (res (highlight-text text cdef))) + (check-true (> (length res) 0)) + ) ;let* + ) ;when + ) ;let + ) ;lambda + '("3rdparty/curl-8.21.0/lib/altsvc.c" "3rdparty/curl-8.21.0/lib/connect.c" + "3rdparty/curl-8.21.0/lib/cookie.c" + "3rdparty/curl-8.21.0/lib/cfilters.c") + ) ;for-each + ) ;when +) ;let* + +;; 端到端测试:~/git/mogan 仓库 Lua 代码 +(let* ((luadef (load-syntax-definition "lua")) + (home (or (get-environment-variable "USERPROFILE") + (get-environment-variable "HOME") + "" + ) ;or + ) ;home + (mogan-dir (string-append home "/git/mogan")) + ) ; + (when (path-exists? mogan-dir) + (for-each + (lambda (rel) + (let ((full (string-append mogan-dir "/" rel))) + (when (path-exists? full) + (let* ((text (path-read-text full)) (res (highlight-text text luadef))) + (check-true (> (length res) 0)) + ) ;let* + ) ;when + ) ;let + ) ;lambda + '("xmake.lua" "src/Scheme/Glue/build_glue.lua" + "src/Scheme/Glue/glue_basic.lua" "xmake/packages/a/argh/xmake.lua" + "xmake/targets/imgui.lua" "3rdparty/doctest.lua") + ) ;for-each + ) ;when +) ;let* + +;; 端到端测试:~/git/goldfish 仓库 Markdown 文件高亮 +(let* ((mddef (load-syntax-definition "markdown")) + (home (or (get-environment-variable "USERPROFILE") + (get-environment-variable "HOME") + "" + ) ;or + ) ;home + (gf-dir (string-append home "/git/goldfish")) + ) ; + (when (path-exists? gf-dir) + (for-each + (lambda (rel) + (let ((full (string-append gf-dir "/" rel))) + (when (path-exists? full) + (let* ((text (path-read-text full)) (res (highlight-text text mddef))) + (check-true (> (length res) 0)) + ) ;let* + ) ;when + ) ;let + ) ;lambda + '("README.md" "README_ZH.md" "AGENTS.md" "tools/pi/README.md" + "library/tests/liii/cmark/README.md" "3rdparty/cpr/README.md" + "tools/json/tests/liii/goldjson/README.md" + "demo/tests/liii/tui/snake/README.md") + ) ;for-each + + ;; 针对 tools/pi/README.md 校验 Scheme 代码块规则生效 + (let ((pi-readme (string-append gf-dir "/tools/pi/README.md"))) + (when (path-exists? pi-readme) + (let* ((text (path-read-text pi-readme)) + (res (highlight-text text mddef)) + (found-keyword? #f) + ) ; + (for-each + (lambda (pair) + (let ((spans (car pair)) (line (cdr pair))) + (when (string=? line "(import (liii pi code config))") + (when + (any (lambda (sp) (string=? (caddr sp) "Keyword")) spans) + (set! found-keyword? #t) + ) ;when + ) ;when + ) ;let + ) ;lambda + res + ) ;for-each + (check-true found-keyword?) + ) ;let* + ) ;when + ) ;let + + ;; 针对 3rdparty/cpr/README.md 校验 C++ 代码块规则生效 + (let ((cpr-readme (string-append gf-dir "/3rdparty/cpr/README.md"))) + (when (path-exists? cpr-readme) + (let* ((text (path-read-text cpr-readme)) + (res (highlight-text text mddef)) + (found-preproc? #f) + ) ; + (for-each + (lambda (pair) + (let ((spans (car pair)) (line (cdr pair))) + (when (string=? line "#include ") + (when + (any (lambda (sp) (string=? (caddr sp) "Preprocessor")) spans) + (set! found-preproc? #t) + ) ;when + ) ;when + ) ;let + ) ;lambda + res + ) ;for-each + (check-true found-preproc?) + ) ;let* + ) ;when + ) ;let + ) ;when +) ;let* + +(check-report) diff --git a/highlight/tests/liii/highlight/highlighter/highlight-text-test.scm b/highlight/tests/liii/highlight/highlighter/highlight-text-test.scm new file mode 100644 index 0000000..79e2aed --- /dev/null +++ b/highlight/tests/liii/highlight/highlighter/highlight-text-test.scm @@ -0,0 +1,306 @@ +;; highlight-text +;; 高亮整段多行文本。 +;; +;; 语法 +;; ---- +;; (highlight-text text def) +;; +;; 参数 +;; ---- +;; text : string +;; 多行文本,可含 \n 或 \r\n 换行。 +;; +;; def : definition? +;; 语法定义对象。 +;; +;; 返回值 +;; ---- +;; list +;; '((spans . "line-text") ...),每行一个元素。 + +(import (scheme base) + (liii check) + (liii list) + (liii highlight definition) + (liii highlight highlighter) +) ;import + +(check-set-mode! 'report-failed) + +(let ((def (load-syntax-definition "scheme"))) + ;; 三行文本(末尾换行产生一个空行元素) + (let ((res (highlight-text "(define (foo x)\n (+ x 1))\n" def))) + (check (= (length res) 3) => #t) + ;; 每行结构为 (spans . line-text) + (check (cdr (car res)) => "(define (foo x)") + (check (cdr (cadr res)) => " (+ x 1))") + (check (cdr (caddr res)) => "") + ) ;let + + ;; 跨行字符串保持状态 + (let ((res (highlight-text "\"abc\ndef\"\n" def))) + ;; 第二行 def" 应包含 String span + (check-true + (any (lambda (sp) (string=? (caddr sp) "String")) (caadr res)) + ) ;check-true + ) ;let + + ;; CRLF 换行 + (let ((res (highlight-text "a\r\nb\r\n" def))) + (check (= (length res) 3) => #t) + (check (cdr (car res)) => "a") + (check (cdr (cadr res)) => "b") + ) ;let +) ;let + +;; JSON 结构高亮测试 +(let* ((jdef (load-syntax-definition "json")) + (code "{\n \"name\": \"test\",\n \"count\": 42,\n \"ratio\": 3.14,\n \"items\": [null, true, false]\n}\n" + ) ;code + (res (highlight-text code jdef)) + ) ; + (check (> (length res) 4) => #t) + ;; 第一行包含对象开括号 Function + (check-true + (any (lambda (sp) (string=? (caddr sp) "Function")) (caar res)) + ) ;check-true + ;; 第二行包含键 DataType 与值 String + (check-true + (any (lambda (sp) (string=? (caddr sp) "DataType")) (caadr res)) + ) ;check-true + (check-true + (any (lambda (sp) (string=? (caddr sp) "String")) (caadr res)) + ) ;check-true +) ;let* + +;; C++ 结构高亮测试 +(let* ((cppdef (load-syntax-definition "cpp")) + (code "#include \n\n// comment\nint main() {\n return 0;\n}\n") + (res (highlight-text code cppdef)) + ) ; + (check (> (length res) 4) => #t) + ;; 第一行包含 Preprocessor 和 String + (check-true + (any (lambda (sp) (string=? (caddr sp) "Preprocessor")) (caar res)) + ) ;check-true + (check-true + (any (lambda (sp) (string=? (caddr sp) "String")) (caar res)) + ) ;check-true + ;; 第 3 行是 Comment + (check-true + (any (lambda (sp) (string=? (caddr sp) "Comment")) (car (list-ref res 2))) + ) ;check-true +) ;let* + +;; C 结构高亮测试 +(let* ((cdef (load-syntax-definition "c")) + (code "/* header */\n#include \"test.h\"\n\nint main(void) {\n return 0;\n}\n") + (res (highlight-text code cdef)) + ) ; + (check (> (length res) 4) => #t) + ;; 第一行是 Comment + (check-true + (any (lambda (sp) (string=? (caddr sp) "Comment")) (caar res)) + ) ;check-true + ;; 第二行包含 Preprocessor 和 String + (check-true + (any (lambda (sp) (string=? (caddr sp) "Preprocessor")) (caadr res)) + ) ;check-true + (check-true + (any (lambda (sp) (string=? (caddr sp) "String")) (caadr res)) + ) ;check-true +) ;let* + +;; Lua 结构高亮测试 +(let* ((luadef (load-syntax-definition "lua")) + (code "-- header\nlocal str = [[multi\nline]]\nfunction test()\n return true\nend\n" + ) ;code + (res (highlight-text code luadef)) + ) ; + (check (> (length res) 4) => #t) + ;; 第一行是 Comment + (check-true + (any (lambda (sp) (string=? (caddr sp) "Comment")) (caar res)) + ) ;check-true + ;; 第二、三行是 VerbatimString + (check-true + (any (lambda (sp) (string=? (caddr sp) "VerbatimString")) (caadr res)) + ) ;check-true + (check-true + (any (lambda (sp) (string=? (caddr sp) "VerbatimString")) + (car (list-ref res 2)) + ) ;any + ) ;check-true + ;; 第四行包含 Keyword + (check-true + (any (lambda (sp) (string=? (caddr sp) "Keyword")) (car (list-ref res 3))) + ) ;check-true + ;; 第五行包含 ControlFlow 和 Constant + (check-true + (any (lambda (sp) (string=? (caddr sp) "ControlFlow")) (car (list-ref res 4))) + ) ;check-true + (check-true + (any (lambda (sp) (string=? (caddr sp) "Constant")) (car (list-ref res 4))) + ) ;check-true +) ;let* + +;; Markdown 结构高亮测试 +(let* ((mddef (load-syntax-definition "markdown")) + (doc (string-append "# Title H1\n\n" "## Section H2\n\n" + "> A blockquote with **bold** and `code`.\n\n" "- [ ] Todo 1\n" + "- Item 2\n\n" "| Header 1 | Header 2 |\n" "| --- | --- |\n\n" + "Check [link](https://example.com) here.\n" + ) ;string-append + ) ;doc + (res (highlight-text doc mddef)) + ) ; + (check (> (length res) 8) => #t) + ;; 第一行包含 Header H1 + (check-true + (any (lambda (sp) (string=? (caddr sp) "Header H1")) (caar res)) + ) ;check-true + ;; 第三行包含 Header H2 + (check-true + (any (lambda (sp) (string=? (caddr sp) "Header H2")) (car (list-ref res 2))) + ) ;check-true + ;; 引用行包含 Blockquote, Strong Text 与 Code + (let ((bq-spans (car (list-ref res 4)))) + (check-true + (any (lambda (sp) (string=? (caddr sp) "Blockquote")) bq-spans) + ) ;check-true + (check-true + (any (lambda (sp) (string=? (caddr sp) "Strong Text")) bq-spans) + ) ;check-true + (check-true + (any (lambda (sp) (string=? (caddr sp) "Code")) bq-spans) + ) ;check-true + ) ;let + ;; 任务列表行包含 List + (check-true + (any (lambda (sp) (string=? (caddr sp) "List")) (car (list-ref res 6))) + ) ;check-true + ;; 表格行包含 Table + (check-true + (any (lambda (sp) (string=? (caddr sp) "Table")) (car (list-ref res 9))) + ) ;check-true +) ;let* + +;; Markdown 代码块嵌入测试(Scheme, C++, JSON, Lua, 无语言代码块) +(let* ((mddef (load-syntax-definition "markdown")) + (code-doc (string-append "```scheme\n" "(define (square x)\n" + " (* x x))\n" "```\n\n" "```cpp\n" "#include \n" + "int main() { return 0; }\n" "```\n\n" "```json\n" + "{\"key\": 123}\n" "```\n\n" "```lua\n" "local v = 42\n" + "```\n\n" "```\n" "plain text\n" "```\n" + ) ;string-append + ) ;code-doc + (res (highlight-text code-doc mddef)) + ) ; + ;; Scheme 代码块:第 1 行为 Fenced Code,第 2 行含 Extension,第 4 行为 Fenced Code + (check-true + (any (lambda (sp) (string=? (caddr sp) "Fenced Code")) (caar res)) + ) ;check-true + (check-true + (any (lambda (sp) (string=? (caddr sp) "Extension")) (caadr res)) + ) ;check-true + (check-true + (any (lambda (sp) (string=? (caddr sp) "Fenced Code")) (car (list-ref res 3))) + ) ;check-true + + ;; C++ 代码块:包含 Preprocessor 与 ControlFlow + (check-true + (any (lambda (sp) (string=? (caddr sp) "Preprocessor")) (car (list-ref res 6))) + ) ;check-true + (check-true + (any (lambda (sp) (string=? (caddr sp) "ControlFlow")) (car (list-ref res 7))) + ) ;check-true + + ;; JSON 代码块:包含 DataType 与 DecVal + (let ((json-spans (car (list-ref res 11)))) + (check-true + (any (lambda (sp) (string=? (caddr sp) "DataType")) json-spans) + ) ;check-true + (check-true + (any (lambda (sp) (string=? (caddr sp) "DecVal")) json-spans) + ) ;check-true + ) ;let + + ;; Lua 代码块:包含 Keyword + (check-true + (any (lambda (sp) (string=? (caddr sp) "Keyword")) (car (list-ref res 15))) + ) ;check-true + + ;; 无语言代码块:内容包含 Code + (check-true + (any (lambda (sp) (string=? (caddr sp) "Code")) (car (list-ref res 19))) + ) ;check-true +) ;let* + +;; Bash 结构高亮测试 +(let* ((bashdef (load-syntax-definition "bash")) + (code "#!/usr/bin/env bash\n# comment\nset -euo pipefail\nNAME=${1:-world}\nif [ -f \"$NAME\" ]; then\n echo \"hello $NAME\"\nfi\n" + ) ;code + (res (highlight-text code bashdef)) + ) ; + (check (> (length res) 6) => #t) + ;; 第一行 shebang 是 Comment + (check-true + (any (lambda (sp) (string=? (caddr sp) "Comment")) (caar res)) + ) ;check-true + ;; 第四行包含 Variable 与 Operator + (let ((line4-spans (car (list-ref res 3)))) + (check-true + (any (lambda (sp) (string=? (caddr sp) "Variable")) line4-spans) + ) ;check-true + (check-true + (any (lambda (sp) (string=? (caddr sp) "Operator")) line4-spans) + ) ;check-true + ) ;let + ;; 第五行包含 ControlFlow + (check-true + (any (lambda (sp) (string=? (caddr sp) "ControlFlow")) (car (list-ref res 4))) + ) ;check-true +) ;let* + +;; Markdown 中的 Bash 代码块嵌套高亮 +(let* ((mddef (load-syntax-definition "markdown")) + (doc (string-append "```bash\n" "if [ -n \"$HOME\" ]; then\n" + " echo \"$HOME\"\n" "fi\n" "```\n" + ) ;string-append + ) ;doc + (res (highlight-text doc mddef)) + ) ; + ;; 围栏行标记 Fenced Code + (check-true + (any (lambda (sp) (string=? (caddr sp) "Fenced Code")) (caar res)) + ) ;check-true + ;; 第二行按 Bash 规则高亮出 ControlFlow + (check-true + (any (lambda (sp) (string=? (caddr sp) "ControlFlow")) (caadr res)) + ) ;check-true + ;; 第三行包含 Variable + (check-true + (any (lambda (sp) (string=? (caddr sp) "Variable")) (car (list-ref res 2))) + ) ;check-true +) ;let* + +;; Markdown 中的 Diff 代码块嵌套高亮 +(let* ((mddef (load-syntax-definition "markdown")) + (doc (string-append "```diff\n" "+ added line\n" "- removed line\n" "```\n")) + (res (highlight-text doc mddef)) + ) ; + ;; 围栏行标记 Fenced Code + (check-true + (any (lambda (sp) (string=? (caddr sp) "Fenced Code")) (caar res)) + ) ;check-true + ;; 第二行按 Diff 规则高亮出 Added + (check-true + (any (lambda (sp) (string=? (caddr sp) "Added")) (caadr res)) + ) ;check-true + ;; 第三行按 Diff 规则高亮出 Removed + (check-true + (any (lambda (sp) (string=? (caddr sp) "Removed")) (car (list-ref res 2))) + ) ;check-true +) ;let* + +(check-report) diff --git a/highlight/tests/liii/highlight/highlighter/include-rules-test.scm b/highlight/tests/liii/highlight/highlighter/include-rules-test.scm new file mode 100644 index 0000000..1a46f26 --- /dev/null +++ b/highlight/tests/liii/highlight/highlighter/include-rules-test.scm @@ -0,0 +1,91 @@ +;; highlight-line (IncludeRules) +;; 验证 IncludeRules 跨语言嵌入:HTML 的 " + (initial-highlight-state def) + def + ) ;highlight-line + ) ; + ) ; + ;; p 命中 CSS 的 Selector 属性 + (check-true (span-with-style? spans "Selector")) + ;; color 命中 CSS 的 Property 属性 + (check-true (span-with-style? spans "Property")) + ;; red 命中 CSS 的 Color 属性 + (check-true (span-with-style? spans "Color")) + ;; 结束 进入嵌入,第二行 CSS 仍被高亮(状态跨行保持) + (let*-values (((s1 st1) (highlight-line " 退出嵌入,回到 HTML 上下文 + (let*-values (((s1 st1) + (highlight-line "

hi

" st1 def)) + ) ; + (check-true (span-with-style? s2 "TagClose")) + (check-true (span-with-style? s2 "Tag")) + ) ;let*-values +) ;let + +;; CSS def 单独可用(供 IncludeRules 解析) +(let ((def (load-syntax-definition "css"))) + (check-true (definition? def)) + (let-values (((spans st) + (highlight-line "a { color: red; }" (initial-highlight-state def) def) + ) ; + ) ; + (check-true (span-with-style? spans "Selector")) + (check-true (span-with-style? spans "Property")) + ) ;let-values +) ;let + +(check-report) diff --git a/highlight/tests/liii/highlight/highlighter/initial-highlight-state-test.scm b/highlight/tests/liii/highlight/highlighter/initial-highlight-state-test.scm new file mode 100644 index 0000000..bc41786 --- /dev/null +++ b/highlight/tests/liii/highlight/highlighter/initial-highlight-state-test.scm @@ -0,0 +1,38 @@ +;; initial-highlight-state +;; 根据语法定义构造初始高亮状态。 +;; +;; 语法 +;; ---- +;; (initial-highlight-state def) +;; +;; 参数 +;; ---- +;; def : definition? +;; 语法定义对象。 +;; +;; 返回值 +;; ---- +;; +;; 栈内仅含初始上下文的状态。 + +(import (scheme base) + (liii check) + (liii highlight definition) + (liii highlight highlighter) +) ;import + +(check-set-mode! 'report-failed) + +(let ((def (load-syntax-definition "scheme"))) + (let ((s (initial-highlight-state def))) + (check-true (highlight-state? s)) + (check (highlight-state-stack s) => '("Level0")) + ) ;let +) ;let + +;; 自定义初始上下文名 +(let ((s (initial-highlight-state (make-definition "X" '() "Base")))) + (check (highlight-state-stack s) => '("Base")) +) ;let + +(check-report) diff --git a/highlight/tests/liii/highlight/highlighter/make-highlight-state-test.scm b/highlight/tests/liii/highlight/highlighter/make-highlight-state-test.scm new file mode 100644 index 0000000..4db490d --- /dev/null +++ b/highlight/tests/liii/highlight/highlighter/make-highlight-state-test.scm @@ -0,0 +1,31 @@ +;; make-highlight-state +;; 构造高亮引擎跨行状态。 +;; +;; 语法 +;; ---- +;; (make-highlight-state) +;; (make-highlight-state stack) +;; +;; 参数 +;; ---- +;; stack : list (可选) +;; 上下文名称栈(栈顶在 car),默认 '("Level0")。 +;; +;; 返回值 +;; ---- +;; +;; 高亮状态对象。 + +(import (scheme base) (liii check) (liii highlight highlighter)) + +(check-set-mode! 'report-failed) + +(let ((s (make-highlight-state))) + (check (highlight-state-stack s) => '("Level0")) +) ;let + +(let ((s (make-highlight-state '("string" "Level0")))) + (check (highlight-state-stack s) => '("string" "Level0")) +) ;let + +(check-report) diff --git a/highlight/tests/liii/highlight/rule-matcher/README.md b/highlight/tests/liii/highlight/rule-matcher/README.md new file mode 100644 index 0000000..44383f7 --- /dev/null +++ b/highlight/tests/liii/highlight/rule-matcher/README.md @@ -0,0 +1,38 @@ +# (liii highlight rule-matcher) 模块函数分类索引 + +`(liii highlight rule-matcher)` 提供了规则的匹配执行内核:匹配结果记录、各类型规则的 `do-match` 实现,以及分隔符判定。从 `(liii highlight rule)` 拆出,使规则描述/分发与匹配实现分离,两者均控制在单文件行数上限内。 + +## 查看函数文档 + +使用以下命令查看函数文档和测试用例: +```bash +gf doc liii/highlight/rule-matcher "函数名" +``` + +## 函数分类索引 + +### 一、匹配结果模型 +- `make-match-result` - 创建规则匹配结果对象 +- `match-result?` - 判断对象是否为匹配结果 +- `match-result-matched?` - 获取匹配是否成功标志 +- `match-result-new-offset` - 获取匹配后新文本偏移 + +### 二、字符与文本匹配实现 +- `%match-detect-char` - 检测单个字符 +- `%match-detect-2chars` - 检测连续两个字符 +- `%match-any-char` - 检测字符集合中的任一字符 +- `%match-string-detect` - 检测固定字符串前缀 +- `%match-word-detect` - 检测独立单词(带边界) +- `%match-keyword` - 检测关键字集合中的单词 +- `%match-int` - 检测十进制整数 +- `%match-detect-spaces` - 检测连续空格/Tab +- `%match-detect-identifier` - 检测标识符 +- `%match-charset-run` - 字符集连续扫描 +- `%match-hex` - 检测十六进制字面量 +- `%match-json-number` - 检测 JSON 整数/浮点数 +- `%match-json-exponent` - 处理 JSON 数值的指数后缀 +- `%match-json-number-suffix` - 处理 JSON 数值的小数/指数后缀 +- `%match-json-escape-char` - 检测 JSON 合法转义字符 +- `%match-json-escape-error` - 检测 JSON 非法转义序列 +- `%no-match` - 构造未命中的匹配结果 +- `%matched` - 构造命中的匹配结果 diff --git a/highlight/tests/liii/highlight/rule-matcher/make-match-result-test.scm b/highlight/tests/liii/highlight/rule-matcher/make-match-result-test.scm new file mode 100644 index 0000000..cd4d03a --- /dev/null +++ b/highlight/tests/liii/highlight/rule-matcher/make-match-result-test.scm @@ -0,0 +1,36 @@ +;; make-match-result +;; 构造匹配结果对象。 +;; +;; 语法 +;; ---- +;; (make-match-result) +;; (make-match-result matched? new-offset) +;; +;; 参数 +;; ---- +;; matched? : boolean (可选) +;; 是否匹配成功,默认 #f。 +;; +;; new-offset : integer (可选) +;; 匹配后的新偏移,默认 0。 +;; +;; 返回值 +;; ---- +;; +;; 匹配结果对象。 + +(import (scheme base) (liii check) (liii highlight rule-matcher)) + +(check-set-mode! 'report-failed) + +(let ((res (make-match-result))) + (check (match-result-matched? res) => #f) + (check (match-result-new-offset res) => 0) +) ;let + +(let ((res (make-match-result #t 5))) + (check (match-result-matched? res) => #t) + (check (match-result-new-offset res) => 5) +) ;let + +(check-report) diff --git a/highlight/tests/liii/highlight/rule-matcher/match-result-matched-p-test.scm b/highlight/tests/liii/highlight/rule-matcher/match-result-matched-p-test.scm new file mode 100644 index 0000000..b7fe116 --- /dev/null +++ b/highlight/tests/liii/highlight/rule-matcher/match-result-matched-p-test.scm @@ -0,0 +1,25 @@ +;; match-result-matched? +;; 读取匹配结果是否成功。 +;; +;; 语法 +;; ---- +;; (match-result-matched? res) +;; +;; 参数 +;; ---- +;; res : match-result? +;; 匹配结果对象。 +;; +;; 返回值 +;; ---- +;; boolean +;; 匹配成功返回 #t。 + +(import (scheme base) (liii check) (liii highlight rule-matcher)) + +(check-set-mode! 'report-failed) + +(check-true (match-result-matched? (make-match-result #t 1))) +(check-false (match-result-matched? (make-match-result #f 0))) + +(check-report) diff --git a/highlight/tests/liii/highlight/rule-matcher/match-result-new-offset-test.scm b/highlight/tests/liii/highlight/rule-matcher/match-result-new-offset-test.scm new file mode 100644 index 0000000..a2cebcd --- /dev/null +++ b/highlight/tests/liii/highlight/rule-matcher/match-result-new-offset-test.scm @@ -0,0 +1,25 @@ +;; match-result-new-offset +;; 读取匹配结果的新偏移。 +;; +;; 语法 +;; ---- +;; (match-result-new-offset res) +;; +;; 参数 +;; ---- +;; res : match-result? +;; 匹配结果对象。 +;; +;; 返回值 +;; ---- +;; integer +;; 匹配消费后的新偏移;未匹配时保持原偏移。 + +(import (scheme base) (liii check) (liii highlight rule-matcher)) + +(check-set-mode! 'report-failed) + +(check (match-result-new-offset (make-match-result #t 7)) => 7) +(check (match-result-new-offset (make-match-result #f 0)) => 0) + +(check-report) diff --git a/highlight/tests/liii/highlight/rule-matcher/match-result-p-test.scm b/highlight/tests/liii/highlight/rule-matcher/match-result-p-test.scm new file mode 100644 index 0000000..8a4373f --- /dev/null +++ b/highlight/tests/liii/highlight/rule-matcher/match-result-p-test.scm @@ -0,0 +1,28 @@ +;; match-result? +;; 判断对象是否为匹配结果。 +;; +;; 语法 +;; ---- +;; (match-result? obj) +;; +;; 参数 +;; ---- +;; obj : any +;; 待判断的对象。 +;; +;; 返回值 +;; ---- +;; boolean +;; 是匹配结果返回 #t,否则 #f。 + +(import (scheme base) (liii check) (liii highlight rule-matcher)) + +(check-set-mode! 'report-failed) + +(check-true (match-result? (make-match-result))) +(check-true (match-result? (make-match-result #t 3))) +(check-false (match-result? "res")) +(check-false (match-result? '(#t 3))) +(check-false (match-result? #f)) + +(check-report) diff --git a/highlight/tests/liii/highlight/rule/README.md b/highlight/tests/liii/highlight/rule/README.md new file mode 100644 index 0000000..50587fa --- /dev/null +++ b/highlight/tests/liii/highlight/rule/README.md @@ -0,0 +1,31 @@ +# (liii highlight rule) 模块函数分类索引 + +`(liii highlight rule)` 提供了 Kate 兼容的语法高亮规则模型与匹配执行引擎。 + +## 查看函数文档 + +使用以下命令查看函数文档和测试用例: +```bash +gf doc liii/highlight/rule "函数名" +``` + +## 函数分类索引 + +### 一、规则模型 +- `make-rule` - 创建匹配规则对象 +- `rule?` - 判断对象是否为匹配规则 +- `rule-type` - 获取规则类型 +- `rule-attribute` - 获取规则匹配后赋予的样式属性 +- `rule-context-target` - 获取规则匹配后的上下文跳转目标 +- `rule-data` - 获取规则附属匹配数据 +- `rule-look-ahead?` - 获取前瞻匹配标志 +- `rule-first-non-space?` - 获取行首非空字符标志 +- `rule-column` - 获取列限制 + +### 二、上下文跳转 +- `parse-context-switch` - 解析上下文跳转指令为操作与目标名称 + +### 三、规则匹配 +- `match-rule` - 对文本在指定偏移处执行单条规则匹配 + +> 匹配结果对象(`make-match-result`、`match-result?`、`match-result-matched?`、`match-result-new-offset`)由 `(liii highlight rule-matcher)` 提供,详见该模块导览。 diff --git a/highlight/tests/liii/highlight/rule/make-rule-test.scm b/highlight/tests/liii/highlight/rule/make-rule-test.scm new file mode 100644 index 0000000..086546e --- /dev/null +++ b/highlight/tests/liii/highlight/rule/make-rule-test.scm @@ -0,0 +1,66 @@ +;; make-rule +;; 构造一条高亮规则。 +;; +;; 语法 +;; ---- +;; (make-rule type attribute context-target) +;; (make-rule type attribute context-target data look-ahead? first-non-space? column) +;; +;; 参数 +;; ---- +;; type : symbol +;; 规则类型,如 'detect-char、'keyword 等。 +;; +;; attribute : string +;; 匹配成功后输出的 itemData 名称。 +;; +;; context-target : list +;; 上下文切换指令,如 '(stay)、'(push "x")、'(pop 1)。 +;; +;; data : object (可选) +;; 规则专有负载,默认 #f。 +;; +;; look-ahead? : boolean (可选) +;; 是否前瞻(匹配但不前进),默认 #f。 +;; +;; first-non-space? : boolean (可选) +;; 是否仅行首第一个非空白字符处可匹配,默认 #f。 +;; +;; column : integer (可选) +;; 限定匹配列号,默认 -1 表示不限制。 +;; +;; 返回值 +;; ---- +;; +;; 规则对象。 + +(import (scheme base) (liii check) (liii highlight rule)) + +(check-set-mode! 'report-failed) + +;; 必填参数构造 +(let ((r (make-rule 'detect-char "Normal" '(stay) #\())) + (check-true (rule? r)) + (check (rule-type r) => 'detect-char) + (check (rule-attribute r) => "Normal") + (check (rule-context-target r) => '(stay)) + (check (rule-data r) => #\() +) ;let + +;; 可选参数默认值 +(let ((r (make-rule 'detect-spaces "Normal" '(stay)))) + (check (rule-data r) => #f) + (check (rule-look-ahead? r) => #f) + (check (rule-first-non-space? r) => #f) + (check (rule-column r) => -1) +) ;let + +;; 全参数构造 +(let ((r (make-rule 'string-detect "Region" '(push "R") "BEGIN" #t #t 0))) + (check (rule-data r) => "BEGIN") + (check (rule-look-ahead? r) => #t) + (check (rule-first-non-space? r) => #t) + (check (rule-column r) => 0) +) ;let + +(check-report) diff --git a/highlight/tests/liii/highlight/rule/match-rule-test.scm b/highlight/tests/liii/highlight/rule/match-rule-test.scm new file mode 100644 index 0000000..0992a4e --- /dev/null +++ b/highlight/tests/liii/highlight/rule/match-rule-test.scm @@ -0,0 +1,212 @@ +;; match-rule +;; 对单条规则执行匹配。 +;; +;; 语法 +;; ---- +;; (match-rule r text offset text-len first-non-space) +;; +;; 参数 +;; ---- +;; r : rule? +;; 规则对象。 +;; +;; text : string +;; 当前行的文本。 +;; +;; offset : integer +;; 匹配起始偏移。 +;; +;; text-len : integer +;; 文本长度。 +;; +;; first-non-space : integer +;; 行首第一个非空白字符索引。 +;; +;; 返回值 +;; ---- +;; +;; 匹配结果。 + +(import (scheme base) + (liii check) + (liii highlight rule) + (liii highlight rule-matcher) +) ;import + +(check-set-mode! 'report-failed) + +;; DetectChar +(let ((r (make-rule 'detect-char "Brackets" '(stay) #\())) + (let ((res (match-rule r "(+ 1 2)" 0 7 0))) + (check-true (match-result-matched? res)) + (check (match-result-new-offset res) => 1) + ) ;let + (check-false (match-result-matched? (match-rule r "(+ 1 2)" 1 7 0))) +) ;let + +;; Detect2Chars +(let ((r (make-rule 'detect-2chars "Comment" '(stay) (cons #\# #\|)))) + (let ((res (match-rule r "#| block |#" 0 11 0))) + (check-true (match-result-matched? res)) + (check (match-result-new-offset res) => 2) + ) ;let +) ;let + +;; AnyChar +(let ((r (make-rule 'any-char "Operator" '(stay) "{}[]"))) + (check-true (match-result-matched? (match-rule r "[1]" 0 3 0))) + (check-false (match-result-matched? (match-rule r "a1]" 0 3 0))) +) ;let + +;; StringDetect +(let ((r (make-rule 'string-detect "Region" '(stay) "BEGIN"))) + (let ((res (match-rule r ";; BEGIN region" 3 15 0))) + (check-true (match-result-matched? res)) + (check (match-result-new-offset res) => 8) + ) ;let +) ;let + +;; WordDetect:词边界 +(let ((r (make-rule 'word-detect "Char" '(stay) (cons "space" #f)))) + (check-true (match-result-matched? (match-rule r "space" 0 5 0))) + (check-false (match-result-matched? (match-rule r "spaceship" 0 10 0))) +) ;let + +;; Keyword:命中与边界 +(let ((r (make-rule 'keyword "Keyword" '(stay) (cons '("define" "lambda" "if") #f)))) + (let ((res (match-rule r "define x 1" 0 10 0))) + (check-true (match-result-matched? res)) + (check (match-result-new-offset res) => 6) + ) ;let + ;; 前缀匹配但不独立词 -> 不命中 + (check-false (match-result-matched? (match-rule r "defines x 1" 0 11 0))) + ;; 词中间起始 -> 不命中 + (check-false (match-result-matched? (match-rule r "xdefine" 1 7 0))) +) ;let + +;; Int +(let ((r (make-rule 'int "Decimal" '(stay) #f))) + (let ((res (match-rule r "12345" 0 5 0))) + (check-true (match-result-matched? res)) + (check (match-result-new-offset res) => 5) + ) ;let + ;; 右边界不是分隔符 -> 不命中 + (check-false (match-result-matched? (match-rule r "123a" 0 4 0))) +) ;let + +;; DetectSpaces +(let ((r (make-rule 'detect-spaces "Normal" '(stay) #t))) + (let ((res (match-rule r " hello" 0 8 3))) + (check-true (match-result-matched? res)) + (check (match-result-new-offset res) => 3) + ) ;let + (check-false (match-result-matched? (match-rule r "hello" 0 5 0))) +) ;let + +;; DetectIdentifier +(let ((r (make-rule 'detect-identifier "Normal" '(stay) #f))) + (let ((res (match-rule r "foo42+" 0 6 0))) + (check-true (match-result-matched? res)) + (check (match-result-new-offset res) => 5) + ) ;let + (check-false (match-result-matched? (match-rule r "42foo" 0 5 0))) +) ;let + +;; CharsetRun +(let ((r (make-rule 'charset-run "Comment" '(stay) (cons "; \t" 1)))) + (let ((res (match-rule r ";;; hello" 0 11 0))) + (check-true (match-result-matched? res)) + (check (match-result-new-offset res) => 6) + ) ;let +) ;let + +;; Float +(let ((r (make-rule 'float "Float" '(stay) #f))) + (let ((res (match-rule r "3.1415," 0 7 0))) + (check-true (match-result-matched? res)) + (check (match-result-new-offset res) => 6) + ) ;let + (let ((res-neg (match-rule r "-0.01" 0 5 0))) + (check-true (match-result-matched? res-neg)) + (check (match-result-new-offset res-neg) => 5) + ) ;let + ;; 无小数点不是 float + (check-false (match-result-matched? (match-rule r "123" 0 3 0))) + ;; 前导零且后跟数字不是合法数字 + (check-false (match-result-matched? (match-rule r "00.1" 0 4 0))) +) ;let + +;; Decimal +(let ((r (make-rule 'decimal "DecVal" '(stay) #f))) + (let ((res (match-rule r "123," 0 4 0))) + (check-true (match-result-matched? res)) + (check (match-result-new-offset res) => 3) + ) ;let + (let ((res-zero (match-rule r "0," 0 2 0))) + (check-true (match-result-matched? res-zero)) + (check (match-result-new-offset res-zero) => 1) + ) ;let + (let ((res-neg (match-rule r "-0," 0 3 0))) + (check-true (match-result-matched? res-neg)) + (check (match-result-new-offset res-neg) => 2) + ) ;let + ;; 00 非法 + (check-false (match-result-matched? (match-rule r "00" 0 2 0))) + ;; 带小数点的交由 float 处理 + (check-false (match-result-matched? (match-rule r "1.23" 0 4 0))) +) ;let + +;; JsonEscapeChar +(let ((r (make-rule 'json-escape-char "Char" '(stay) #f))) + (let ((res1 (match-rule r "\\n" 0 2 0))) + (check-true (match-result-matched? res1)) + (check (match-result-new-offset res1) => 2) + ) ;let + (let ((res2 (match-rule r "\\u0042" 0 6 0))) + (check-true (match-result-matched? res2)) + (check (match-result-new-offset res2) => 6) + ) ;let + ;; 无效转义序列不匹配 + (check-false (match-result-matched? (match-rule r "\\a" 0 2 0))) + (check-false (match-result-matched? (match-rule r "\\u00P" 0 5 0))) +) ;let + +;; JsonEscapeError +(let ((r (make-rule 'json-escape-error "Error" '(stay) #f))) + (let ((res1 (match-rule r "\\a" 0 2 0))) + (check-true (match-result-matched? res1)) + (check (match-result-new-offset res1) => 2) + ) ;let + (let ((res2 (match-rule r "\\u00P" 0 5 0))) + (check-true (match-result-matched? res2)) + (check (match-result-new-offset res2) => 4) + ) ;let +) ;let + +;; Hex +(let ((r (make-rule 'hex "BaseN" '(stay) #f))) + (let ((res1 (match-rule r "0x1f," 0 5 0))) + (check-true (match-result-matched? res1)) + (check (match-result-new-offset res1) => 4) + ) ;let + (let ((res2 (match-rule r "0xFFULL;" 0 8 0))) + (check-true (match-result-matched? res2)) + (check (match-result-new-offset res2) => 7) + ) ;let + (check-false (match-result-matched? (match-rule r "123" 0 3 0))) + (check-false (match-result-matched? (match-rule r "0" 0 1 0))) +) ;let + +;; column 约束:列号不符 -> 不命中 +(let ((r (make-rule 'detect-char "Normal" '(stay) #\) #f #f 2))) + (check-false (match-result-matched? (match-rule r "(a)" 0 3 0))) + (check-true (match-result-matched? (match-rule r "(a)" 2 3 0))) +) ;let + +;; first-non-space 约束:偏移超过首个非空白字符 -> 不命中 +(let ((r (make-rule 'string-detect "Region" '(stay) "BEGIN" #f #t))) + (check-true (match-result-matched? (match-rule r "BEGIN x" 0 7 0))) + (check-false (match-result-matched? (match-rule r " x BEGIN" 3 9 2))) +) ;let + +(check-report) diff --git a/highlight/tests/liii/highlight/rule/parse-context-switch-test.scm b/highlight/tests/liii/highlight/rule/parse-context-switch-test.scm new file mode 100644 index 0000000..9519d95 --- /dev/null +++ b/highlight/tests/liii/highlight/rule/parse-context-switch-test.scm @@ -0,0 +1,32 @@ +;; parse-context-switch +;; 解析 Kate 上下文切换字符串为结构化指令。 +;; +;; 语法 +;; ---- +;; (parse-context-switch str) +;; +;; 参数 +;; ---- +;; str : string +;; 切换字符串,如 "#stay"、"#pop"、"#pop#pop!Target"、"Target"。 +;; +;; 返回值 +;; ---- +;; list +;; '(stay)、'(push "Name")、'(pop N) 或 '(pop N "Target")。 + +(import (scheme base) (liii check) (liii highlight rule)) + +(check-set-mode! 'report-failed) + +(check (parse-context-switch "#stay") => '(stay)) +(check (parse-context-switch "") => '(stay)) +(check (parse-context-switch "#pop") => '(pop 1)) +(check (parse-context-switch "#pop#pop") => '(pop 2)) +(check (parse-context-switch "#pop!comment") => '(pop 1 "comment")) +(check (parse-context-switch "#pop#pop!comment") => '(pop 2 "comment")) +(check (parse-context-switch "Level1") => '(push "Level1")) +(check (parse-context-switch "#pop(2)") => '(pop 2)) +(check (parse-context-switch "#pop(2)!Target") => '(pop 2 "Target")) + +(check-report) diff --git a/highlight/tests/liii/highlight/rule/rule-attribute-test.scm b/highlight/tests/liii/highlight/rule/rule-attribute-test.scm new file mode 100644 index 0000000..874cb34 --- /dev/null +++ b/highlight/tests/liii/highlight/rule/rule-attribute-test.scm @@ -0,0 +1,37 @@ +;; rule-attribute +;; 读取规则匹配后输出的 itemData 名称。 +;; +;; 语法 +;; ---- +;; (rule-attribute r) +;; +;; 参数 +;; ---- +;; r : rule? +;; 规则对象。 +;; +;; 返回值 +;; ---- +;; string +;; itemData 名称,如 "Keyword"。 + +(import (scheme base) (liii check) (liii highlight rule)) + +(check-set-mode! 'report-failed) + +(check (rule-attribute (make-rule 'detect-char "Normal" '(stay) #\()) + => + "Normal" +) ;check +(check (rule-attribute (make-rule 'detect-2chars "Comment" '(stay) (cons #\# #\|))) + => + "Comment" +) ;check +(check + (rule-attribute (make-rule 'keyword "Keyword" '(stay) (cons '("if") #f))) + => + "Keyword" +) ;check +(check (rule-attribute (make-rule 'int "DecVal" '(stay) #f)) => "DecVal") + +(check-report) diff --git a/highlight/tests/liii/highlight/rule/rule-column-test.scm b/highlight/tests/liii/highlight/rule/rule-column-test.scm new file mode 100644 index 0000000..6a18a9e --- /dev/null +++ b/highlight/tests/liii/highlight/rule/rule-column-test.scm @@ -0,0 +1,26 @@ +;; rule-column +;; 读取规则限定的匹配列号。 +;; +;; 语法 +;; ---- +;; (rule-column r) +;; +;; 参数 +;; ---- +;; r : rule? +;; 规则对象。 +;; +;; 返回值 +;; ---- +;; integer +;; 列号;-1 表示不限制。 + +(import (scheme base) (liii check) (liii highlight rule)) + +(check-set-mode! 'report-failed) + +(check (rule-column (make-rule 'detect-char "Normal" '(stay) #\()) => -1) +(check (rule-column (make-rule 'detect-char "Normal" '(stay) #\( #f #f 0)) => 0) +(check (rule-column (make-rule 'detect-char "Normal" '(stay) #\( #f #f 8)) => 8) + +(check-report) diff --git a/highlight/tests/liii/highlight/rule/rule-context-target-test.scm b/highlight/tests/liii/highlight/rule/rule-context-target-test.scm new file mode 100644 index 0000000..ac7926f --- /dev/null +++ b/highlight/tests/liii/highlight/rule/rule-context-target-test.scm @@ -0,0 +1,41 @@ +;; rule-context-target +;; 读取规则的上下文切换指令。 +;; +;; 语法 +;; ---- +;; (rule-context-target r) +;; +;; 参数 +;; ---- +;; r : rule? +;; 规则对象。 +;; +;; 返回值 +;; ---- +;; list +;; 切换指令,如 '(stay)、'(push "x")、'(pop 1)。 + +(import (scheme base) (liii check) (liii highlight rule)) + +(check-set-mode! 'report-failed) + +(check (rule-context-target (make-rule 'detect-char "Normal" '(stay) #\()) + => + '(stay) +) ;check +(check (rule-context-target (make-rule 'detect-char "String" '(push "string") #\")) + => + '(push "string") +) ;check +(check (rule-context-target (make-rule 'detect-char "Normal" '(pop 1) #\))) + => + '(pop 1) +) ;check +(check (rule-context-target (make-rule 'detect-2chars "Comment" '(pop 2 + "Target") (cons #\| #\#)) + ) ;rule-context-target + => + '(pop 2 "Target") +) ;check + +(check-report) diff --git a/highlight/tests/liii/highlight/rule/rule-data-test.scm b/highlight/tests/liii/highlight/rule/rule-data-test.scm new file mode 100644 index 0000000..fcdbd83 --- /dev/null +++ b/highlight/tests/liii/highlight/rule/rule-data-test.scm @@ -0,0 +1,34 @@ +;; rule-data +;; 读取规则的专有负载数据。 +;; +;; 语法 +;; ---- +;; (rule-data r) +;; +;; 参数 +;; ---- +;; r : rule? +;; 规则对象。 +;; +;; 返回值 +;; ---- +;; any +;; 依规则类型而异:字符、字符串、cons 等;未指定时为 #f。 + +(import (scheme base) (liii check) (liii highlight rule)) + +(check-set-mode! 'report-failed) + +(check (rule-data (make-rule 'detect-char "Normal" '(stay) #\()) => #\() +(check (rule-data (make-rule 'detect-2chars "Comment" '(stay) (cons #\# #\|))) + => + (cons #\# #\|) +) ;check +(check (rule-data (make-rule 'any-char "Operator" '(stay) "{}[]")) => "{}[]") +(check (rule-data (make-rule 'string-detect "Region" '(stay) "BEGIN")) + => + "BEGIN" +) ;check +(check (rule-data (make-rule 'detect-spaces "Normal" '(stay))) => #f) + +(check-report) diff --git a/highlight/tests/liii/highlight/rule/rule-first-non-space-p-test.scm b/highlight/tests/liii/highlight/rule/rule-first-non-space-p-test.scm new file mode 100644 index 0000000..cad40e0 --- /dev/null +++ b/highlight/tests/liii/highlight/rule/rule-first-non-space-p-test.scm @@ -0,0 +1,28 @@ +;; rule-first-non-space? +;; 读取规则是否仅允许在行首第一个非空白字符处匹配。 +;; +;; 语法 +;; ---- +;; (rule-first-non-space? r) +;; +;; 参数 +;; ---- +;; r : rule? +;; 规则对象。 +;; +;; 返回值 +;; ---- +;; boolean +;; 有限制时返回 #t。 + +(import (scheme base) (liii check) (liii highlight rule)) + +(check-set-mode! 'report-failed) + +(check-false (rule-first-non-space? (make-rule 'detect-char "Normal" '(stay) #\()) +) ;check-false +(check-true (rule-first-non-space? (make-rule 'string-detect "Region" '(stay) "BEGIN" #f #t) + ) ;rule-first-non-space? +) ;check-true + +(check-report) diff --git a/highlight/tests/liii/highlight/rule/rule-look-ahead-p-test.scm b/highlight/tests/liii/highlight/rule/rule-look-ahead-p-test.scm new file mode 100644 index 0000000..c4d6604 --- /dev/null +++ b/highlight/tests/liii/highlight/rule/rule-look-ahead-p-test.scm @@ -0,0 +1,28 @@ +;; rule-look-ahead? +;; 读取规则是否为前瞻规则。 +;; +;; 语法 +;; ---- +;; (rule-look-ahead? r) +;; +;; 参数 +;; ---- +;; r : rule? +;; 规则对象。 +;; +;; 返回值 +;; ---- +;; boolean +;; 前瞻规则返回 #t(匹配时只切上下文不前进偏移)。 + +(import (scheme base) (liii check) (liii highlight rule)) + +(check-set-mode! 'report-failed) + +(check-false (rule-look-ahead? (make-rule 'detect-char "Normal" '(stay) #\())) +(check-true (rule-look-ahead? (make-rule 'detect-char "String" '(push "s") #\" #t)) +) ;check-true +(check-false (rule-look-ahead? (make-rule 'detect-char "String" '(push "s") #\" #f)) +) ;check-false + +(check-report) diff --git a/highlight/tests/liii/highlight/rule/rule-p-test.scm b/highlight/tests/liii/highlight/rule/rule-p-test.scm new file mode 100644 index 0000000..114a47b --- /dev/null +++ b/highlight/tests/liii/highlight/rule/rule-p-test.scm @@ -0,0 +1,31 @@ +;; rule? +;; 判断对象是否为高亮规则。 +;; +;; 语法 +;; ---- +;; (rule? obj) +;; +;; 参数 +;; ---- +;; obj : any +;; 待判断的对象。 +;; +;; 返回值 +;; ---- +;; boolean +;; 是规则对象返回 #t,否则 #f。 + +(import (scheme base) (liii check) (liii highlight rule)) + +(check-set-mode! 'report-failed) + +(check-true (rule? (make-rule 'detect-char "Normal" '(stay) #\())) +(check-true + (rule? (make-rule 'keyword "Keyword" '(stay) (cons '("if") #f))) +) ;check-true +(check-false (rule? "not-a-rule")) +(check-false (rule? 42)) +(check-false (rule? '())) +(check-false (rule? #f)) + +(check-report) diff --git a/highlight/tests/liii/highlight/rule/rule-type-test.scm b/highlight/tests/liii/highlight/rule/rule-type-test.scm new file mode 100644 index 0000000..d57abe7 --- /dev/null +++ b/highlight/tests/liii/highlight/rule/rule-type-test.scm @@ -0,0 +1,46 @@ +;; rule-type +;; 读取规则的类型。 +;; +;; 语法 +;; ---- +;; (rule-type r) +;; +;; 参数 +;; ---- +;; r : rule? +;; 规则对象。 +;; +;; 返回值 +;; ---- +;; symbol +;; 规则类型符号。 + +(import (scheme base) (liii check) (liii highlight rule)) + +(check-set-mode! 'report-failed) + +(check (rule-type (make-rule 'detect-char "Normal" '(stay) #\()) + => + 'detect-char +) ;check +(check (rule-type (make-rule 'detect-2chars "Comment" '(stay) (cons #\# #\|))) + => + 'detect-2chars +) ;check +(check (rule-type (make-rule 'any-char "Operator" '(stay) "{}")) => 'any-char) +(check (rule-type (make-rule 'string-detect "Region" '(stay) "BEGIN")) + => + 'string-detect +) ;check +(check + (rule-type (make-rule 'keyword "Keyword" '(stay) (cons '("if") #f))) + => + 'keyword +) ;check +(check (rule-type (make-rule 'int "DecVal" '(stay) #f)) => 'int) +(check (rule-type (make-rule 'detect-spaces "Normal" '(stay))) + => + 'detect-spaces +) ;check + +(check-report) diff --git a/highlight/tests/liii/highlight/theme/README.md b/highlight/tests/liii/highlight/theme/README.md new file mode 100644 index 0000000..82abcfe --- /dev/null +++ b/highlight/tests/liii/highlight/theme/README.md @@ -0,0 +1,34 @@ +# (liii highlight theme) 模块函数分类索引 + +`(liii highlight theme)` 提供了高亮主题与样式条目模型、颜色转换以及 JSON 主题文件解析能力。 + +## 查看函数文档 + +使用以下命令查看函数文档和测试用例: +```bash +gf doc liii/highlight/theme "函数名" +``` + +## 函数分类索引 + +### 一、样式条目 +- `make-style-entry` - 创建样式条目对象 +- `style-entry?` - 判断对象是否为样式条目 +- `style-entry-text-color` - 获取样式前景色 RGB 三元组 +- `style-entry-bg-color` - 获取样式背景色 RGB 三元组 +- `style-entry-bold?` - 获取粗体标志 +- `style-entry-italic?` - 获取斜体标志 +- `style-entry-underline?` - 获取下划线标志 + +### 二、主题模型 +- `make-theme` - 创建高亮主题对象 +- `theme?` - 判断对象是否为高亮主题 +- `theme-name` - 获取主题名称 +- `theme-revision` - 获取主题版本号 +- `theme-text-style` - 按样式名获取对应的文本样式条目 +- `theme-editor-color` - 按颜色项名获取对应的编辑器颜色 RGB 三元组 + +### 三、颜色工具与主题解析 +- `hex->rgb` - 将 16 进制颜色字符串转为 RGB 三元列表 +- `parse-theme-json` - 解析 KSyntaxHighlighting .theme JSON 对象 +- `default-breeze-dark-theme` - 获取内置 Breeze Dark 主题对象 diff --git a/highlight/tests/liii/highlight/theme/default-breeze-dark-theme-test.scm b/highlight/tests/liii/highlight/theme/default-breeze-dark-theme-test.scm new file mode 100644 index 0000000..4285268 --- /dev/null +++ b/highlight/tests/liii/highlight/theme/default-breeze-dark-theme-test.scm @@ -0,0 +1,35 @@ +;; default-breeze-dark-theme +;; 返回内置 Breeze Dark 主题。 +;; +;; 语法 +;; ---- +;; (default-breeze-dark-theme) +;; +;; 参数 +;; ---- +;; 无 +;; +;; 返回值 +;; ---- +;; +;; 内置 Breeze Dark 主题对象,无需外部 I/O。 + +(import (scheme base) (liii check) (liii highlight theme)) + +(check-set-mode! 'report-failed) + +(let ((th (default-breeze-dark-theme))) + (check (theme? th) => #t) + (check (theme-name th) => "Breeze Dark") + ;; 核心样式齐全 + (check-true (not (not (theme-text-style th "Keyword")))) + (check-true (not (not (theme-text-style th "Normal")))) + (check-true (not (not (theme-text-style th "Comment")))) + (check-true (not (not (theme-text-style th "String")))) + ;; Keyword 加粗 + (check-true (style-entry-bold? (theme-text-style th "Keyword"))) + ;; 编辑器背景色 + (check (theme-editor-color th "BackgroundColor") => '(35 38 41)) +) ;let + +(check-report) diff --git a/highlight/tests/liii/highlight/theme/hex-to-rgb-test.scm b/highlight/tests/liii/highlight/theme/hex-to-rgb-test.scm new file mode 100644 index 0000000..8397bf3 --- /dev/null +++ b/highlight/tests/liii/highlight/theme/hex-to-rgb-test.scm @@ -0,0 +1,37 @@ +;; hex->rgb +;; 解析十六进制颜色串为 RGB 分量。 +;; +;; 语法 +;; ---- +;; (hex->rgb hex-str) +;; +;; 参数 +;; ---- +;; hex-str : string +;; 形如 "#rrggbb"、"#aarrggbb" 或不带井号的等价形式。 +;; +;; 返回值 +;; ---- +;; list 或 #f +;; 成功返回 '(r g b),格式非法返回 #f。 + +(import (scheme base) (liii check) (liii highlight theme)) + +(check-set-mode! 'report-failed) + +;; 6 位标准形式 +(check (hex->rgb "#ffffff") => '(255 255 255)) +(check (hex->rgb "#000000") => '(0 0 0)) +(check (hex->rgb "#ff0000") => '(255 0 0)) +(check (hex->rgb "cfcfc2") => '(207 207 194)) + +;; 8 位形式忽略 alpha +(check (hex->rgb "#ffcfcfc2") => '(207 207 194)) +(check (hex->rgb "#00010203") => '(1 2 3)) + +;; 非法输入 +(check (hex->rgb "bad") => #f) +(check (hex->rgb "#zzzzzz") => #f) +(check (hex->rgb 123) => #f) + +(check-report) diff --git a/highlight/tests/liii/highlight/theme/make-style-entry-test.scm b/highlight/tests/liii/highlight/theme/make-style-entry-test.scm new file mode 100644 index 0000000..ef879bd --- /dev/null +++ b/highlight/tests/liii/highlight/theme/make-style-entry-test.scm @@ -0,0 +1,51 @@ +;; make-style-entry +;; 构造样式属性对象。 +;; +;; 语法 +;; ---- +;; (make-style-entry) +;; (make-style-entry text-color background-color bold italic underline) +;; +;; 参数 +;; ---- +;; text-color : list 或 #f (可选) +;; 前景色 '(r g b),默认 #f。 +;; +;; background-color : list 或 #f (可选) +;; 背景色 '(r g b),默认 #f。 +;; +;; bold : boolean (可选) +;; 是否加粗,默认 #f。 +;; +;; italic : boolean (可选) +;; 是否斜体,默认 #f。 +;; +;; underline : boolean (可选) +;; 是否下划线,默认 #f。 +;; +;; 返回值 +;; ---- +;; +;; 样式属性对象。 + +(import (scheme base) (liii check) (liii highlight theme)) + +(check-set-mode! 'report-failed) + +(let ((s (make-style-entry))) + (check (style-entry-text-color s) => #f) + (check (style-entry-bg-color s) => #f) + (check (style-entry-bold? s) => #f) + (check (style-entry-italic? s) => #f) + (check (style-entry-underline? s) => #f) +) ;let + +(let ((s (make-style-entry '(1 2 3) '(4 5 6) #t #f #t))) + (check (style-entry-text-color s) => '(1 2 3)) + (check (style-entry-bg-color s) => '(4 5 6)) + (check (style-entry-bold? s) => #t) + (check (style-entry-italic? s) => #f) + (check (style-entry-underline? s) => #t) +) ;let + +(check-report) diff --git a/highlight/tests/liii/highlight/theme/make-theme-test.scm b/highlight/tests/liii/highlight/theme/make-theme-test.scm new file mode 100644 index 0000000..f3df898 --- /dev/null +++ b/highlight/tests/liii/highlight/theme/make-theme-test.scm @@ -0,0 +1,45 @@ +;; make-theme +;; 构造主题对象。 +;; +;; 语法 +;; ---- +;; (make-theme) +;; (make-theme name styles editor-colors revision) +;; +;; 参数 +;; ---- +;; name : string (可选) +;; 主题名,默认 "Default"。 +;; +;; styles : list (可选) +;; (("StyleName" . ) ...),默认 '()。 +;; +;; editor-colors : list (可选) +;; (("ColorName" . '(r g b)) ...),默认 '()。 +;; +;; revision : integer (可选) +;; 版本号,默认 1。 +;; +;; 返回值 +;; ---- +;; +;; 主题对象。 + +(import (scheme base) (liii check) (liii highlight theme)) + +(check-set-mode! 'report-failed) + +(let ((th (make-theme))) + (check (theme-name th) => "Default") + (check (theme-text-style th "Keyword") => #f) + (check (theme-editor-color th "BackgroundColor") => #f) + (check (theme-revision th) => 1) +) ;let + +(let ((th (make-theme "My" (list (cons "Keyword" (make-style-entry))) '() 7))) + (check (theme-name th) => "My") + (check-true (not (not (theme-text-style th "Keyword")))) + (check (theme-revision th) => 7) +) ;let + +(check-report) diff --git a/highlight/tests/liii/highlight/theme/parse-theme-json-test.scm b/highlight/tests/liii/highlight/theme/parse-theme-json-test.scm new file mode 100644 index 0000000..8ddc080 --- /dev/null +++ b/highlight/tests/liii/highlight/theme/parse-theme-json-test.scm @@ -0,0 +1,70 @@ +;; parse-theme-json +;; 解析 KSyntaxHighlighting .theme JSON 对象。 +;; +;; 语法 +;; ---- +;; (parse-theme-json theme-obj) +;; +;; 参数 +;; ---- +;; theme-obj : json-object +;; 主题 JSON 对象,含 metadata、text-styles、editor-colors。 +;; +;; 返回值 +;; ---- +;; +;; 解析后的主题对象。 + +(import (scheme base) + (liii check) + (liii json) + (liii path) + (liii highlight theme) +) ;import + +(check-set-mode! 'report-failed) + +;; data 资源解析:gf test 目录模式会 chdir 到域根,兼容两种 cwd + +(define (resource-file rel) + (let ((local (string-append "highlight/resources/" rel)) + (alt (string-append "resources/" rel)) + ) ; + (if (path-exists? local) local alt) + ) ;let +) ;define + +;; 从数据文件加载 Breeze Dark +(let* ((raw (string->json (path-read-text (resource-file "themes/breeze-dark.theme")))) + (th (parse-theme-json raw)) + ) ; + (check (theme-name th) => "Breeze Dark") + (check-true (not (not (theme-text-style th "Keyword")))) +) ;let* + +;; 内联最小 JSON +(let* ((raw (string->json (string-append "{\"metadata\": {\"name\": \"Mini\", \"revision\": 3}," + " \"text-styles\": {\"Keyword\": {\"text-color\": \"#ff0000\", \"bold\": true}}," + " \"editor-colors\": {\"BackgroundColor\": \"#232629\"}}" + ) ;string-append + ) ;string->json + ) ;raw + (th (parse-theme-json raw)) + (kw (theme-text-style th "Keyword")) + ) ; + (check (theme-name th) => "Mini") + (check (theme-revision th) => 3) + (check-true (not (not kw))) + (check (style-entry-text-color kw) => '(255 0 0)) + (check-true (style-entry-bold? kw)) + (check (theme-editor-color th "BackgroundColor") => '(35 38 41)) +) ;let* + +;; 缺 metadata 时用默认值 +(let ((th (parse-theme-json (string->json "{}")))) + (check (theme-name th) => "Unnamed") + (check (theme-revision th) => 1) + (check (theme-text-style th "Keyword") => #f) +) ;let + +(check-report) diff --git a/highlight/tests/liii/highlight/theme/style-entry-bg-color-test.scm b/highlight/tests/liii/highlight/theme/style-entry-bg-color-test.scm new file mode 100644 index 0000000..d83320c --- /dev/null +++ b/highlight/tests/liii/highlight/theme/style-entry-bg-color-test.scm @@ -0,0 +1,25 @@ +;; style-entry-bg-color +;; 读取样式的背景色。 +;; +;; 语法 +;; ---- +;; (style-entry-bg-color s) +;; +;; 参数 +;; ---- +;; s : style-entry? +;; 样式属性对象。 +;; +;; 返回值 +;; ---- +;; list 或 #f +;; '(r g b) 或 #f。 + +(import (scheme base) (liii check) (liii highlight theme)) + +(check-set-mode! 'report-failed) + +(check (style-entry-bg-color (make-style-entry #f '(77 33 34))) => '(77 33 34)) +(check (style-entry-bg-color (make-style-entry)) => #f) + +(check-report) diff --git a/highlight/tests/liii/highlight/theme/style-entry-bold-p-test.scm b/highlight/tests/liii/highlight/theme/style-entry-bold-p-test.scm new file mode 100644 index 0000000..87ddd57 --- /dev/null +++ b/highlight/tests/liii/highlight/theme/style-entry-bold-p-test.scm @@ -0,0 +1,28 @@ +;; style-entry-bold? +;; 读取样式是否加粗。 +;; +;; 语法 +;; ---- +;; (style-entry-bold? s) +;; +;; 参数 +;; ---- +;; s : style-entry? +;; 样式属性对象。 +;; +;; 返回值 +;; ---- +;; boolean +;; 加粗返回 #t。 + +(import (scheme base) (liii check) (liii highlight theme)) + +(check-set-mode! 'report-failed) + +(check-true (style-entry-bold? (make-style-entry #f #f #t))) +(check-false (style-entry-bold? (make-style-entry))) +;; Breeze Dark 的 Keyword 样式是加粗的 +(check-true (style-entry-bold? (theme-text-style (default-breeze-dark-theme) "Keyword")) +) ;check-true + +(check-report) diff --git a/highlight/tests/liii/highlight/theme/style-entry-italic-p-test.scm b/highlight/tests/liii/highlight/theme/style-entry-italic-p-test.scm new file mode 100644 index 0000000..7774a52 --- /dev/null +++ b/highlight/tests/liii/highlight/theme/style-entry-italic-p-test.scm @@ -0,0 +1,25 @@ +;; style-entry-italic? +;; 读取样式是否斜体。 +;; +;; 语法 +;; ---- +;; (style-entry-italic? s) +;; +;; 参数 +;; ---- +;; s : style-entry? +;; 样式属性对象。 +;; +;; 返回值 +;; ---- +;; boolean +;; 斜体返回 #t。 + +(import (scheme base) (liii check) (liii highlight theme)) + +(check-set-mode! 'report-failed) + +(check-true (style-entry-italic? (make-style-entry #f #f #f #t))) +(check-false (style-entry-italic? (make-style-entry))) + +(check-report) diff --git a/highlight/tests/liii/highlight/theme/style-entry-p-test.scm b/highlight/tests/liii/highlight/theme/style-entry-p-test.scm new file mode 100644 index 0000000..0c5d060 --- /dev/null +++ b/highlight/tests/liii/highlight/theme/style-entry-p-test.scm @@ -0,0 +1,28 @@ +;; style-entry? +;; 判断对象是否为样式属性。 +;; +;; 语法 +;; ---- +;; (style-entry? obj) +;; +;; 参数 +;; ---- +;; obj : any +;; 待判断的对象。 +;; +;; 返回值 +;; ---- +;; boolean +;; 是样式属性返回 #t,否则 #f。 + +(import (scheme base) (liii check) (liii highlight theme)) + +(check-set-mode! 'report-failed) + +(check-true (style-entry? (make-style-entry))) +(check-true (style-entry? (make-style-entry '(1 2 3)))) +(check-false (style-entry? "style")) +(check-false (style-entry? '(1 2 3))) +(check-false (style-entry? #f)) + +(check-report) diff --git a/highlight/tests/liii/highlight/theme/style-entry-text-color-test.scm b/highlight/tests/liii/highlight/theme/style-entry-text-color-test.scm new file mode 100644 index 0000000..c84c8d8 --- /dev/null +++ b/highlight/tests/liii/highlight/theme/style-entry-text-color-test.scm @@ -0,0 +1,28 @@ +;; style-entry-text-color +;; 读取样式的前景色。 +;; +;; 语法 +;; ---- +;; (style-entry-text-color s) +;; +;; 参数 +;; ---- +;; s : style-entry? +;; 样式属性对象。 +;; +;; 返回值 +;; ---- +;; list 或 #f +;; '(r g b) 或 #f。 + +(import (scheme base) (liii check) (liii highlight theme)) + +(check-set-mode! 'report-failed) + +(check (style-entry-text-color (make-style-entry '(207 207 194))) + => + '(207 207 194) +) ;check +(check (style-entry-text-color (make-style-entry)) => #f) + +(check-report) diff --git a/highlight/tests/liii/highlight/theme/style-entry-underline-p-test.scm b/highlight/tests/liii/highlight/theme/style-entry-underline-p-test.scm new file mode 100644 index 0000000..0d88571 --- /dev/null +++ b/highlight/tests/liii/highlight/theme/style-entry-underline-p-test.scm @@ -0,0 +1,28 @@ +;; style-entry-underline? +;; 读取样式是否有下划线。 +;; +;; 语法 +;; ---- +;; (style-entry-underline? s) +;; +;; 参数 +;; ---- +;; s : style-entry? +;; 样式属性对象。 +;; +;; 返回值 +;; ---- +;; boolean +;; 有下划线返回 #t。 + +(import (scheme base) (liii check) (liii highlight theme)) + +(check-set-mode! 'report-failed) + +(check-true (style-entry-underline? (make-style-entry #f #f #f #f #t))) +(check-false (style-entry-underline? (make-style-entry))) +;; Breeze Dark 的 Error 样式带下划线 +(check-true (style-entry-underline? (theme-text-style (default-breeze-dark-theme) "Error")) +) ;check-true + +(check-report) diff --git a/highlight/tests/liii/highlight/theme/theme-editor-color-test.scm b/highlight/tests/liii/highlight/theme/theme-editor-color-test.scm new file mode 100644 index 0000000..04b50a2 --- /dev/null +++ b/highlight/tests/liii/highlight/theme/theme-editor-color-test.scm @@ -0,0 +1,32 @@ +;; theme-editor-color +;; 查询指定编辑器颜色名的 RGB 值。 +;; +;; 语法 +;; ---- +;; (theme-editor-color th color-name) +;; +;; 参数 +;; ---- +;; th : theme? +;; 主题对象。 +;; +;; color-name : string +;; 颜色名,如 "BackgroundColor"。 +;; +;; 返回值 +;; ---- +;; list 或 #f +;; '(r g b) 或 #f。 + +(import (scheme base) (liii check) (liii highlight theme)) + +(check-set-mode! 'report-failed) + +(check (theme-editor-color (default-breeze-dark-theme) "BackgroundColor") + => + '(35 38 41) +) ;check +(check (theme-editor-color (default-breeze-dark-theme) "NoSuchColor") => #f) +(check (theme-editor-color (make-theme) "BackgroundColor") => #f) + +(check-report) diff --git a/highlight/tests/liii/highlight/theme/theme-name-test.scm b/highlight/tests/liii/highlight/theme/theme-name-test.scm new file mode 100644 index 0000000..41f4a45 --- /dev/null +++ b/highlight/tests/liii/highlight/theme/theme-name-test.scm @@ -0,0 +1,26 @@ +;; theme-name +;; 读取主题名称。 +;; +;; 语法 +;; ---- +;; (theme-name th) +;; +;; 参数 +;; ---- +;; th : theme? +;; 主题对象。 +;; +;; 返回值 +;; ---- +;; string +;; 主题名称。 + +(import (scheme base) (liii check) (liii highlight theme)) + +(check-set-mode! 'report-failed) + +(check (theme-name (make-theme)) => "Default") +(check (theme-name (make-theme "Solarized")) => "Solarized") +(check (theme-name (default-breeze-dark-theme)) => "Breeze Dark") + +(check-report) diff --git a/highlight/tests/liii/highlight/theme/theme-p-test.scm b/highlight/tests/liii/highlight/theme/theme-p-test.scm new file mode 100644 index 0000000..91b8925 --- /dev/null +++ b/highlight/tests/liii/highlight/theme/theme-p-test.scm @@ -0,0 +1,28 @@ +;; theme? +;; 判断对象是否为主题。 +;; +;; 语法 +;; ---- +;; (theme? obj) +;; +;; 参数 +;; ---- +;; obj : any +;; 待判断的对象。 +;; +;; 返回值 +;; ---- +;; boolean +;; 是主题返回 #t,否则 #f。 + +(import (scheme base) (liii check) (liii highlight theme)) + +(check-set-mode! 'report-failed) + +(check-true (theme? (make-theme))) +(check-true (theme? (default-breeze-dark-theme))) +(check-false (theme? "Breeze Dark")) +(check-false (theme? (make-style-entry))) +(check-false (theme? #f)) + +(check-report) diff --git a/highlight/tests/liii/highlight/theme/theme-revision-test.scm b/highlight/tests/liii/highlight/theme/theme-revision-test.scm new file mode 100644 index 0000000..fe07b9b --- /dev/null +++ b/highlight/tests/liii/highlight/theme/theme-revision-test.scm @@ -0,0 +1,26 @@ +;; theme-revision +;; 读取主题版本号。 +;; +;; 语法 +;; ---- +;; (theme-revision th) +;; +;; 参数 +;; ---- +;; th : theme? +;; 主题对象。 +;; +;; 返回值 +;; ---- +;; integer +;; 版本号。 + +(import (scheme base) (liii check) (liii highlight theme)) + +(check-set-mode! 'report-failed) + +(check (theme-revision (make-theme)) => 1) +(check (theme-revision (make-theme "X" '() '() 42)) => 42) +(check (theme-revision (default-breeze-dark-theme)) => 1) + +(check-report) diff --git a/highlight/tests/liii/highlight/theme/theme-text-style-test.scm b/highlight/tests/liii/highlight/theme/theme-text-style-test.scm new file mode 100644 index 0000000..33512ea --- /dev/null +++ b/highlight/tests/liii/highlight/theme/theme-text-style-test.scm @@ -0,0 +1,33 @@ +;; theme-text-style +;; 查询指定 TextStyle 名的样式属性。 +;; +;; 语法 +;; ---- +;; (theme-text-style th style-name) +;; +;; 参数 +;; ---- +;; th : theme? +;; 主题对象。 +;; +;; style-name : string +;; 样式名,如 "Keyword"。 +;; +;; 返回值 +;; ---- +;; 或 #f +;; 找到返回样式属性,否则 #f。 + +(import (scheme base) (liii check) (liii highlight theme)) + +(check-set-mode! 'report-failed) + +(let ((th (default-breeze-dark-theme))) + (check-true (not (not (theme-text-style th "Keyword")))) + (check-true (not (not (theme-text-style th "Normal")))) + (check (theme-text-style th "NoSuchStyle") => #f) +) ;let + +(check (theme-text-style (make-theme) "Keyword") => #f) + +(check-report) diff --git a/highlight/tests/liii/highlight/tui-render/README.md b/highlight/tests/liii/highlight/tui-render/README.md new file mode 100644 index 0000000..9fc133e --- /dev/null +++ b/highlight/tests/liii/highlight/tui-render/README.md @@ -0,0 +1,20 @@ +# (liii highlight tui-render) 模块函数分类索引 + +`(liii highlight tui-render)` 提供了将语法高亮分词结果渲染为 ANSI 24 位真彩色终端转义字符串的能力。 + +## 查看函数文档 + +使用以下命令查看函数文档和测试用例: +```bash +gf doc liii/highlight/tui-render "函数名" +``` + +## 函数分类索引 + +### 一、ANSI 转义前缀构造 +- `style->ansi-prefix` - 根据样式条目构造 24 位真彩色 ANSI 转义前缀 + +### 二、终端着色渲染 +- `render-spans-to-ansi` - 将单行 spans 渲染为带 ANSI 颜色的字符串 +- `highlight-line-to-ansi` - 单行语法高亮并直接渲染为 ANSI 字符串 +- `highlight-text-to-ansi` - 整段多行文本高亮渲染为 ANSI 字符串 diff --git a/highlight/tests/liii/highlight/tui-render/highlight-line-to-ansi-test.scm b/highlight/tests/liii/highlight/tui-render/highlight-line-to-ansi-test.scm new file mode 100644 index 0000000..0093dd0 --- /dev/null +++ b/highlight/tests/liii/highlight/tui-render/highlight-line-to-ansi-test.scm @@ -0,0 +1,71 @@ +;; highlight-line-to-ansi +;; 单行高亮并渲染为 ANSI 字符串。 +;; +;; 语法 +;; ---- +;; (highlight-line-to-ansi line state def th) +;; +;; 参数 +;; ---- +;; line : string +;; 当前行文本。 +;; +;; state : highlight-state? +;; 进入本行前的高亮状态。 +;; +;; def : definition? +;; 语法定义对象。 +;; +;; th : theme? +;; 主题对象。 +;; +;; 返回值 +;; ---- +;; values +;; 两个值:渲染后的 ANSI 字符串与下一行的高亮状态。 + +(import (scheme base) + (liii check) + (liii string) + (liii highlight theme) + (liii highlight definition) + (liii highlight highlighter) + (liii highlight tui-render) +) ;import + +(check-set-mode! 'report-failed) + +(let ((th (default-breeze-dark-theme)) (def (load-syntax-definition "scheme"))) + ;; define 行:带转义序列且含重置码 + (let-values (((rendered s) + (highlight-line-to-ansi "(define x 42)" (initial-highlight-state def) def th) + ) ; + ) ; + (check-true (string-contains? rendered "\x1b;[")) + (check-true (string-contains? rendered "\x1b;[0m")) + (check (car (highlight-state-stack s)) => "Level0") + ) ;let-values + + ;; 注释行进入并自动 pop + (let-values (((rendered s) + (highlight-line-to-ansi ";; note" (initial-highlight-state def) def th) + ) ; + ) ; + (check-true (string-contains? rendered "note")) + (check (car (highlight-state-stack s)) => "Level0") + ) ;let-values + + ;; 字符串跨行:状态进入 string + (let-values (((rendered s) + (highlight-line-to-ansi "\"abc" (initial-highlight-state def) def th) + ) ; + ) ; + (check (car (highlight-state-stack s)) => "string") + ;; 第二行用上一状态继续 + (let-values (((r2 s2) (highlight-line-to-ansi "def\"" s def th))) + (check (car (highlight-state-stack s2)) => "Level0") + ) ;let-values + ) ;let-values +) ;let + +(check-report) diff --git a/highlight/tests/liii/highlight/tui-render/highlight-text-to-ansi-test.scm b/highlight/tests/liii/highlight/tui-render/highlight-text-to-ansi-test.scm new file mode 100644 index 0000000..dee5d91 --- /dev/null +++ b/highlight/tests/liii/highlight/tui-render/highlight-text-to-ansi-test.scm @@ -0,0 +1,128 @@ +;; highlight-text-to-ansi +;; 整段文本高亮渲染为 ANSI 字符串。 +;; +;; 语法 +;; ---- +;; (highlight-text-to-ansi text def th) +;; +;; 参数 +;; ---- +;; text : string +;; 多行文本。 +;; +;; def : definition? +;; 语法定义对象。 +;; +;; th : theme? +;; 主题对象。 +;; +;; 返回值 +;; ---- +;; string +;; 各行以 \n 连接的 ANSI 渲染结果。 + +(import (scheme base) + (liii check) + (liii string) + (liii highlight theme) + (liii highlight definition) + (liii highlight tui-render) +) ;import + +(check-set-mode! 'report-failed) + +(let ((th (default-breeze-dark-theme)) (def (load-syntax-definition "scheme"))) + ;; 多行代码:保留换行与标识符 + (let ((ans (highlight-text-to-ansi "(define (add a b)\n (+ a b))\n" def th))) + (check-true (string-contains? ans "\n")) + (check-true (string-contains? ans "add")) + (check-true (string-contains? ans "\x1b;[0m")) + ) ;let + + ;; 纯文本无样式场景:仍输出各词 + (let ((ans (highlight-text-to-ansi "plain text\n" def th))) + (check-true (string-contains? ans "plain")) + (check-true (string-contains? ans "text")) + ) ;let + + ;; 空文本 + (let ((ans (highlight-text-to-ansi "" def th))) + (check (string-length ans) => 0) + ) ;let +) ;let + +;; JSON ANSI 渲染 +(let ((th (default-breeze-dark-theme)) (jdef (load-syntax-definition "json"))) + (let ((ans (highlight-text-to-ansi "{\"key\": [1, 2.5, true, null]}\n" jdef th))) + (check-true (string-contains? ans "\x1b;[")) + (check-true (string-contains? ans "key")) + (check-true (string-contains? ans "2.5")) + (check-true (string-contains? ans "\x1b;[0m")) + ) ;let +) ;let + +;; C++ ANSI 渲染 +(let ((th (default-breeze-dark-theme)) (cppdef (load-syntax-definition "cpp"))) + (let ((ans (highlight-text-to-ansi "#include \nint main() { return 0; }\n" + cppdef + th + ) ;highlight-text-to-ansi + ) ;ans + ) ; + (check-true (string-contains? ans "\x1b;[")) + (check-true (string-contains? ans "include")) + (check-true (string-contains? ans "vector")) + (check-true (string-contains? ans "main")) + (check-true (string-contains? ans "\x1b;[0m")) + ) ;let +) ;let + +;; C ANSI 渲染 +(let ((th (default-breeze-dark-theme)) (cdef (load-syntax-definition "c"))) + (let ((ans (highlight-text-to-ansi "/* hello */\n#include \"curl.h\"\nint main(void) { return 0; }\n" + cdef + th + ) ;highlight-text-to-ansi + ) ;ans + ) ; + (check-true (string-contains? ans "\x1b;[")) + (check-true (string-contains? ans "include")) + (check-true (string-contains? ans "curl.h")) + (check-true (string-contains? ans "main")) + (check-true (string-contains? ans "\x1b;[0m")) + ) ;let +) ;let + +;; Lua ANSI 渲染 +(let ((th (default-breeze-dark-theme)) (luadef (load-syntax-definition "lua"))) + (let ((ans (highlight-text-to-ansi "-- greeting\nlocal function hello()\n print(\"hello lua\")\nend\n" + luadef + th + ) ;highlight-text-to-ansi + ) ;ans + ) ; + (check-true (string-contains? ans "\x1b;[")) + (check-true (string-contains? ans "greeting")) + (check-true (string-contains? ans "local")) + (check-true (string-contains? ans "function")) + (check-true (string-contains? ans "hello lua")) + (check-true (string-contains? ans "\x1b;[0m")) + ) ;let +) ;let + +;; Bash ANSI 渲染 +(let ((th (default-breeze-dark-theme)) (bashdef (load-syntax-definition "bash"))) + (let ((ans (highlight-text-to-ansi "#!/usr/bin/env bash\nif [ -f \"$HOME/.bashrc\" ]; then\n echo \"hi\"\nfi\n" + bashdef + th + ) ;highlight-text-to-ansi + ) ;ans + ) ; + (check-true (string-contains? ans "\x1b;[")) + (check-true (string-contains? ans "bashrc")) + (check-true (string-contains? ans "echo")) + (check-true (string-contains? ans "\x1b;[0m")) + ) ;let +) ;let + +(check-report) diff --git a/highlight/tests/liii/highlight/tui-render/highlight-text-to-ansi-utf8-test.scm b/highlight/tests/liii/highlight/tui-render/highlight-text-to-ansi-utf8-test.scm new file mode 100644 index 0000000..0f0272a --- /dev/null +++ b/highlight/tests/liii/highlight/tui-render/highlight-text-to-ansi-utf8-test.scm @@ -0,0 +1,77 @@ +;; highlight-text-to-ansi +;; 验收用例:中文文本渲染为 ANSI 字符串时不发生 UTF-8 断裂—— +;; 多字节中文字符的字节序列必须在结果中连续,不被 ANSI 转义前缀/重置码打断。 +;; +;; 语法 +;; ---- +;; (highlight-text-to-ansi text def th) +;; +;; 参数 +;; ---- +;; text : string +;; 多行文本。 +;; +;; def : definition? +;; 语法定义对象。 +;; +;; th : theme? +;; 主题对象。 +;; +;; 返回值 +;; ---- +;; string +;; 各行以 \n 连接的 ANSI 渲染结果。 + +(import (scheme base) + (liii check) + (liii string) + (liii highlight theme) + (liii highlight definition) + (liii highlight tui-render) +) ;import + +(check-set-mode! 'report-failed) + +(let ((th (default-breeze-dark-theme)) (def (load-syntax-definition "scheme"))) + ;; 含中文注释的 Scheme 代码:注释行含中文字符 + (let* ((src (string-append ";; 你好世界,这是中文注释\n" + "(define (问候 名字)\n" " ;; 返回问候语\n" + " (string-append \"你好, \" 名字))\n" + ) ;string-append + ) ;src + (ans (highlight-text-to-ansi src def th)) + ) ; + ;; 中文字符串作为完整片段出现在渲染结果中(未被 ANSI 转义从中间打断) + (check-true (string-contains? ans "你好世界")) + (check-true (string-contains? ans "你好, ")) + (check-true (string-contains? ans "问候")) + (check-true (string-contains? ans "返回问候语")) + ;; 渲染结果包含 ANSI 转义与重置码 + (check-true (string-contains? ans "\x1b;[")) + (check-true (string-contains? ans "\x1b;[0m")) + ) ;let* + + ;; 纯中文行:每个中文字符的多个 UTF-8 字节合并为连续片段, + ;; 不应出现 \x1b;[0m 紧跟 \x1b;[ 这种把一个汉字从中间切开的模式 + (let ((ans (highlight-text-to-ansi "你好世界\n" def th))) + ;; 整个“你好世界”应作为连续子串出现 + (check-true (string-contains? ans "你好世界")) + ) ;let +) ;let + +;; Markdown 中的中文文本 +(let ((th (default-breeze-dark-theme)) (md (load-syntax-definition "markdown"))) + (let ((ans (highlight-text-to-ansi "# 中文标题\n\n正文段落,包含 **粗体** 与 `代码`。\n" + md + th + ) ;highlight-text-to-ansi + ) ;ans + ) ; + (check-true (string-contains? ans "中文标题")) + (check-true (string-contains? ans "正文段落")) + (check-true (string-contains? ans "粗体")) + (check-true (string-contains? ans "代码")) + ) ;let +) ;let + +(check-report) diff --git a/highlight/tests/liii/highlight/tui-render/render-spans-to-ansi-test.scm b/highlight/tests/liii/highlight/tui-render/render-spans-to-ansi-test.scm new file mode 100644 index 0000000..91ecba7 --- /dev/null +++ b/highlight/tests/liii/highlight/tui-render/render-spans-to-ansi-test.scm @@ -0,0 +1,73 @@ +;; render-spans-to-ansi +;; 将单行 spans 渲染为带 ANSI 颜色的字符串。 +;; +;; 语法 +;; ---- +;; (render-spans-to-ansi line spans th def) +;; +;; 参数 +;; ---- +;; line : string +;; 原始行文本。 +;; +;; spans : list +;; '((offset length item-data-name) ...)。 +;; +;; th : theme? +;; 主题对象。 +;; +;; def : definition? +;; 语法定义对象。 +;; +;; 返回值 +;; ---- +;; string +;; 带 ANSI 转义序列的渲染结果。 + +(import (scheme base) + (liii check) + (liii string) + (liii highlight theme) + (liii highlight definition) + (liii highlight tui-render) +) ;import + +(check-set-mode! 'report-failed) + +(let ((th (default-breeze-dark-theme)) (def (load-syntax-definition "scheme"))) + ;; 空 spans:返回空串 + (check (render-spans-to-ansi "hello" '() th def) => "") + + ;; 单个 span:包上转义前缀和重置码 + (let ((out (render-spans-to-ansi "define" '((0 6 "Extension")) th def))) + (check-true (string-starts? out "\x1b;[")) + (check-true (string-contains? out "define")) + (check-true (string-ends? out "\x1b;[0m")) + ) ;let + + ;; 多个 span:文本包含各段字符 + (let ((out (render-spans-to-ansi "(+ 1 2)" + '((0 1 "Normal") + (1 1 "Operator") + (2 1 "Normal") + (3 1 "DecVal") + (4 1 "Normal") + (5 1 "DecVal") + (6 1 "Normal")) + th + def + ) ;render-spans-to-ansi + ) ;out + ) ; + (check-true (string-contains? out "+")) + (check-true (string-contains? out "1")) + (check-true (string-contains? out "2")) + ) ;let + + ;; 未知 itemData 名:样式回退,文本仍输出 + (let ((out (render-spans-to-ansi "xyz" '((0 3 "NoSuchStyle")) th def))) + (check-true (string-contains? out "xyz")) + ) ;let +) ;let + +(check-report) diff --git a/highlight/tests/liii/highlight/tui-render/style-to-ansi-prefix-test.scm b/highlight/tests/liii/highlight/tui-render/style-to-ansi-prefix-test.scm new file mode 100644 index 0000000..47a6d39 --- /dev/null +++ b/highlight/tests/liii/highlight/tui-render/style-to-ansi-prefix-test.scm @@ -0,0 +1,62 @@ +;; style->ansi-prefix +;; 生成样式的 ANSI 转义前缀。 +;; +;; 语法 +;; ---- +;; (style->ansi-prefix style-entry) +;; +;; 参数 +;; ---- +;; style-entry : 或 #f +;; 样式属性对象;#f 表示无样式。 +;; +;; 返回值 +;; ---- +;; string +;; 24 位真彩色 ANSI 转义序列(含 bold/italic/underline);无属性时返回空串。 + +(import (scheme base) + (liii check) + (liii string) + (liii highlight theme) + (liii highlight tui-render) +) ;import + +(check-set-mode! 'report-failed) + +;; #f 无样式 +(check (style->ansi-prefix #f) => "") + +;; 全空样式 +(check (style->ansi-prefix (make-style-entry)) => "") + +;; 仅前景色:38;2;R;G;B +(let ((pfx (style->ansi-prefix (make-style-entry '(255 0 0))))) + (check-true (string-contains? pfx "38;2;255;0;0")) + (check-true (string-starts? pfx "\x1b;[")) + (check-true (string-ends? pfx "m")) +) ;let + +;; 前景 + 背景色:48;2;... +(let ((pfx (style->ansi-prefix (make-style-entry '(1 2 3) '(4 5 6))))) + (check-true (string-contains? pfx "38;2;1;2;3")) + (check-true (string-contains? pfx "48;2;4;5;6")) +) ;let + +;; 粗体 / 斜体 / 下划线码 +(check-true (string-contains? (style->ansi-prefix (make-style-entry #f #f #t)) "1m") +) ;check-true +(check-true (string-contains? (style->ansi-prefix (make-style-entry #f #f #f #t)) "3m") +) ;check-true +(check-true (string-contains? (style->ansi-prefix (make-style-entry #f #f #f #f #t)) "4m") +) ;check-true + +;; Breeze Dark Keyword:有前景色且加粗 +(let ((pfx (style->ansi-prefix (theme-text-style (default-breeze-dark-theme) "Keyword")) + ) ;pfx + ) ; + (check-true (string-contains? pfx "38;2;")) + (check-true (string-contains? pfx ";1m")) +) ;let + +(check-report)