File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change 85
85
(defvar dhall-mode-keywords (regexp-opt '(" if" " then" " else" " let" " in" " using" " as" ) 'symbols ))
86
86
87
87
(defvar dhall-mode-types
88
- (regexp-opt '(" Optional" " Bool" " Natural" " Integer" " Double" " Text" " List" " Type" ) 'symbols ))
88
+ (regexp-opt '(" Optional" " Bool" " Natural" " Integer" " Double" " Text" " List" " Type" " Date " " Time " " TimeZone " " Bytes " ) 'symbols ))
89
89
90
90
(defconst dhall-mode-constants (regexp-opt '(" True" " False" ) 'symbols ))
91
91
(defconst dhall-mode-numerals " \\ _<[+\\ -][1-9]+\\ _>" )
94
94
(defconst dhall-mode-variables " \\ ([a-zA-Z_][a-zA-Z_0-9\\ -]*\\ )[[:space:]]*=" )
95
95
(defconst dhall-mode-urls " \\ _<\\ (?:https?\\ |file\\ ):[^[:space:]]+" )
96
96
(defconst dhall-mode-shas " \\ _<sha256:[a-f0-9]+\\ _>" )
97
+ (defconst dhall-mode-date " [0-9]\\ {4\\ }-[0-9][0-9]-[0-9][0-9]" )
97
98
98
99
(defconst dhall-mode-font-lock-keywords
99
100
`( ; ; Variables
104
105
(, dhall-mode-operators . font-lock-builtin-face )
105
106
(, dhall-mode-variables . (1 font-lock-variable-name-face ))
106
107
(, dhall-mode-keywords . font-lock-keyword-face )
108
+ (, dhall-mode-date . font-lock-constant-face )
107
109
(, dhall-mode-doubles . font-lock-constant-face )
108
110
(, dhall-mode-numerals . font-lock-constant-face )))
109
111
You can’t perform that action at this time.
0 commit comments