This repository was archived by the owner on Dec 15, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 57
This repository was archived by the owner on Dec 15, 2022. It is now read-only.
Highlighting not detecting golang #114
Copy link
Copy link
Open
Labels
Description
Prerequisites
- Put an X between the brackets on this line if you have done all of the following:
- Reproduced the problem in Safe Mode: http://flight-manual.atom.io/hacking-atom/sections/debugging/#using-safe-mode
- Followed all applicable steps in the debugging guide: http://flight-manual.atom.io/hacking-atom/sections/debugging/
- Checked the FAQs on the message board for common solutions: https://discuss.atom.io/c/faq
- Checked that your issue isn't already filed: https://github.com/issues?utf8=✓&q=is%3Aissue+user%3Aatom
- Checked that there is not already an Atom package that provides the described functionality: https://atom.io/packages
Description
My file isn't being detected as a golang text/template.
Steps to Reproduce
- Open my file
- See that file isn't being detected
Expected behavior: [What you expect to happen]
Template to be detected as golang text/template instead of HTML
Actual behavior: [What actually happens]
Template is detected as HTML
Reproduces how often: [What percentage of the time does it reproduce?]
100%
Versions
> atom --version
Atom : 1.13.0
Electron: 1.3.13
Chrome : 52.0.2743.82
Node : 6.5.0
> apm -v
apm 1.14.1
npm 3.10.5
node 4.4.5
python 2.7.13
git 2.11.0
Additional Information
My caddy.tmpl file.
{{ range $host, $containers := groupByMulti $ "Env.VIRTUAL_HOST" "," }}
{{ $host }} {
{{ range $index, $container := $containers }}
{{ $addrLen := len $container.Addresses }}
{{ if eq $addrLen 1 }}
{{ with $address := index $container.Addresses 0 }}
proxy / {{ $address.IP }}:{{ $address.Port }} {
header_upstream Host {host}
header_upstream X-Real-IP {remote}
header_upstream X-Forwarded-For {remote}
header_upstream X-Forwarded-Proto {scheme}
}
{{ end }}
{{ else if $container.Env.VIRTUAL_PORT }}
{{ range $i, $address := $container.Addresses }}
{{ if eq $address.Port $container.Env.VIRTUAL_PORT }}
proxy / {{ $address.IP }}:{{ $address.Port }} {
header_upstream Host {host}
header_upstream X-Real-IP {remote}
header_upstream X-Forwarded-For {remote}
header_upstream X-Forwarded-Proto {scheme}
}
{{ end }}
{{ end }}
{{ else }}
{{ range $i, $address := $container.Addresses }}
{{ if eq $address.Port "80" }}
proxy / {{ $address.IP }}:{{ $address.Port }} {
header_upstream Host {host}
header_upstream X-Real-IP {remote}
header_upstream X-Forwarded-For {remote}
header_upstream X-Forwarded-Proto {scheme}
}
{{ end }}
{{ end }}
{{ end }}
{{ end }}
}
{{ end }}