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

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

[nongnu] elpa/haskell-tng-mode e023657 107/385: SMIE wishlist


From: ELPA Syncer
Subject: [nongnu] elpa/haskell-tng-mode e023657 107/385: SMIE wishlist
Date: Tue, 5 Oct 2021 23:59:11 -0400 (EDT)

branch: elpa/haskell-tng-mode
commit e023657633eeffa951ddd0e3ecb5598dfed2ef4a
Author: Tseen She <ts33n.sh3@gmail.com>
Commit: Tseen She <ts33n.sh3@gmail.com>

    SMIE wishlist
---
 haskell-tng-smie.el | 14 ++++++++++++++
 1 file changed, 14 insertions(+)

diff --git a/haskell-tng-smie.el b/haskell-tng-smie.el
index ac20a73..84f4be4 100644
--- a/haskell-tng-smie.el
+++ b/haskell-tng-smie.el
@@ -174,5 +174,19 @@ current line."
    :forward-token #'haskell-tng-lexer:forward-token
    :backward-token #'haskell-tng-lexer:backward-token))
 
+;; SMIE wishlist, in order of desirability:
+;;
+;; 1. if the lexer could return lists of tokens.
+;;
+;; 2. exposing the parse tree so that s-expression navigation could be
+;;    implemented and tests could be easier to write.
+;;
+;; 3. if the Emacs regexps allowed arbitrary zero length matches, especially if
+;;    syntax "categories" were allowed.
+;;
+;; 4. ambiguous tokens. e.g. the word "via" is a keyword in a specific 
location,
+;;    but can otherwise be used as a varid. I'd like to be able to lex it as 
(or
+;;    "via" "VARID") so that it can appear in multiple places in the grammar.
+
 (provide 'haskell-tng-smie)
 ;;; haskell-tng-smie.el ends here



reply via email to

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