File: edit-purebasic.theme

package info (click to toggle)
highlight 4.10-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 7,556 kB
  • sloc: cpp: 27,579; makefile: 411; sh: 341; ansic: 264; php: 236; python: 217; ruby: 132; perl: 61; tcl: 1
file content (62 lines) | stat: -rw-r--r-- 2,360 bytes parent folder | download | duplicates (2)
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
57
58
59
60
61
62
--[[******************************************************************************
    *                                                                            *
    *                              PureBASIC Theme                               *
    *                                                                            *
    *                             v1.0 - 2016/10/27                              *
    *                                                                            *
    ******************************************************************************
    This theme emulates the native PureBASIC IDE color scheme.
    Written by Tristano Ajmone <tajmone@gmail.com>
    https://github.com/tajmone
    Released into the public domain according to the Unlicense licsense:
    http://unlicense.org/
  ]]

Description = "PureBASIC"

Categories = {"light"}

Canvas   = { Colour="#FFFFDF" }         -- "Half and Half"

Default  = { Colour="#000000" }         -- "Black"
Number   = Default
Operator = Default

String  = { Colour="#0080FF" }          -- "Azure Radiance"
Escape  = String
StringPreProc = Escape
Interpolation  =  Escape

LineComment = { Colour="#00AAAA" }      -- "Persian Green/Tradewind"
BlockComment = LineComment

LineNum      = { Colour="#808080" }     -- "Gray"

PreProcessor  = { Colour="#924B72" }    -- not used by PureBASIC syntax

Keywords = {
  { Colour="#006666" , Bold=true },     -- "Blue Stone"  (PB Keywords)
  { Colour="#924B72" },                 -- "Cannon Pink" (constants)
  { Colour="#006666" },                 -- "Blue Stone"  (Procedure calls)
  String,                               -- (Escaped-Strings Prefix "~")
  { Colour= "#006666" },
  { Colour= "#176629" },
}

-- new LSP based elements:

SemanticTokenTypes = {
  { Type = 'type', Style = Keywords[2] },
  { Type = 'class', Style =  Keywords[1] },
  { Type = 'struct', Style =  Keywords[4] },
  { Type = 'interface', Style = Keywords[1] },
  { Type = 'parameter', Style = Keywords[6] },
  { Type = 'variable', Style = Keywords[5] },
  { Type = 'enumMember', Style = Keywords[5] },
  { Type = 'function', Style = Keywords[4] },
  { Type = 'method', Style = Keywords[4] },
  { Type = 'keyword', Style =  Keywords[1]},
  { Type = 'number', Style = Number },
  { Type = 'regexp', Style = String },
  { Type = 'operator', Style = Operator },
}