File tree Expand file tree Collapse file tree 1 file changed +21
-0
lines changed Expand file tree Collapse file tree 1 file changed +21
-0
lines changed Original file line number Diff line number Diff line change @@ -1882,6 +1882,27 @@ class Lexer
1882
1882
// otherwise something like i"$(func("thing")) stuff" can still include it
1883
1883
1884
1884
return true ;
1885
+
1886
+ case ' _' :
1887
+ case ' a' : .. case ' z' :
1888
+ case ' A' : .. case ' Z' :
1889
+
1890
+ // always put the string part in first
1891
+ token.appendInterpolatedPart(stringbuffer);
1892
+ stringbuffer.setsize(0 );
1893
+
1894
+ // identifier, scan it with the lexer to follow all rules
1895
+ auto pstart = p;
1896
+ Token tok;
1897
+ scan(&tok);
1898
+
1899
+ // then put the interpolated string segment
1900
+ token.appendInterpolatedPart(pstart[0 .. p - pstart]);
1901
+
1902
+ stringbuffer.setsize(0 );
1903
+
1904
+ return true ;
1905
+
1885
1906
default :
1886
1907
// nothing special
1887
1908
return false ;
You can’t perform that action at this time.
0 commit comments