Skip to content

Commit 50bb5ee

Browse files
committed
color syntax for fix
1 parent bcd501f commit 50bb5ee

1 file changed

Lines changed: 54 additions & 1 deletion

File tree

nvim-plugin/examples/sql-cli.lua

Lines changed: 54 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,60 @@ return
1212
persist = true, -- Enable auto save/load
1313
max_items = 100, -- Maximum queries to keep
1414
auto_save = true, -- Save after each query
15-
}
15+
},
16+
17+
-- FIX Message Syntax Highlighting
18+
syntax = {
19+
patterns = {
20+
-- Message Types
21+
{ pattern = [[\<ExecutionReport\>]], group = "FixExecReport",
22+
color = { gui = "#50fa7b", cterm = "Green", bold = true } },
23+
{ pattern = [[\<AllocationReport\>]], group = "FixAllocReport",
24+
color = { gui = "#8be9fd", cterm = "Cyan", bold = true } },
25+
{ pattern = [[\<NewOrderSingle\>]], group = "FixNewOrder",
26+
color = { gui = "#f1fa8c", cterm = "Yellow", bold = true } },
27+
{ pattern = [[\<OrderCancelReject\>]], group = "FixCancelReject",
28+
color = { gui = "#ff5555", cterm = "Red", bold = true } },
29+
30+
-- Order Status
31+
{ pattern = [[\<PendingNew\>]], group = "FixStatPendingNew",
32+
color = { gui = "#f1fa8c", cterm = "Yellow" } },
33+
{ pattern = [[\<New\>]], group = "FixStatNew",
34+
color = { gui = "#50fa7b", cterm = "Green" } },
35+
{ pattern = [[\<PartiallyFilled\>]], group = "FixStatPartial",
36+
color = { gui = "#50fa7b", cterm = "Green" } },
37+
{ pattern = [[\<Filled\>]], group = "FixStatFilled",
38+
color = { gui = "#50fa7b", cterm = "Green", bold = true } },
39+
{ pattern = [[\<Canceled\>]], group = "FixStatCanceled",
40+
color = { gui = "#6272a4", cterm = "DarkGray" } },
41+
{ pattern = [[\<Rejected\>]], group = "FixStatRejected",
42+
color = { gui = "#ff5555", cterm = "Red", bold = true } },
43+
44+
-- Side (Buy/Sell)
45+
{ pattern = [[\<Buy\>]], group = "FixSideBuy",
46+
color = { gui = "#50fa7b", cterm = "Green", bold = true } },
47+
{ pattern = [[\<Sell\>]], group = "FixSideSell",
48+
color = { gui = "#ff5555", cterm = "Red", bold = true } },
49+
50+
-- Exchanges
51+
{ pattern = [[\<NYSE\>]], group = "FixExchNYSE",
52+
color = { gui = "#bd93f9", cterm = "Magenta" } },
53+
{ pattern = [[\<NASDAQ\>]], group = "FixExchNASDAQ",
54+
color = { gui = "#ff79c6", cterm = "Magenta" } },
55+
{ pattern = [[\<LSE\>]], group = "FixExchLSE",
56+
color = { gui = "#bd93f9", cterm = "Magenta" } },
57+
58+
-- Instrument Types
59+
{ pattern = [[\<NDS\>]], group = "FixInstNDS",
60+
color = { gui = "#00aaff", cterm = "Cyan" } },
61+
{ pattern = [[\<NFD\>]], group = "FixInstNFD",
62+
color = { gui = "#ffaa00", cterm = "Yellow" } },
63+
{ pattern = [[\<CDS\>]], group = "FixInstCDS",
64+
color = { gui = "#aa00ff", cterm = "Magenta" } },
65+
{ pattern = [[\<IRS\>]], group = "FixInstIRS",
66+
color = { gui = "#00ffaa", cterm = "Green" } },
67+
}
68+
},
1669
})
1770

1871
-- Token Manager Configuration

0 commit comments

Comments
 (0)