Skip to content

Commit

Permalink
Fixed Ignored objects being included in the output
Browse files Browse the repository at this point in the history
  • Loading branch information
trag1c committed Nov 18, 2022
1 parent ea23334 commit 9490239
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
Expand Up @@ -5,6 +5,11 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [1.2.2] - 2022-11-18

### Fixed
- Fixed `Ignored` objects being included in the output

## [1.2.1] - 2022-11-18

### Fixed
Expand Down Expand Up @@ -35,3 +40,4 @@ Initial release 🎉
[1.1.0]: https://github.com/samarium-lang/Samarium/compare/1.0.0...1.1.0
[1.2.0]: https://github.com/samarium-lang/Samarium/compare/1.1.0...1.2.0
[1.2.1]: https://github.com/samarium-lang/Samarium/compare/1.2.0...1.2.1
[1.2.2]: https://github.com/samarium-lang/Samarium/compare/1.2.1...1.2.2
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "crossandra"
version = "1.2.1"
version = "1.2.2"
description = "A simple tokenizer operating on enums with a decent amount of configuration"
authors = ["trag1c <[email protected]>"]
license = "MIT"
Expand Down
2 changes: 1 addition & 1 deletion src/crossandra/lib.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ def tokenize(self, code: str) -> list[Enum | Any]:
tok = rule.apply(code)
if not isinstance(tok, NotApplied):
token_, length = tok
if not isinstance(tok, Ignored):
if not isinstance(token_, Ignored):
t_append(token_)
code = code[length:]
break
Expand Down

0 comments on commit 9490239

Please sign in to comment.