FStarLang / fstar-mode.el

Emacs support for F*
Apache License 2.0
67 stars 17 forks source link

Feature request: highlight cheating commands #66

Closed tchajed closed 6 years ago

tchajed commented 7 years ago

Porting this feature from Proof General would be useful to keep track of when a proof doesn't actually work.

I think the identifiers to highlight are assume, admit(), magic, unsafe_coerce, and admitP, based on looking at prims.fst.

cpitclaudel commented 7 years ago

Sounds good. In the meantime, you can put this in your fstar-mode-hook:

(font-lock-add-keywords nil `((,(regexp-opt '("assume" "admit" "admitP" "magic" "unsafe_coerce") 'symbols) . font-lock-warning-face)))