Skip to content

Commit

Permalink
properly colour a dfn's first line when it has a ⍝
Browse files Browse the repository at this point in the history
  • Loading branch information
ngn committed Feb 20, 2015
1 parent 0b1f45e commit c65c4b0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client/codemirror-apl-mode.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ CodeMirror.defineMode 'apl', -> # https://codemirror.net/doc/manual.html#modeapi
token: (stream, state) ->
if state.isHeader
delete state.isHeader; stream.skipToEnd(); s = stream.current()
if /\{\s*$/.test s
if /\{\s*(⍝.*)?$/.test s
stream.backUp s.length
else if /^\s*$/.test s
delete state.vars
Expand Down

0 comments on commit c65c4b0

Please sign in to comment.