Skip to content

Commit c2fcfa3

Browse files
committed
Align tab size in liblkqllang to the Truffle one
Do this to avoid error when creating Truffle source section from Langkit SourceLocation.
1 parent 32576e0 commit c2fcfa3

File tree

4 files changed

+13
-1
lines changed

4 files changed

+13
-1
lines changed

lkql_jit/language/src/main/java/com/adacore/lkql_jit/LKQLLanguage.java

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,14 @@ public final class LKQLLanguage extends TruffleLanguage<LKQLContext> {
103103
/** A simple constructor for the library loading. */
104104
public LKQLLanguage() {
105105
super();
106-
this.lkqlAnalysisContext = Liblkqllang.AnalysisContext.create();
106+
this.lkqlAnalysisContext = Liblkqllang.AnalysisContext.create(
107+
null,
108+
null,
109+
null,
110+
null,
111+
true,
112+
1
113+
);
107114
// Set the color support flag
108115
SUPPORT_COLOR = System.getenv("TERM") != null && System.console() != null;
109116
}
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
val x = 42
2+
print( x )
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
42
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
driver: 'interpreter'
2+
project: 'default_project/default.gpr'

0 commit comments

Comments
 (0)