Skip to content

Commit

Permalink
Comment
Browse files Browse the repository at this point in the history
  • Loading branch information
EgonOlsen committed Aug 26, 2020
1 parent 1c10791 commit 1136b07
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/main/java/com/sixtyfour/parser/Parser.java
Original file line number Diff line number Diff line change
Expand Up @@ -1011,6 +1011,7 @@ private static Atom createAtom(CompilerConfig config, String part, Map<String, T
* @return true, if its a term placeholder
*/
private static boolean isTermPlaceholder(String txt) {
// Note that the second part of this check isn't equal to endsWith("}")...for example: {t0}+{t1}
return txt.startsWith("{") && txt.indexOf('}') == (txt.length() - 1);
}

Expand Down

0 comments on commit 1136b07

Please sign in to comment.