scala-lang.scm (TeXmacs-2.1.1-src) | : | scala-lang.scm (TeXmacs-2.1.2-src) | ||
---|---|---|---|---|
skipping to change at line 14 | skipping to change at line 14 | |||
;; MODULE : scala-lang.scm | ;; MODULE : scala-lang.scm | |||
;; DESCRIPTION : Scala Language | ;; DESCRIPTION : Scala Language | |||
;; COPYRIGHT : (C) 2017-2020 Darcy Shen | ;; COPYRIGHT : (C) 2017-2020 Darcy Shen | |||
;; | ;; | |||
;; This software falls under the GNU general public license version 3 or later. | ;; This software falls under the GNU general public license version 3 or later. | |||
;; It comes WITHOUT ANY WARRANTY WHATSOEVER. For details, see the file LICENSE | ;; It comes WITHOUT ANY WARRANTY WHATSOEVER. For details, see the file LICENSE | |||
;; in the root directory or <http://www.gnu.org/licenses/gpl-3.0.html>. | ;; in the root directory or <http://www.gnu.org/licenses/gpl-3.0.html>. | |||
;; | ;; | |||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; | |||
(texmacs-module (prog scala-lang) | (texmacs-module (scala-lang) | |||
(:use (prog default-lang))) | (:use (prog default-lang))) | |||
;; https://www.scala-lang.org/files/archive/spec/2.13/13-syntax-summary.html | ;; https://www.scala-lang.org/files/archive/spec/2.13/13-syntax-summary.html | |||
(tm-define (parser-feature lan key) | (tm-define (parser-feature lan key) | |||
(:require (and (== lan "scala") (== key "keyword"))) | (:require (and (== lan "scala") (== key "keyword"))) | |||
`(,(string->symbol key) | `(,(string->symbol key) | |||
(constant | (constant | |||
"false" "true" "null" | "false" "true" "null" | |||
"Byte" "Short" "Int" "Long" "Char" "String" "Float" "Double" "Boolean" | "Byte" "Short" "Int" "Long" "Char" "String" "Float" "Double" "Boolean" | |||
"Array" "List" "Map" "Set" "Function" "Class" | "Array" "List" "Map" "Set" "Function" "Class" | |||
End of changes. 1 change blocks. | ||||
1 lines changed or deleted | 1 lines changed or added |