fix: Fix SyntaxHighlighter glob pattern handling for non-default file systems by gnodet · Pull Request #1300 · jline/jline3 (original) (raw)

@gnodet gnodet changed the titleFix SyntaxHighlighter glob pattern handling for non-default file systems fix: Fix SyntaxHighlighter glob pattern handling for non-default file systems

May 27, 2025

…rrectly

The original implementation had several issues when processing glob patterns in nanorc include/theme directives:

  1. Called nanorc.resolveSibling(parameter).getParent() with glob patterns containing wildcards, which fails on Windows and non-default file systems
  2. Did not properly support recursive patterns like 'foo/bar/**/*.nanorc'
  3. Used Paths.get() which assumes the default file system, breaking compatibility with JAR file systems

Changes:

The fix ensures that nanorc configuration files can properly include syntax files using glob patterns like:

Fixes #1290

@gnodet gnodet deleted the fix-syntax-highlighter-glob-patterns branch

May 27, 2025 14:46

This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters

[ Show hidden characters]({{ revealButtonHref }})