julia-lang.scm (TeXmacs-2.1.1-src) | : | julia-lang.scm (TeXmacs-2.1.2-src) | ||
---|---|---|---|---|
skipping to change at line 28 | skipping to change at line 28 | |||
; Those keywords are not allowed to be used as variable names. | ; Those keywords are not allowed to be used as variable names. | |||
; | ; | |||
; The following two-word sequences are reserved: abstract type, mutable struct, | ; The following two-word sequences are reserved: abstract type, mutable struct, | |||
; primitive type. However, you can create variables with names: abstract, mutabl e, | ; primitive type. However, you can create variables with names: abstract, mutabl e, | |||
; primitive and type. | ; primitive and type. | |||
; | ; | |||
; Finally, where is parsed as an infix operator for writing parametric method an d | ; Finally, where is parsed as an infix operator for writing parametric method an d | |||
; type definitions. Also in and isa are parsed as infix operators. Creation of a | ; type definitions. Also in and isa are parsed as infix operators. Creation of a | |||
; variable named where, in or isa is allowed though. | ; variable named where, in or isa is allowed though. | |||
(texmacs-module (prog julia-lang) | (texmacs-module (julia-lang) | |||
(:use (prog default-lang))) | (:use (prog default-lang))) | |||
(tm-define (parser-feature lan key) | (tm-define (parser-feature lan key) | |||
(:require (and (== lan "julia") (== key "keyword"))) | (:require (and (== lan "julia") (== key "keyword"))) | |||
`(,(string->symbol key) | `(,(string->symbol key) | |||
(constant | (constant | |||
"true" "false") | "true" "false") | |||
(declare_function "function" "do") | (declare_function "function" "do") | |||
(declare_module "import" "using" "module" "baremodule" "export") | (declare_module "import" "using" "module" "baremodule" "export") | |||
(declare_type "struct" "abstract type" "mutable struct" | (declare_type "struct" "abstract type" "mutable struct" | |||
End of changes. 1 change blocks. | ||||
1 lines changed or deleted | 1 lines changed or added |