From 5f29bf3bb4b281e813dec57c78c03f48e6fe57d5 Mon Sep 17 00:00:00 2001 From: Phil Windley Date: Fri, 19 Jul 2013 13:46:42 -0600 Subject: [PATCH] added KRL config and sample --- lib/linguist/languages.yml | 5 +++++ samples/KRL/helloworld.krl | 15 +++++++++++++++ 2 files changed, 20 insertions(+) create mode 100644 samples/KRL/helloworld.krl diff --git a/lib/linguist/languages.yml b/lib/linguist/languages.yml index 0626b98a..947e1b53 100644 --- a/lib/linguist/languages.yml +++ b/lib/linguist/languages.yml @@ -680,6 +680,11 @@ Kotlin: - .ktm - .kts +KRL: + type: programming + color: "#f5c800" + primary_extension: .krl + LLVM: primary_extension: .ll diff --git a/samples/KRL/helloworld.krl b/samples/KRL/helloworld.krl new file mode 100644 index 00000000..0daf048b --- /dev/null +++ b/samples/KRL/helloworld.krl @@ -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"); + } +}