]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
patch 9.0.2056: no digraph for quadruple prime v9.0.2056
authorJonathan Wright <quaggy@gmail.com>
Fri, 20 Oct 2023 10:08:09 +0000 (12:08 +0200)
committerChristian Brabandt <cb@256bit.org>
Fri, 20 Oct 2023 10:08:09 +0000 (12:08 +0200)
Problem:  no digraph for quadruple prime
Solution: add quadruple prime digraph using 4'

closes: #13380

Signed-off-by: Jonathan Wright <quaggy@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
Co-authored-by: Jonathan Wright <quaggy@gmail.com>
runtime/doc/digraph.txt
src/digraph.c
src/testdir/test_digraph.vim
src/version.c

index e9bdeb5dd3a00df8ad75e8dbce972abaf0ee8a71..624aa27fad5c81c057dbc234716d67de2332e6a9 100644 (file)
@@ -1,4 +1,4 @@
-*digraph.txt*   For Vim version 9.0.  Last change: 2023 Mar 21
+*digraph.txt*   For Vim version 9.0.  Last change: 2023 Oct 20
 
 
                  VIM REFERENCE MANUAL    by Bram Moolenaar
@@ -174,6 +174,13 @@ ROUBLE
 The rouble sign was added in 2014 as 0x20bd.  Vim supports the digraphs =R and
 =P for this.  Note that R= and P= are other characters.
 
+QUADRUPLE PRIME
+
+The quadruple prime using the digraph 4' was added in 2023.  Although it is
+not part of RFC 1345, it supplements the existing digraph implementation as
+there already exist digraphs for PRIME, DOUBLE PRIME and TRIPLE PRIME using
+the 1', 2' and 3' digraphs.
+
                                                        *digraph-table*
 char  digraph  hex     dec     official name ~
 ^@     NU      0x00      0     NULL (NUL)
@@ -931,6 +938,7 @@ char  digraph       hex     dec     official name ~
 ′    1'      2032    8242    PRIME
 ″    2'      2033    8243    DOUBLE PRIME
 ‴    3'      2034    8244    TRIPLE PRIME
+⁗    4'      2057    8279    QUADRUPLE PRIME
 ‵    1"      2035    8245    REVERSED PRIME
 ‶    2"      2036    8246    REVERSED DOUBLE PRIME
 ‷    3"      2037    8247    REVERSED TRIPLE PRIME
index fb45c1524869bf6a79cdfe5e848a50ed5d064a51..0a4a4a3b4108daa01236d92b1ae2ac015d721708 100644 (file)
@@ -853,6 +853,7 @@ static digr_T digraphdefault[] = {
        {'1', '\'', 0x2032},
        {'2', '\'', 0x2033},
        {'3', '\'', 0x2034},
+       {'4', '\'', 0x2057},
        {'1', '"', 0x2035},
        {'2', '"', 0x2036},
        {'3', '"', 0x2037},
index a8a55a793b83f70d3574826461235a29994bf2af..4aed403cdab412ab2cae9a1a0347d8df18e4c598 100644 (file)
@@ -37,6 +37,9 @@ func Test_digraphs()
   call Put_Dig("=P")
   call Put_Dig("P=")
   call assert_equal(['Р']+repeat(["₽"],2)+['П'], getline(line('.')-3,line('.')))
+  " Quadruple prime
+  call Put_Dig("'4")
+  call assert_equal("⁗", getline('.'))
   " Not a digraph
   call Put_Dig("a\<bs>")
   call Put_Dig("\<bs>a")
index 4bdf57024864b804279769776f726627810ee650..7584e45fff115c2ccbcdceeebda2fa701855841e 100644 (file)
@@ -704,6 +704,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    2056,
 /**/
     2055,
 /**/