about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--src/libexpr/nix.sdf3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/libexpr/nix.sdf b/src/libexpr/nix.sdf
index e60311e73cc6..8546e758d4aa 100644
--- a/src/libexpr/nix.sdf
+++ b/src/libexpr/nix.sdf
@@ -121,9 +121,8 @@ exports
     Comment -> LAYOUT
     "#" ~[\n]* -> HashComment
     "/*" ( ~[\*] | Asterisk )* "*/" -> Comment
-    [\*] -> Asterisk
+    [\*] ~[\/] -> Asterisk
   lexical restrictions
-    Asterisk -/- [\/]
     HashComment -/- ~[\n]
   context-free restrictions
     LAYOUT? -/- [\ \t\n]