From 21136ab8db7572c527726f93009b4b72bf00f9a9 Mon Sep 17 00:00:00 2001 From: nsfisis Date: Tue, 6 May 2025 16:12:27 +0900 Subject: feat(blog/nuldoc): implement codeblock filename --- .../cpp-you-can-use-keywords-in-attributes/index.html | 2 +- .../2021-10-02/python-unbound-local-error/index.html | 2 +- .../ruby-detect-running-implementation/index.html | 5 ++++- .../2021-10-02/ruby-then-keyword-and-case-in/index.html | 5 ++++- .../rust-where-are-primitive-types-from/index.html | 5 ++++- .../index.html | 17 ++++++++++++++++- .../vim-swap-order-of-selected-lines/index.html | 2 +- 7 files changed, 31 insertions(+), 7 deletions(-) (limited to 'vhosts/blog/public/posts/2021-10-02') diff --git a/vhosts/blog/public/posts/2021-10-02/cpp-you-can-use-keywords-in-attributes/index.html b/vhosts/blog/public/posts/2021-10-02/cpp-you-can-use-keywords-in-attributes/index.html index 14727a23..77117fa6 100644 --- a/vhosts/blog/public/posts/2021-10-02/cpp-you-can-use-keywords-in-attributes/index.html +++ b/vhosts/blog/public/posts/2021-10-02/cpp-you-can-use-keywords-in-attributes/index.html @@ -14,7 +14,7 @@ 【C++】 属性構文の属性名にはキーワードが使える|REPL: Rest-Eat-Program Loop - +
diff --git a/vhosts/blog/public/posts/2021-10-02/python-unbound-local-error/index.html b/vhosts/blog/public/posts/2021-10-02/python-unbound-local-error/index.html index f72898d5..bf7d1595 100644 --- a/vhosts/blog/public/posts/2021-10-02/python-unbound-local-error/index.html +++ b/vhosts/blog/public/posts/2021-10-02/python-unbound-local-error/index.html @@ -14,7 +14,7 @@ 【Python】 クロージャとUnboundLocalError: local variable 'x' referenced before assignment|REPL: Rest-Eat-Program Loop - +
diff --git a/vhosts/blog/public/posts/2021-10-02/ruby-detect-running-implementation/index.html b/vhosts/blog/public/posts/2021-10-02/ruby-detect-running-implementation/index.html index 92207b64..e954768e 100644 --- a/vhosts/blog/public/posts/2021-10-02/ruby-detect-running-implementation/index.html +++ b/vhosts/blog/public/posts/2021-10-02/ruby-detect-running-implementation/index.html @@ -14,7 +14,7 @@ 【Ruby】 自身を実行している処理系の種類を判定する|REPL: Rest-Eat-Program Loop - +
@@ -117,6 +117,9 @@ mruby 該当部分のソース より引用:

+
+ version.h +
/*
  * Ruby engine.
  */
diff --git a/vhosts/blog/public/posts/2021-10-02/ruby-then-keyword-and-case-in/index.html b/vhosts/blog/public/posts/2021-10-02/ruby-then-keyword-and-case-in/index.html
index 864bc098..b8dfaadc 100644
--- a/vhosts/blog/public/posts/2021-10-02/ruby-then-keyword-and-case-in/index.html
+++ b/vhosts/blog/public/posts/2021-10-02/ruby-then-keyword-and-case-in/index.html
@@ -14,7 +14,7 @@
     
     
     【Ruby】 then キーワードと case in|REPL: Rest-Eat-Program Loop
-    
+    
   
   
     
@@ -185,6 +185,9 @@ https://github.com/ruby/ruby/blob/221ca0f8281d39f0dfdfe13b2448875384bbf735/parse.y#L3961-L3986

