Skip to content

Commit

Permalink
Correctly highlight ::*Foo::Bar
Browse files Browse the repository at this point in the history
  • Loading branch information
hinrik committed Oct 14, 2015
1 parent 4aa7fde commit 6c97f87
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions perl6-font-lock.el
Original file line number Diff line number Diff line change
Expand Up @@ -626,11 +626,12 @@ LIMIT can be used to bound the search."
;; identifiers with colons
(,(perl6-rx
(or symbol-start
(and "::" (opt "?")))
(and "::" (group (opt (regex "[?*]")))))
identifier
(opt (0+ "::" identifier))
(opt "::"))
0 'perl6-identifier)
(0 'perl6-identifier)
(1 'perl6-twigil t t))
;; numbers
(,(perl6-rx (or bol (regex "[^[:digit:]]")) number)
(1 'perl6-number)
Expand Down

0 comments on commit 6c97f87

Please sign in to comment.