chore: add deriving to keyword lists

This commit is contained in:
Leonardo de Moura 2020-12-12 15:41:14 -08:00
parent 3e95f1fcb0
commit f4a51ac201
2 changed files with 2 additions and 2 deletions

View file

@ -1115,7 +1115,7 @@ hljs.registerLanguage("lean", function(hljs) {
'import open export theory prelude renaming hiding exposing ' +
'calc match with do by let extends ' +
'for in unless try catch finally mutual mut return continue break where rec ' +
'syntax macro_rules macro ' +
'syntax macro_rules macro deriving ' +
'fun ' +
'#check #check_failure #eval #reduce #print ' +
'section namespace end infix infixl infixr postfix prefix ',

View file

@ -20,7 +20,7 @@
"try" "catch" "finally" "where" "rec" "mut" "forall" "fun"
"exists" "if" "then" "else" "from" "init_quot" "return"
"mutual" "def" "run_cmd" "declare_syntax_cat" "syntax" "macro_rules" "macro" "scoped"
"initialize" "builtin_initialize" "induction" "cases" "generalizing" "unif_hint")
"initialize" "builtin_initialize" "induction" "cases" "generalizing" "unif_hint" "deriving")
"lean keywords ending with 'word' (not symbol)")
(defconst lean4-keywords1-regexp
(eval `(rx word-start (or ,@lean4-keywords1) word-end)))