1. faassen
  2. jslex

Commits

Ned Batchelder  committed 4f4bc53

Fix a docstring

  • Participants
  • Parent commits 2270dbe
  • Branches default

Comments (0)

Files changed (1)

File jslex.py

View file
     
     >>> lexer = JsLexer()
     >>> list(lexer.lex("a = 1"))
-    [("id", "a"), ("ws", " "), ("punct", "="), ("ws", " "), ("dnum 1")]
+    [("id", "a"), ("ws", " "), ("punct", "="), ("ws", " "), ("dnum", "1")]
 
     This doesn't properly handle non-Ascii characters in the Javascript source.