cpp-lang.scm (TeXmacs-2.1.1-src) | : | cpp-lang.scm (TeXmacs-2.1.2-src) | ||
---|---|---|---|---|
skipping to change at line 15 | skipping to change at line 15 | |||
;; DESCRIPTION : the C++ Language | ;; DESCRIPTION : the C++ Language | |||
;; COPYRIGHT : (C) 2008 Francis Jamet | ;; COPYRIGHT : (C) 2008 Francis Jamet | |||
;; (C) 2020 Darcy Shen | ;; (C) 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 cpp-lang) | (texmacs-module (cpp-lang) | |||
(:use (prog default-lang))) | (:use (prog default-lang))) | |||
(tm-define (parser-feature lan key) | (tm-define (parser-feature lan key) | |||
(:require (and (== lan "cpp") (== key "keyword"))) | (:require (and (== lan "cpp") (== key "keyword"))) | |||
`(,(string->symbol key) | `(,(string->symbol key) | |||
(constant | (constant | |||
"false" "true" "cout" "cin" "cerr" | "false" "true" "cout" "cin" "cerr" | |||
"null" "NULL") | "null" "NULL") | |||
(constant_type | (constant_type | |||
"bool" "char" "double" "float" "int" "long" | "bool" "char" "double" "float" "int" "long" | |||
End of changes. 1 change blocks. | ||||
1 lines changed or deleted | 1 lines changed or added |