mirror of
https://github.com/KevinMidboe/linguist.git
synced 2025-10-29 17:50:22 +00:00
Merge pull request #589 from kynetx/adding_krl
added KRL config and sample
This commit is contained in:
@@ -750,6 +750,12 @@ Julia:
|
|||||||
primary_extension: .jl
|
primary_extension: .jl
|
||||||
color: "#a270ba"
|
color: "#a270ba"
|
||||||
|
|
||||||
|
KRL:
|
||||||
|
lexer: Text only
|
||||||
|
type: programming
|
||||||
|
color: "#f5c800"
|
||||||
|
primary_extension: .krl
|
||||||
|
|
||||||
Kotlin:
|
Kotlin:
|
||||||
type: programming
|
type: programming
|
||||||
primary_extension: .kt
|
primary_extension: .kt
|
||||||
|
|||||||
15
samples/KRL/helloworld.krl
Normal file
15
samples/KRL/helloworld.krl
Normal file
@@ -0,0 +1,15 @@
|
|||||||
|
ruleset sample {
|
||||||
|
meta {
|
||||||
|
name "Hello World"
|
||||||
|
description <<
|
||||||
|
Hello world
|
||||||
|
>>
|
||||||
|
author "Phil Windley"
|
||||||
|
}
|
||||||
|
|
||||||
|
// just one rule
|
||||||
|
rule hello {
|
||||||
|
select when web pageview
|
||||||
|
notify("Hello world!", "Just a note to say hello");
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user