Add tasks for all the new languages
This commit is contained in:
parent
9dc3c2bb62
commit
bba7bfd280
13208 changed files with 134745 additions and 0 deletions
|
|
@ -0,0 +1,17 @@
|
|||
function strip_comments(string s, sequence comments={"#",";"})
|
||||
for i=1 to length(comments) do
|
||||
integer k = match(comments[i],s)
|
||||
if k then
|
||||
s = s[1..k-1]
|
||||
s = trim_tail(s)
|
||||
end if
|
||||
end for
|
||||
return s
|
||||
end function
|
||||
|
||||
?strip_comments("apples, pears # and bananas")
|
||||
?strip_comments("apples, pears ; and bananas")
|
||||
?strip_comments("apples, pears and bananas ")
|
||||
?strip_comments(" WS_CAPTION = #00C00000, -- = WS_BORDER+WS_DLGFRAME")
|
||||
?strip_comments(" WS_CAPTION = #00C00000, -- = WS_BORDER+WS_DLGFRAME",{"--"})
|
||||
?strip_comments(" title = \"--Title--\"",{"--"})
|
||||
Loading…
Add table
Add a link
Reference in a new issue