Giter Site home page Giter Site logo

Comments (2)

mholt avatar mholt commented on September 24, 2024 1

@isobit makes some good points. Directives are "anything goes" - there's just no good reliable way for the editor to know what will actually work when the user runs Caddy. The editor would need a way to hook into the exact instance of Caddy that will be executed, because every build is different.

So I recommend highlighting words that "should be" directives based on syntax/location.

from vim-caddyfile.

isobit avatar isobit commented on September 24, 2024

I mostly made this design decision because of @mholt's recommendation. There are two major issues with enumerating the available directives:

  1. Even if building the list of directives is scripted, the build script must be re-run and the plugin updated every time the list changes.
  2. The "official" list of directives does not cover directives defined by users who build their own copy of Caddy with custom plugins. The Caddyfile syntax defines directives as arbitrary tokens, not by enumeration.

You have a valid point, though, and I do like the idea of automatically updating the list of directives. Perhaps there is a compromise?

from vim-caddyfile.

Related Issues (4)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.