]>
luflow.net public git repositories - flow-web.git/blob - static/highlight/es/languages/go.js
1 /*! `go` grammar compiled for Highlight.js 11.11.1 */
2 var hljsGrammar
= ( function () {
7 Author: Stephan Kountso aka StepLg <steplg@gmail.com>
8 Contributors: Evgeny Stepanischev <imbolk@gmail.com>
9 Description: Google go language (golang). For info about language
10 Website: http://golang.org/
11 Category: common, system
95 aliases : [ 'golang' ],
99 hljs
. C_LINE_COMMENT_MODE
,
100 hljs
. C_BLOCK_COMMENT_MODE
,
104 hljs
. QUOTE_STRING_MODE
,
105 hljs
. APOS_STRING_MODE
,
116 match : /-?\b0[xX]\.[a-fA-F0-9](_?[a-fA-F0-9])*[pP][+-]?\d(_?\d)*i?/ , // hex without a present digit before . (making a digit afterwards required)
120 match : /-?\b0[xX](_?[a-fA-F0-9])+((\.([a-fA-F0-9](_?[a-fA-F0-9])*)?)?[pP][+-]?\d(_?\d)*)?i?/ , // hex with a present digit before . (making a digit afterwards optional)
124 match : /-?\b0[oO](_?[0-7])*i?/ , // leading 0o octal
128 match : /-?\.\d(_?\d)*([eE][+-]?\d(_?\d)*)?i?/ , // decimal without a present digit before . (making a digit afterwards required)
132 match : /-?\b\d(_?\d)*(\.(\d(_?\d)*)?)?([eE][+-]?\d(_?\d)*)?i?/ , // decimal with a present digit before . (making a digit afterwards optional)
137 { begin : /:=/ // relevance booster
140 className : 'function' ,
141 beginKeywords : 'func' ,
164 export default hljsGrammar
;