Class DockerLexicalConstant


  • public class DockerLexicalConstant
    extends Object
    • Field Detail

      • UNQUOTED_VARIABLE_MODIFIER

        public static final String UNQUOTED_VARIABLE_MODIFIER
        Allow to match the modifier of a variable in a dockerfile. Currently more permissive as it allow to match any characters except unescaped $, ' and " until it find a }. There is also a lookahead in the end to ensure the match is followed by a closing } without matching it.
        See Also:
        Constant Field Values
      • HEREDOC_NAME

        public static final String HEREDOC_NAME
        Regexes to match Docker heredoc expression as described in the Docker reference. It starts with the heredoc indicator (2 Less-than signs), followed by an optional minus, followed by an optional double quote then the 1st capturing group (the heredoc block name), followed again by an optional double quote. In 1st capturing group: one or more (possessive) uppercase/lowercase letters, numbers, or underscore. The key part is the reference to the heredoc block name which end the heredoc block by having this element alone in a line. This regex also allow having multiple heredoc block name, it will then end until the last matched block.
        See Also:
        Constant Field Values