-
Notifications
You must be signed in to change notification settings - Fork 217
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
REPL demo: initialization & added example scripts
- Loading branch information
Showing
12 changed files
with
153 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,6 +11,6 @@ array.each { | |
:prnt $resp | ||
} | ||
|
||
println(${1}) | ||
println('hello ' + ${1:-world} + '!') | ||
|
||
_return='ok' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# | ||
# All imports added here are imported also to your groovy shell | ||
# | ||
import java.nio.file.*; | ||
|
||
PATH = [ROOT + 'scripts'] | ||
|
||
# | ||
# write jnanorc configuration file | ||
# | ||
_jnanorc = Paths.get(ROOT, 'jnanorc').toFile() | ||
_jnanorc << 'include ' + ROOT + 'nanorc/*.nanorc\n' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
## Here is an example for Java. | ||
## | ||
syntax "Java" "\.java$" | ||
color green "\<(boolean|byte|char|double|float|int|long|new|short|this|transient|void)\>" | ||
color red "\<(break|case|catch|continue|default|do|else|finally|for|if|return|switch|throw|try|while)\>" | ||
color green,,faint "(([a-z]{2,}[.]{1}){2,10}([a-z]{2,}){0,1})" | ||
color green "\<[A-Z]{0,2}([A-Z]{1}[a-z]+){1,}\>" | ||
color cyan "\<(abstract|class|extends|final|implements|import|instanceof|interface|native|package|private|protected|public|static|strictfp|super|synchronized|throws|volatile)\>" | ||
color red ""[^"]*"" | ||
color yellow "\<(true|false|null)\>" | ||
color yellow "\<[A-Z]+([_]{1}[A-Z]+){0,}\>" | ||
icolor yellow "\b(([1-9][0-9]+)|0+)\.[0-9]+\b" "\b[1-9][0-9]*\b" "\b0[0-7]*\b" "\b0x[1-9a-f][0-9a-f]*\b" | ||
color blue "//.*" | ||
color blue start="/\*" end="\*/" | ||
color brightblue start="/\*\*" end="\*/" | ||
color brightwhite,yellow "(FIXME|TODO|XXX)" | ||
color ,green "[[:space:]]+$" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
syntax "JSON" "\.json$" | ||
header "^\{$" | ||
|
||
color brightblue "\<[-]?[0-9]*([Ee][+-]?[0-9]+)?\>" "\<[-]?[0](\.[0-9]+)?\>" | ||
color cyan "\<null\>" | ||
color brightcyan "\<(true|false)\>" | ||
color yellow ""(\\.|[^"])*"|'(\\.|[^'])*'" | ||
color brightyellow "\"(\\"|[^"])*\"[[:space:]]*:" "'(\'|[^'])*'[[:space:]]*:" | ||
color magenta "\\u[0-9a-fA-F]{4}|\\[bfnrt'"/\\]" | ||
color ,green "[[:space:]]+$" | ||
color ,red " + +| + +" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
## Here is an example for xml files. | ||
## | ||
|
||
syntax "XML" ".*\.([jrs]?html?|xml|sgml?|rng)$" | ||
color white "^.+$" | ||
color green start="<" end=">" | ||
color cyan "<[^> ]+" | ||
color cyan ">" | ||
color yellow start="<!DOCTYPE" end="[/]?>" | ||
color yellow start="<!--" end="-->" | ||
color red "&[^;]*;" | ||
|
||
## Trailing spaces | ||
color ,green "[[:space:]]+$" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
println "Hello " + $1 + "!" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters