Skip to content

Commit

Permalink
fix 'isName' to match one-character names.
Browse files Browse the repository at this point in the history
  • Loading branch information
tangentstorm committed Aug 13, 2021
1 parent ed034d4 commit 2cf3fa5
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@

# 0.0.2
Fix categorization of one-character names.

# 0.0.1
Initial version
2 changes: 1 addition & 1 deletion j-lex.ijs
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ jcut =: verb define
)

NB. helpers for jtyp
isName =: [: # '^[[:alpha:]]\w+$' & rxmatches
isName =: [: # '^[[:alpha:]]\w*$' & rxmatches
reCtrl =: '^(assert|break|continue|(goto|label|for)(_\w+)|do|end|if|else|elseif|return'
reCtrl =: reCtrl,'|select|f?case|throw|while|whilst)[.]'
isCtrl =: [: # reCtrl & rxmatches
Expand Down
2 changes: 1 addition & 1 deletion manifest.ijs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
CAPTION =: 'a lexer for j source code'
VERSION =: '0.0.1'
VERSION =: '0.0.2'
RELEASE =: 'j902'
FOLDER =: 'tangentstorm/j-lex'
FILES =: 0 : 0
Expand Down

0 comments on commit 2cf3fa5

Please sign in to comment.