Skip to content

Commit

Permalink
Add back the \
Browse files Browse the repository at this point in the history
  • Loading branch information
NGSpace committed Aug 6, 2024
1 parent ce690a8 commit f8ca7aa
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ distributionUrl=https\://services.gradle.org/distributions/gradle-8.8-bin.zip
networkTimeout=10000
validateDistributionUrl=true
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
zipStorePath=wrapper/dists
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ public class HudderV2Compiler extends TextCompiler {
@Override public CompileResult compile(ConfigInfo info, String text) throws CompileException {
HudderV2Runtime runtime = runtimes.get(text);
if (runtime==null) {
System.out.println(text);
runtime = new HudderV2Runtime(this);

StringBuilder resultBuilder = new StringBuilder();
Expand All @@ -57,6 +56,11 @@ public class HudderV2Compiler extends TextCompiler {
if (c=='\n') {line++;col=0;}
switch (compileState) {
case TEXT_STATE: {
if (safeappend) {
resultBuilder.append(c);
safeappend = !safeappend;
continue;
}
switch (c) {
case '%':
compileState = CONDITION_STATE;
Expand All @@ -78,6 +82,7 @@ public class HudderV2Compiler extends TextCompiler {
case '&':
resultBuilder.append('\u00A7');
break;
case '\\': safeappend = true;break;
default:
resultBuilder.append(c);
}
Expand Down

0 comments on commit f8ca7aa

Please sign in to comment.