Skip to content

Commit

Permalink
Add golang alias for the Go language (#1827)
Browse files Browse the repository at this point in the history
  • Loading branch information
Situphen committed May 31, 2021
1 parent 4bf111a commit d116aad
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pygments/lexers/_mapping.py
Expand Up @@ -182,7 +182,7 @@
'GettextLexer': ('pygments.lexers.textfmts', 'Gettext Catalog', ('pot', 'po'), ('*.pot', '*.po'), ('application/x-gettext', 'text/x-gettext', 'text/gettext')),
'GherkinLexer': ('pygments.lexers.testing', 'Gherkin', ('gherkin', 'cucumber'), ('*.feature',), ('text/x-gherkin',)),
'GnuplotLexer': ('pygments.lexers.graphics', 'Gnuplot', ('gnuplot',), ('*.plot', '*.plt'), ('text/x-gnuplot',)),
'GoLexer': ('pygments.lexers.go', 'Go', ('go',), ('*.go',), ('text/x-gosrc',)),
'GoLexer': ('pygments.lexers.go', 'Go', ('go', 'golang'), ('*.go',), ('text/x-gosrc',)),
'GoloLexer': ('pygments.lexers.jvm', 'Golo', ('golo',), ('*.golo',), ()),
'GoodDataCLLexer': ('pygments.lexers.business', 'GoodData-CL', ('gooddata-cl',), ('*.gdc',), ('text/x-gooddata-cl',)),
'GosuLexer': ('pygments.lexers.jvm', 'Gosu', ('gosu',), ('*.gs', '*.gsx', '*.gsp', '*.vark'), ('text/x-gosu',)),
Expand Down
2 changes: 1 addition & 1 deletion pygments/lexers/go.py
Expand Up @@ -25,7 +25,7 @@ class GoLexer(RegexLexer):
"""
name = 'Go'
filenames = ['*.go']
aliases = ['go']
aliases = ['go', 'golang']
mimetypes = ['text/x-gosrc']

flags = re.MULTILINE | re.UNICODE
Expand Down

0 comments on commit d116aad

Please sign in to comment.