Commit fdca2868 authored by Ian Dennis Miller's avatar Ian Dennis Miller

update st3 snippets to match vscode

parent 7b66681c
......@@ -4,13 +4,8 @@
[ a thesis:Claim ;
thesis:appearance <#${TM_FILENAME/.ttl//}> ;
thesis:quote "${1/\s*[\(\[].+?[\)\]]\s*/ /mg}" ;
# source: "$2"
thesis:source [ a thesis:Article ;
dc:authors "${2/^(.+)[\.\,\s]+\d\d\d\d.*/\1/}" ;
dc:title "${2/^.+[\.\,\s\(]*\d\d\d\d[\.\,\s\)]*(.+?)[\?\.\s]*$/\1/}" ;
dc:year ${2/.*(\d\d\d\d).*/\1/} ;
] ;
$0] .
$0
] .
]]></content>
......
<snippet>
<content><![CDATA[ thesis:note "$1" ;]]></content>
<tabTrigger>note</tabTrigger>
<scope>source.ttl</scope>
<description>Note Snippet</description>
</snippet>
<snippet>
<content><![CDATA[[ a thesis:Claim ;
thesis:appearance <#${TM_FILENAME/.ttl//}> ;
thesis:quote "$1" ;
thesis:source <#${TM_FILENAME/.ttl//}> ;
] .
]]></content>
<content><![CDATA[ thesis:source <#${TM_FILENAME/.ttl//}> ;]]></content>
<tabTrigger>self</tabTrigger>
<scope>source.ttl</scope>
<description>Self-citation Snippet</description>
......
......@@ -3,13 +3,8 @@
[ a thesis:Claim ;
thesis:appearance <#${TM_FILENAME/.ttl//}> ;
thesis:quote "$1" ;
# source: "$2"
thesis:source [ a thesis:Article ;
dc:authors "${2/^(.+)[\.\,\s]+\d\d\d\d.*/\1/}" ;
dc:title "${2/^.+[\.\,\s\(]*\d\d\d\d[\.\,\s\)]*(.+?)[\?\.\s]*$/\1/}" ;
dc:year ${2/.*(\d\d\d\d).*/\1/} ;
] ;
$0] .
$0
] .
]]></content>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment