Skip to content

Commit

Permalink
blockStack in parser shouldn't have been static
Browse files Browse the repository at this point in the history
  • Loading branch information
kinglozzer committed May 26, 2021
1 parent 0b7ed59 commit f7f76bb
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 7 deletions.
8 changes: 3 additions & 5 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,12 @@
### Removed

### Fixed
## [0.3.2]
### Added
## [0.3.3]

### Changed
- Block stack in parser shouldn’t be static (#16)

### Deprecated

### Removed
## [0.3.2]

### Fixed
- Intermittent issues indexing projects (#14)
Expand Down
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ plugins {
}

group 'com.kinglozzer'
version '0.3.2'
version '0.3.3'

sourceSets {
main.java.srcDirs = ['src/main/java', 'src/main/gen']
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,12 @@
import static com.kinglozzer.silverstripe.parser.SilverstripeTokenTypes.*;

public class SilverstripeParser implements PsiParser {
private static final ArrayDeque<Pair<String, Marker>> blockStack = new ArrayDeque<>();
private final ArrayDeque<Pair<String, Marker>> blockStack = new ArrayDeque<>();

@Override
@NotNull
public ASTNode parse(@NotNull IElementType root, PsiBuilder builder) {
blockStack.clear();
builder.setDebugMode(true);

final Marker rootMarker = builder.mark();
Expand Down

0 comments on commit f7f76bb

Please sign in to comment.