Revision 63b4bb1e

b/lib/build/shell_example_lexer.py
46 46
      # switch to state input on '$ ' at the start of the line
47 47
      (r"^\$ ", Text, "input"),
48 48
      (r"\s+", Text),
49
      (r"[^#%\s]+", Text),
49
      (r"[^#%\s\\]+", Text),
50
      (r"\\", Text),
50 51
      ],
51 52
    "input": [
52 53
      include("comments"),
53 54
      include("userinput"),
54
      (r"[^%\\\s]+", Generic.Strong),
55
      (r"[^#%\s\\]+", Generic.Strong),
55 56
      (r"\\\n", Generic.Strong),
56 57
      (r"\\", Generic.Strong),
57 58
      # switch to prev state at non-escaped new-line
......
62 63
      (r"#.*\n", Comment.Single),
63 64
      ],
64 65
    "userinput": [
65
      (r"\\%", Text),
66
      (r"(\\)(%)", bygroups(None, Text)),
66 67
      (r"(%)([^%]*)(%)", bygroups(None, Name.Variable, None)),
67 68
      ],
68 69
    }

Also available in: Unified diff