From 77d1d07fbc1b8e27125d5d727e1551e9aeaac6c2 Mon Sep 17 00:00:00 2001 From: nsfisis Date: Fri, 17 Mar 2023 01:56:28 +0900 Subject: fix(content): fix XML notations --- .../cpp-you-can-use-keywords-in-attributes.xml | 38 +++++++------------- .../2021-10-02/ruby-then-keyword-and-case-in.xml | 14 +++----- ...ce-between-autocmd-bufwrite-and-bufwritepre.xml | 40 ++++++---------------- 3 files changed, 28 insertions(+), 64 deletions(-) (limited to 'content/posts/2021-10-02') diff --git a/content/posts/2021-10-02/cpp-you-can-use-keywords-in-attributes.xml b/content/posts/2021-10-02/cpp-you-can-use-keywords-in-attributes.xml index f212b7c..4ee22fe 100644 --- a/content/posts/2021-10-02/cpp-you-can-use-keywords-in-attributes.xml +++ b/content/posts/2021-10-02/cpp-you-can-use-keywords-in-attributes.xml @@ -53,15 +53,15 @@ std::cout << "Hello, World!" << std::endl;
- the identifiers that are keywords cannot be used for other purposes; + the identifiers that are keywords cannot be used for other purposes; - The only place they can be used as non-keywords is in an - attribute-token. (e.g. [[private]] is a valid attribute) (since C++11) - - - - + The only place they can be used as non-keywords is in an + attribute-token. (e.g. [[private]] is a valid attribute) (since C++11) + + + +
キーワードでも属性として指定する場合は非キーワードとして使えるらしい。 実際にやってみる。 @@ -91,24 +91,12 @@ std::cout << "Hello, World!" << std::endl; (参考: 同ドラフト) - - <%{ - - - %>} - - - <:[ - - - :>] - - - %:# - - - %:%:## - + <%{ + %>} + <:[ + :>] + %:# + %:%:## identifier の構文上の要件を満たさないような代替トークン」はこれらが当てはまると思われる。 diff --git a/content/posts/2021-10-02/ruby-then-keyword-and-case-in.xml b/content/posts/2021-10-02/ruby-then-keyword-and-case-in.xml index 4176c67..2901e44 100644 --- a/content/posts/2021-10-02/ruby-then-keyword-and-case-in.xml +++ b/content/posts/2021-10-02/ruby-then-keyword-and-case-in.xml @@ -177,19 +177,13 @@ end まとめ - ifcase の条件の後ろには then;、改行のいずれかが必要 + ifcase の条件の後ろには then;、改行のいずれかが必要 - - 通常は改行しておけばよい - + 通常は改行しておけばよい - - 3.0 で入る予定の case - in でも then 等が必要になる - - - Ruby の構文を正確に知るには (現状) parse.y を直接読めばよい - + 3.0 で入る予定の case - in でも then 等が必要になる + Ruby の構文を正確に知るには (現状) parse.y を直接読めばよい diff --git a/content/posts/2021-10-02/vim-difference-between-autocmd-bufwrite-and-bufwritepre.xml b/content/posts/2021-10-02/vim-difference-between-autocmd-bufwrite-and-bufwritepre.xml index ed7f03f..dc3843b 100644 --- a/content/posts/2021-10-02/vim-difference-between-autocmd-bufwrite-and-bufwritepre.xml +++ b/content/posts/2021-10-02/vim-difference-between-autocmd-bufwrite-and-bufwritepre.xml @@ -28,15 +28,9 @@ :help に説明があるが、この記事のタイトルにある2つを含めた以下のイベントには、その違いについて説明がない。 - - BufRead/BufReadPost - - - BufWrite/BufWritePre - - - BufAdd/BufCreate - + BufRead/BufReadPost + BufWrite/BufWritePre + BufAdd/BufCreate このうち、BufAdd/BufCreate に関しては、:help BufCreate
@@ -90,39 +84,27 @@ to |EncodingChanged|. 記事タイトルについて言えば、どちらも変わらないので好きな方を使えばよい。あえて言えば、次のようになるだろう。 - BufAdd/BufCreate + BufAdd/BufCreate - - BufCreate は歴史的な理由により (`for historic reasons'') - 存在しているため、新しい方 (`BufAdd) を使う - + BufCreate は歴史的な理由により ("for historic reasons") 存在しているため、新しい方 (BufAdd) を使う - BufRead/BufReadPost + BufRead/BufReadPost - - BufReadPre との対称性のため、あるいは BufWritePost - との対称性のため BufReadPost を使う - + BufReadPre との対称性のため、あるいは BufWritePost との対称性のため BufReadPost を使う - BufWrite/BufWritePre + BufWrite/BufWritePre - - BufWritePost との対称性のため、あるいは BufReadPre - との対称性のため BufWritePre を使う - + BufWritePost との対称性のため、あるいは BufReadPre との対称性のため BufWritePre を使う - FileEncoding/EncodingChanged + FileEncoding/EncodingChanged - - FileEncoding`Obsolete'' - と明言されているので、`EncodingChanged を使う - + FileEncoding`Obsolete'' と明言されているので、`EncodingChanged を使う -- cgit v1.2.3-70-g09d2