File: literals.rb

package info (click to toggle)
tree-sitter-ruby 0.23.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 15,780 kB
  • sloc: ansic: 472,675; javascript: 1,093; lisp: 190; makefile: 101; python: 88; ruby: 56; cpp: 14; sh: 9
file content (36 lines) | stat: -rw-r--r-- 459 bytes parent folder | download
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
"hello"
# ^ string
%(hello)
# ^ string
%w(hello goodbye)
#   ^ string
#         ^ string

:hello
# ^ string.special.symbol
%s(hello)
# ^ string.special.symbol
%I(hello goodbye)
#  ^ string.special.symbol
#         ^ string.special.symbol

/hello/
# ^ string.special.regex
%r(hello)
# ^ string.special.regex

12345
# ^ number
12.345
# ^ number

nil
# ^ constant.builtin
true
# ^ constant.builtin
TRUE
# ^ constant
false
# ^ constant.builtin
FALSE
# ^ constant