File: highlighting.lua

package info (click to toggle)
tagua 1.0~alpha2-9
  • links: PTS
  • area: main
  • in suites: squeeze
  • size: 7,924 kB
  • ctags: 7,180
  • sloc: cpp: 26,148; ansic: 13,039; makefile: 228; ruby: 87; sh: 39
file content (56 lines) | stat: -rw-r--r-- 1,012 bytes parent folder | download | duplicates (6)
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
on["^(%S+) tells you: "] = function()
  sentence = line(match.to, line.to)
  sentence.bold = true
  nick = Text("<" .. ref[1].text .. "> ")
  nick.color = "#104050"

  return nick + sentence
end

on["^%S+ rating adjustment:|^No rating adjustment done."] = function()
--  send_text("Thank you")

  return line
end

filter("^<12>")

filter("^<b1>")

nick = ""

-- Notification
highlight["^(?:Present company includes|Notification|Challenge|You|:).*$"] = {
  color = Color(158,29,180)
}

-- Seek
on["(^%S+%s%((%d|%+)+%))( seeking .*) %(\"play (%d+)\" to respond%)"] = function()
  ref[4].bold = true

  return ref[1] + ref[3] + Text(" ==> ") + ref[4]
end

-- Channel tell
highlight["^%S+%((%d|%+)+%):.*$"] = {
  color = Color(177,130,0)
}

-- Shouts
highlight["^(?:%-%->|%S+%s+(?:(?:c%-)?shouts:)).*$"] = {
  color = Color(0,145,65)
}

-- Game
highlight["^(?:%{|Game|Creating).*$"] = {
  bold = true,
  color = Color(214,0,3)
}

-- Tells
-- highlight["^%S+%s+tells you.*$"] = {
--   color = Color(0,40,221)
-- }