Skip to content
This repository has been archived by the owner on Dec 15, 2022. It is now read-only.

Highlighting not detecting golang #114

Open
1 task done
OmgImAlexis opened this issue Feb 8, 2017 · 0 comments
Open
1 task done

Highlighting not detecting golang #114

OmgImAlexis opened this issue Feb 8, 2017 · 0 comments

Comments

@OmgImAlexis
Copy link

Prerequisites

Description

My file isn't being detected as a golang text/template.

Steps to Reproduce

  1. Open my file
  2. 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 }}
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants