@markuplint/php-parser 4.18.0 → 4.18.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -18,11 +18,11 @@
18
18
 
19
19
  `PHPParser` コンストラクタは、正しいマッチングを保証するために、最も具体的なものから順に3つのパターンを定義しています:
20
20
 
21
- | タイプ | 開始 | 終了 | 説明 |
21
+ | タイプ | 開始 | 終了 | 説明 |
22
22
  | --------------- | ------- | ----- | ------------------------- | ----------------------------------------------------- |
23
- | `php-tag` | `<?php` | `/\?> | $/` | 標準 PHP コードブロック(EOF で未閉鎖のタグにも対応) |
24
- | `php-echo` | `<?=` | `?>` | ショートエコー / 出力タグ |
25
- | `php-short-tag` | `<?` | `/\?> | $/` | ショートオープンタグ(EOF で未閉鎖のタグにも対応) |
23
+ | `php-tag` | `<?php` | `/\?> | $/` | 標準 PHP コードブロック(EOF で未閉鎖のタグにも対応) |
24
+ | `php-echo` | `<?=` | `?>` | ショートエコー / 出力タグ |
25
+ | `php-short-tag` | `<?` | `/\?> | $/` | ショートオープンタグ(EOF で未閉鎖のタグにも対応) |
26
26
 
27
27
  **EOF 未閉鎖タグの処理:** `php-tag` と `php-short-tag` パターンは終了デリミタに正規表現 `/\?>|$/` を使用しています。`$` はソースの末尾にマッチし、閉じられていない PHP ブロック(例: ファイル末尾の `<?php include("path/to")`)を単一の `#ps:*` ノードとして正しくキャプチャします。
28
28
 
package/ARCHITECTURE.md CHANGED
@@ -18,11 +18,11 @@ This approach allows markuplint to lint the HTML structure without being confuse
18
18
 
19
19
  The `PHPParser` constructor defines three ignore patterns, ordered from most specific to least specific to ensure correct matching:
20
20
 
21
- | Type | Start | End | Description |
21
+ | Type | Start | End | Description |
22
22
  | --------------- | ------- | ----- | ------------------------ | ------------------------------------------------------- |
23
- | `php-tag` | `<?php` | `/\?> | $/` | Standard PHP code blocks (also matches unclosed at EOF) |
24
- | `php-echo` | `<?=` | `?>` | Short echo / output tags |
25
- | `php-short-tag` | `<?` | `/\?> | $/` | Short open tags (also matches unclosed at EOF) |
23
+ | `php-tag` | `<?php` | `/\?> | $/` | Standard PHP code blocks (also matches unclosed at EOF) |
24
+ | `php-echo` | `<?=` | `?>` | Short echo / output tags |
25
+ | `php-short-tag` | `<?` | `/\?> | $/` | Short open tags (also matches unclosed at EOF) |
26
26
 
27
27
  **EOF-unclosed tag handling:** The `php-tag` and `php-short-tag` patterns use a regex `/\?>|$/` for the end delimiter. The `$` alternative matches the end of the source, allowing PHP blocks that are never closed (e.g., `<?php include("path/to")` at the end of a file) to be correctly captured as a single `#ps:*` node rather than leaving unparsed content.
28
28
 
package/CHANGELOG.md CHANGED
@@ -3,6 +3,14 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [4.18.4](https://github.com/markuplint/markuplint/compare/v4.18.3...v4.18.4) (2026-10-22)
7
+
8
+ **Note:** Version bump only for package @markuplint/php-parser
9
+
10
+ ## [4.18.3](https://github.com/markuplint/markuplint/compare/v4.18.2...v4.18.3) (2026-05-10)
11
+
12
+ **Note:** Version bump only for package @markuplint/php-parser
13
+
6
14
  # [4.18.0](https://github.com/markuplint/markuplint/compare/v4.14.1...v4.18.0) (2026-04-22)
7
15
 
8
16
  **Note:** Version bump only for package @markuplint/php-parser
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@markuplint/php-parser",
3
- "version": "4.18.0",
3
+ "version": "4.18.4",
4
4
  "description": "PHP parser for markuplint",
5
5
  "repository": "git@github.com:markuplint/markuplint.git",
6
6
  "author": "Yusuke Hirao <yusukehirao@me.com>",
@@ -21,10 +21,10 @@
21
21
  "clean": "tsc --build --clean tsconfig.build.json"
22
22
  },
23
23
  "dependencies": {
24
- "@markuplint/html-parser": "4.18.0"
24
+ "@markuplint/html-parser": "4.18.4"
25
25
  },
26
26
  "devDependencies": {
27
- "@markuplint/parser-utils": "4.18.0"
27
+ "@markuplint/parser-utils": "4.18.4"
28
28
  },
29
- "gitHead": "1885af6349def3f19df975b9e9c399dd47361de1"
29
+ "gitHead": "b5fbb4572f7313e3c80735da1677d33cb82e6e2f"
30
30
  }