summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorPile Trade <pile.trade@gmail.com>2020-11-17 19:03:11 +0000
committerChristian Hergert <chergert@redhat.com>2020-11-29 11:58:30 -0800
commit576ef39efb983f0fc8da401f9a3879543d223713 (patch)
tree9ea3101832215a47c50d8694c291ecfd87621d66 /tests
parent7d877d75a67151495689f337857420a7e926e276 (diff)
downloadgtksourceview-576ef39efb983f0fc8da401f9a3879543d223713.tar.gz
go.lang: make "0i" syntax highlight as integer
Diffstat (limited to 'tests')
-rw-r--r--tests/syntax-highlighting/file.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/syntax-highlighting/file.go b/tests/syntax-highlighting/file.go
index 3f3c61e5..c044a0e6 100644
--- a/tests/syntax-highlighting/file.go
+++ b/tests/syntax-highlighting/file.go
@@ -6,4 +6,4 @@ var s string = "A string with \x60 a horse \140 \u2014 \U0001F40E %[1]O\n"
var i = 0b0100_0101i
func main() { fmt.Printf(s, 0o_7_7_7); }
type my_struct struct { I int; o string }
-func bar( a int32, b string )(c float32 ){ c = 1.3 + 0x1.fp-2 * float32(a - int32(len(b))); return } \ No newline at end of file
+func bar( a int32, b string )(c float32) { c = imag(987i) + 1.3 + 0x1.fp-2 * float32(a - int32(len(b))); return } \ No newline at end of file