+
+ parse.y +
p_case_body : keyword_in
 {
   SET_LEX_STATE(EXPR_BEG|EXPR_LABEL);
diff --git a/vhosts/blog/public/posts/2021-10-02/rust-where-are-primitive-types-from/index.html b/vhosts/blog/public/posts/2021-10-02/rust-where-are-primitive-types-from/index.html
index 522aa15b..dd2d495b 100644
--- a/vhosts/blog/public/posts/2021-10-02/rust-where-are-primitive-types-from/index.html
+++ b/vhosts/blog/public/posts/2021-10-02/rust-where-are-primitive-types-from/index.html
@@ -14,7 +14,7 @@
     
     
     Rust のプリミティブ型はどこからやって来るか|REPL: Rest-Eat-Program Loop
-    
+    
   
   
     
@@ -141,6 +141,9 @@ rustc_resolve というのはいかにも名前解決を担いそうなクレート名である。該当箇所を見てみる。

+
+ rustc_resolve/src/lib.rs +
/// Interns the names of the primitive types.
 ///
 /// All other types are defined somewhere and possibly imported, but the primitive ones need
diff --git a/vhosts/blog/public/posts/2021-10-02/vim-difference-between-autocmd-bufwrite-and-bufwritepre/index.html b/vhosts/blog/public/posts/2021-10-02/vim-difference-between-autocmd-bufwrite-and-bufwritepre/index.html
index 79e162e3..684c935c 100644
--- a/vhosts/blog/public/posts/2021-10-02/vim-difference-between-autocmd-bufwrite-and-bufwritepre/index.html
+++ b/vhosts/blog/public/posts/2021-10-02/vim-difference-between-autocmd-bufwrite-and-bufwritepre/index.html
@@ -14,7 +14,7 @@
     
     
     【Vim】 autocmd events の BufWrite/BufWritePre の違い|REPL: Rest-Eat-Program Loop
-    
+    
   
   
     
@@ -120,6 +120,9 @@ https://github.com/vim/vim/blob/8e6be34338f13a6a625f19bcef82019c9adc65f2/src/autocmd.c#L85-L86

+
+ src/autocmd.c +
{"BufAdd",      EVENT_BUFADD},
 {"BufCreate",   EVENT_BUFADD},
@@ -127,6 +130,9 @@ https://github.com/vim/vim/blob/8e6be34338f13a6a625f19bcef82019c9adc65f2/src/autocmd.c#L95-L97

+
+ src/autocmd.c +
{"BufRead",     EVENT_BUFREADPOST},
 {"BufReadCmd",  EVENT_BUFREADCMD},
 {"BufReadPost", EVENT_BUFREADPOST},
@@ -135,6 +141,9 @@ https://github.com/vim/vim/blob/8e6be34338f13a6a625f19bcef82019c9adc65f2/src/autocmd.c#L103-L105

+
+ src/autocmd.c +
{"BufWrite",    EVENT_BUFWRITEPRE},
 {"BufWritePost",    EVENT_BUFWRITEPOST},
 {"BufWritePre", EVENT_BUFWRITEPRE},
@@ -149,6 +158,9 @@ https://github.com/neovim/neovim/blob/71d4f5851f068eeb432af34850dddda8cc1c71e3/src/nvim/auevents.lua#L119-L124

+
+ src/nvim/auevents.lua +
aliases = {
   BufCreate = 'BufAdd',
   BufRead = 'BufReadPost',
@@ -160,6 +172,9 @@
                 ところで、上では取り上げなかった FileEncoding だが、これは :help FileEncoding にしっかりと書いてある。
               

+
+ :help FileEncoding +
                                                              *FileEncoding*
 FileEncoding                    Obsolete.  It still works and is equivalent
                                 to |EncodingChanged|.
diff --git a/vhosts/blog/public/posts/2021-10-02/vim-swap-order-of-selected-lines/index.html b/vhosts/blog/public/posts/2021-10-02/vim-swap-order-of-selected-lines/index.html index 155526b7..26c07937 100644 --- a/vhosts/blog/public/posts/2021-10-02/vim-swap-order-of-selected-lines/index.html +++ b/vhosts/blog/public/posts/2021-10-02/vim-swap-order-of-selected-lines/index.html @@ -14,7 +14,7 @@ Vimで選択した行の順番を入れ替える|REPL: Rest-Eat-Program Loop - +
-- cgit v1.3-1-g0d28