Skip to content

Commit 69c687f

Browse files
committed
README.md and macro update
1 parent c48c5c5 commit 69c687f

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ trace('${a.a}: ${a.b() + " " + a.c}'); // RuleScript: Hello World
6262

6363
### Abstracts in script
6464

65-
RuleScriptAbstracts.txt in any classpath :
65+
`RuleScriptAbstracts.txt` in any classpath :
6666
```
6767
test.HelloWorldAbstract
6868
```
@@ -82,7 +82,7 @@ import test.HelloWorldAbstract;
8282
8383
trace(HelloWorldAbstract.rulescriptPrint()); // 'Hello World'
8484
```
85-
More templates in `test/src/Main.hx`.
85+
More templates in [`test/src/Main.hx`](https://github.com/Kriptel/RuleScript/blob/master/test/src/Main.hx).
8686

8787
# Limitations
8888

rulescript/macro/Converter.hx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ using StringTools;
1010

1111
class Converter
1212
{
13+
#if macro
1314
// Language server shows errors...
1415
public static function init()
1516
{
@@ -28,6 +29,7 @@ class Converter
2829
for (name in abstractsList)
2930
Compiler.addMetadata('@:build(rulescript.macro.AbstractMacro.buildAbstract("$name","rulescript.__abstracts"))', name);
3031
}
32+
#end
3133

3234
static function parseFile(content:String):Array<String>
3335
{

0 commit comments

Comments
 (0)