1. 07 Nov, 2019 1 commit
  2. 04 Nov, 2019 5 commits
    • Christian Hergert's avatar
      styles: revert addition of struckthrough · 9892d934
      Christian Hergert authored
      Instead, this should be using a declarative definition so that
      style-schemes can style it appropriately.
      
      There may be some more base styles that can be relied on in the future,
      but we want to avoid declaring style like this from language specs.
      9892d934
    • Christian Hergert's avatar
      stylescheme: add support for fallback style-ids · f04f89bc
      Christian Hergert authored
      As we try to make styles more declarative, we need a fallback to ensure
      that we don't break existing style-schemes in the wild.
      
      Related to !77
      f04f89bc
    • Jeffery To's avatar
      def.lang: Rename "underlined" style to "net-address" · adc85255
      Jeffery To authored
      This renames the "underlined" style to "net-address":
      
      * Default styles all have logical/functional names, e.g. "constant",
        "function". The "underlined" style is the only one with a stylistic
        name.
      
      * Almost all current uses of the "underlined" style are for URLs or
        email addresses.
      
      The only non-address use of the "underlined" style is for
      "markup-emphasis" in asciidoc.lang. This also changes this mapping to
      "def:doc-comment-element" (following markdown.lang).
      
      This also keeps the "underlined" style, mapping it to "net-address", for
      backwards-compatibility with third-party language definitions.
      adc85255
    • Christian Hergert's avatar
      765960fd
    • Jeffery To's avatar
      html.lang: Update tag and attribute name regular expressions · 5385eb27
      Jeffery To authored
      This updates the regular expressions for tag and attribute names,
      following the 12.2 Parsing HTML documents[1] section of the HTML Living
      Standard, specifically:
      
      * 12.2.3.5 Preprocessing the input stream
      * 12.2.5.6 Tag open state
      * 12.2.5.8 Tag name state
      * 12.2.5.32 Before attribute name state
      * 12.2.5.33 Attribute name state
      
      These characters are flagged as parse errors during preprocessing:
      
      * Surrogates[2]
      * Noncharacters[3]
      * Controls[4]
      
      (Including surrogate characters in GRegex regular expressions leads to
      compilation errors "disallowed Unicode code point (>= 0xd800 && <=
      0xdfff)", so they are not included/checked.)
      
      Null characters are also flagged as errors later in the parsing process.
      Other characters (whitespace, "/", ">", etc.) trigger state changes and
      so cannot be part of the tag / attribute name.
      
      Fixes #87.
      
      [1]: https://html.spec.whatwg.org/multipage/parsing.html#parsing
      [2]: https://infra.spec.whatwg.org/#surrogate
      [3]: https://infra.spec.whatwg.org/#noncharacter
      [4]: https://infra.spec.whatwg.org/#control
      5385eb27
  3. 03 Nov, 2019 1 commit
    • Jeffery To's avatar
      def.lang: Add Unicode identifier category regular expressions · 3abe31a0
      Jeffery To authored
      This adds regular expressions for the Unicode ID_Start and ID_Continue
      categories to def.lang, so that they may be reused in different language
      definitions.
      
      (These regular expressions are necessary because GRegex does not yet
      support referencing these categories directly, e.g. \p{ID_Start}.)
      
      This also updates python3.lang to use these new regular expressions.
      3abe31a0
  4. 01 Nov, 2019 8 commits
  5. 31 Oct, 2019 1 commit
  6. 28 Oct, 2019 9 commits
  7. 24 Oct, 2019 1 commit
  8. 07 Oct, 2019 1 commit
  9. 30 Sep, 2019 1 commit
  10. 26 Sep, 2019 4 commits
  11. 25 Sep, 2019 2 commits
  12. 23 Sep, 2019 2 commits
  13. 22 Sep, 2019 1 commit
  14. 17 Sep, 2019 3 commits