emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/bnf-mode d8cb802 27/36: Amended tests


From: Stefan Monnier
Subject: [elpa] externals/bnf-mode d8cb802 27/36: Amended tests
Date: Wed, 17 Mar 2021 18:40:18 -0400 (EDT)

branch: externals/bnf-mode
commit d8cb802e2f8b724868af7d96c7d1639a8529ffce
Author: Serghei Iakovlev <egrep@protonmail.ch>
Commit: Serghei Iakovlev <egrep@protonmail.ch>

    Amended tests
---
 test/test-bnf-mode-font-lock.el | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/test/test-bnf-mode-font-lock.el b/test/test-bnf-mode-font-lock.el
index 7c3489f..f4d677e 100644
--- a/test/test-bnf-mode-font-lock.el
+++ b/test/test-bnf-mode-font-lock.el
@@ -59,8 +59,12 @@
               ("stm" function-name "::=" constant "decl" builtin
                "; foo" comment))))
 
-
-  ;; TODO(sergei): Add test for bnf-mode-algol-comments-style
+  (it "fontifies line comments using ALGOL style"
+    (setq-default bnf-mode-algol-comments-style t)
+    (expect "; comment here"
+            :to-be-fontified-as
+            '(("; comment here" comment)))
+    (setq-default bnf-mode-algol-comments-style nil))
 
   (it "does not mix terminals and nonterminals"
     (expect "<stm> ::= <decl>



reply via email to

[Prev in Thread] Current Thread [Next in Thread]