Bruce Mitchener avatar Bruce Mitchener committed 1b3c03b

Fixes to the DylanLexer plus illustrative examples that previously failed.

Comments (0)

Files changed (2)


             (r'\$[a-zA-Z0-9-]+', Name.Constant),
             (r'[!$%&*/:<>=?~^.+\[\]{}-]+', Operator),
             (r'\s+', Text),
+            (r'#"[a-zA-Z0-9-]+"', Keyword),
             (r'#[a-zA-Z0-9-]+', Keyword),
-            (r'[a-zA-Z0-9-]+', Name.Variable),
+            (r'#(\(|\[)', Punctuation),
+            (r'[a-zA-Z0-9-_]+', Name.Variable),
         'string': [
             (r'"', String, '#pop'),


 define constant $blue-car = make(<car>, model: "Viper");
 define constant $black-car = make(<car>, model: "Town Car", sunroof?: #t);
 define constant $red-car = make(<car>, model: "F40", sunroof?: #f);
+define method foo() => _ :: <boolean>
+  #t
+end method;
+define method foo() => _ :: <boolean>;
+  #t
+end method;
+define method \+()
+define constant $symbol = #"hello";
+define variable *vector* = #[3.5, 5]
+define constant $list = #(1, 2);
+define constant $pair = #(1 . "foo")
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.