Update C syntax (#1572)

This commit is contained in:
1024jp 2024-01-18 07:48:21 +09:00
parent 2320d90aa1
commit 0f2b2ae223
4 changed files with 10 additions and 7 deletions

View File

@ -8,6 +8,7 @@
- Improve stability.
- When the file encoding is incompatible with the document content, display a notification instead of silently overwriting the document file with lossy data in autosaving until the user explicitly allows it.
- Suppress displaying the dialog for saving in an incompatible encoding when the user once allowed it.
- Update the C syntax to improve highlighting numbers.
- [trivial] Improve alert messages for incompatible text encodings.

View File

@ -30,6 +30,7 @@
<li>Improve stability.</li>
<li>When the file encoding is incompatible with the document content, display a notification instead of silently overwriting the document file with lossy data in autosaving until the user explicitly allows it.</li>
<li>Suppress displaying the dialog for saving in an incompatible encoding when the user once allowed it.</li>
<li>Update the C syntax to improve highlighting numbers.</li>
<li><span class="trivial">trivial</span>: Improve alert messages for incompatible text encodings.</li>
</ul>

View File

@ -30,6 +30,7 @@
<li>安定性を向上</li>
<li>エンコーディングが書類内容と互換性のない場合、ユーザが明示的に許可をするまでオートセーブはせずにダイアログでその旨を表示</li>
<li>書類内容と互換性のないエンコーディングでの保存をユーザが一度許可したのちは、保存毎にダイアログを表示しないように</li>
<li>Cシンタックスを更新し数値のハイライトを改良</li>
<li><span class="trivial">trivial</span>: 書類内容と互換性のないエンコーディングに関するアラートメッセージを改良</li>
</ul>
@ -338,7 +339,7 @@
<li>常に行頭からコメントアウトするオプションを廃止(この振る舞いは常に有効になりました)</li>
<li>「カラーコード」ツールバーボタンを廃止</li>
<li>文字インスペクタに表示されるUnicodeブロック名のリストをUnicode 15.1.0に更新</li>
<li>Swiftシンタックススタイルを更新してSwift 5.9のキーワードを追加</li>
<li>Swiftシンタックスを更新してSwift 5.9のキーワードを追加</li>
<li><span class="trivial">trivial</span>: macOS 14以降で不透明度ツールバー項目の表示方法を変更</li>
<li><span class="trivial">trivial</span>: 検索ウインドウのズームボタンを無効に</li>
<li><span class="trivial">trivial</span>: ショートカット入力フィールドで無効なコンテキストメニューが出ないように抑制</li>

View File

@ -6,9 +6,9 @@ metadata:
author: "1024jp"
distributionURL: "https://coteditor.com"
license: "Same as CotEditor"
lastModified: "2023-05-05"
lastModified: "2024-01-18"
description: "based on C99"
version: "1.1.0"
version: "1.1.1"
keywords:
- beginString: "auto"
- beginString: "break"
@ -678,19 +678,19 @@ values:
numbers:
- beginString: "0"
description: "zero"
- beginString: "\\b-?[1-9][0-9]*l?\\b"
- beginString: "\\b-?[1-9][0-9]*[ul]{0,3}\\b"
regularExpression: true
ignoreCase: true
description: "integer"
- beginString: "\\b-?\\d+\\.\\d+(e[-+]?\\d+)?l?\\b"
- beginString: "\\b-?\\d+(\\.\\d+)?(e[-+]?\\d+)?[fl]?\\b"
regularExpression: true
ignoreCase: true
description: "float"
- beginString: "\\b0[1-7][0-7]*+l?\\b"
- beginString: "\\b0[1-7][0-7]*+[ul]{0,3}\\b"
regularExpression: true
ignoreCase: true
description: "octal"
- beginString: "\\b0x[0-9a-f]+l?\\b"
- beginString: "\\b0x[0-9a-f]+[ul]{0,3}\\b"
regularExpression: true
ignoreCase: true
description: "hex"