File tree 2 files changed +15
-1
lines changed
2 files changed +15
-1
lines changed File renamed without changes.
Original file line number Diff line number Diff line change 16
16
:type 'integer
17
17
:safe 'integerp )
18
18
19
+ (require 'flycheck )
19
20
(require 'monte-indent )
20
21
21
22
(defvar monte-mode-map
31
32
`(,(rx symbol-start
32
33
(or " as" " bind" " break" " catch" " continue" " def" " else" " escape"
33
34
" exit" " extends" " exports" " finally" " fn" " for" " guards" " if"
34
- " implements" " in" " interface" " match" " meta" " method" " module "
35
+ " implements" " import " " in" " interface" " match" " meta" " method"
35
36
" object" " pass" " pragma" " return" " switch" " to" " try" " var"
36
37
" via" " when" " while" )
37
38
symbol-end)
68
69
(set (make-local-variable 'font-lock-defaults ) '(monte-font-lock-keywords nil nil nil nil ))
69
70
(set (make-local-variable 'indent-line-function ) 'monte-indent-line-function )
70
71
(setq-local electric-indent-inhibit t ))
72
+
73
+
74
+ (flycheck-define-checker monte-lint
75
+ " Syntax and scope checking for Monte."
76
+ :command (" mt" " lint" " -stdin" source-original)
77
+ :standard-input t
78
+ :modes (monte-mode)
79
+ :error-patterns
80
+ ((error line-start (file-name) " :" line " ." column
81
+ " -" (+ digit) " ." (+ digit)
82
+ " : " (message ))))
83
+
84
+ (add-to-list 'flycheck-checkers 'monte-lint )
You can’t perform that action at this time.
0 commit comments