-
Notifications
You must be signed in to change notification settings - Fork 89
Expand file tree
/
Copy pathlanguage_fountain.lua
More file actions
29 lines (26 loc) · 1.07 KB
/
language_fountain.lua
File metadata and controls
29 lines (26 loc) · 1.07 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
local syntax = require "core.syntax"
local common = require "core.common"
local style = require "core.style"
style.syntax["header"] = { common.color "#66FF66" }
style.syntax["property"] = { common.color "#888888" }
style.syntax["paren"] = { common.color "#AAAAAA" }
style.syntax["caps"] = { common.color "#6666FF" }
syntax.add {
files = { "%.fountain$" },
patterns = {
{ pattern = { "/%*", "%*/" }, type = "comment" },
{ pattern = { "%[%[", "%]%]" }, type = "string" },
{ pattern = { "%(", "%)", "\\" }, type = "paren" },
{ pattern = "#.*\n", type = "header" },
{ pattern = "[a-zA-Z ]+%: .*\n", type = "property" },
{ pattern = "[^a-zA-Z ]+.*%: .*\n", type = "normal" },
{ pattern = "INT[%. ].*\n", type = "function" },
{ pattern = "EXT[%. ].*\n", type = "function" },
{ pattern = "EST[%. ].*\n", type = "function" },
{ pattern = "INT%.?/EXT[%. ].*\n", type = "function" },
{ pattern = "I/E[%. ].*\n", type = "function" },
{ pattern = "[A-Z][^a-z]+\n", type = "caps" },
},
symbols = {
},
}