highlight icon indicating copy to clipboard operation
highlight copied to clipboard

Languages patterns update

Open bogdancondorachi opened this issue 1 year ago • 1 comments

This is a series of language updates based on #123 where new tokens have been introduced which lets us add new patterns for numeric and logical values.

Currently as a draft where I'll update it with all the changes as they are added

JSON

  • Added comment pattern (not valid but helpful in terms of code documentation)
  • Added literal pattern (true|false|null)
  • Added operator pattern (:)
  • Added numeric pattern ("age": 30)

YAML

  • Added date/time pattern (date: 2024-05-31)
  • Added literal pattern (true|false|yes|no|null)
  • Added numeric pattern (age: 28)

bogdancondorachi avatar May 28 '24 20:05 bogdancondorachi

Pull Request Test Coverage Report for Build 9279665034

Details

  • 18 of 21 (85.71%) changed or added relevant lines in 9 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage decreased (-0.1%) to 95.203%

Changes Missing Coverage Covered Lines Changed/Added Lines %
src/Languages/Json/Patterns/JsonCommentPattern.php 1 2 50.0%
src/Languages/Json/Patterns/JsonLiteralPattern.php 1 2 50.0%
src/Languages/Json/Patterns/JsonNumberPattern.php 1 2 50.0%
<!-- Total: 18 21
Totals Coverage Status
Change from base Build 9266627087: -0.1%
Covered Lines: 1568
Relevant Lines: 1647

💛 - Coveralls

coveralls avatar May 28 '24 20:05 coveralls