Skip to content

Commit

Permalink
Added MIT License
Browse files Browse the repository at this point in the history
  • Loading branch information
mthjones committed Apr 26, 2009
1 parent 9a8362a commit af7ed1e
Show file tree
Hide file tree
Showing 7 changed files with 176 additions and 11 deletions.
38 changes: 27 additions & 11 deletions CodeSenseLibraries/Python.xml
@@ -1,15 +1,31 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
@description Defines the Python CodeSense Library
@author Matt Jones <m.t.h.jones@gmail.com>
@copyright The MIT License
Copyright (c) 2009
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
-->
<codesense version="1.0">
<set name="com.mthjones.python.builtins.functions">
<behavior>
<append-dynamic>
<matched-suffix>(\s*:)|[^:]</matched-suffix>
<transform-into>(${1:args})</transform-into>
</append-dynamic>

<confirm-partial characters="._" />
</behavior>

<!-- These are taken from http://docs.python.org/2.6/library/functions.html and http://docs.python.org/3.0/library/functions.html -->
<completion string="abs">
<behavior>
Expand Down Expand Up @@ -177,7 +193,7 @@
<behavior>
<append-dynamic>
<matched-suffix>(\s*:)|[^:]</matched-suffix>
<transform-into>(${1:object}, ${2:name)</transform-into>
<transform-into>(${1:object}, ${2:name})</transform-into>
</append-dynamic>
</behavior>
</completion>
Expand Down Expand Up @@ -249,7 +265,7 @@
<behavior>
<append-dynamic>
<matched-suffix>(\s*:)|[^:]</matched-suffix>
<transform-into>(?1::('${1:/path/to/file}'${2:, '${3:mode}'${4:, ${5:bufsize}}}))</transform-into>
<transform-into>(${1:filename}${2:, ${3:mode}${4:, ${5:bufsize}}})</transform-into>
</append-dynamic>
</behavior>
</completion>
Expand Down
25 changes: 25 additions & 0 deletions CodeSenseProviders/Python.xml
@@ -1,4 +1,29 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
@description Defines the Python CodeSense Library
@author Matt Jones <m.t.h.jones@gmail.com>
@copyright The MIT License
Copyright (c) 2009
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
-->
<codesense>
<!--
<provider>
Expand Down
25 changes: 25 additions & 0 deletions Itemizers/Python.xml
@@ -1,4 +1,29 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
@description Defines the Python CodeSense Library
@author Matt Jones <m.t.h.jones@gmail.com>
@copyright The MIT License
Copyright (c) 2009
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
-->
<itemizer>
<!-- Matches a shebang line (like `#!/usr/bin/env python`) -->
<recipe name="metadata.processing.comment.shebang">
Expand Down
25 changes: 25 additions & 0 deletions Languages.xml
@@ -1,4 +1,29 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
@description Defines the Python CodeSense Library
@author Matt Jones <m.t.h.jones@gmail.com>
@copyright The MIT License
Copyright (c) 2009
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
-->
<settings>
<language id="com.mthjones.Python">
<root-zone>sourcecode.python</root-zone>
Expand Down
24 changes: 24 additions & 0 deletions SyntaxInjections/Python.xml
@@ -1,5 +1,29 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
@description Defines the Python CodeSense Library
@author Matt Jones <m.t.h.jones@gmail.com>
@copyright The MIT License
Copyright (c) 2009
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
-->
<injections>

</injections>
25 changes: 25 additions & 0 deletions Syntaxes/PythonSyntax.xml
@@ -1,4 +1,29 @@
<?xml version="1.0"?>
<!--
@description Defines the Python CodeSense Library
@author Matt Jones <m.t.h.jones@gmail.com>
@copyright The MIT License
Copyright (c) 2009
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
-->
<syntax name="sourcecode.python">
<!--
Following standards as outlined by elliottcable at:
Expand Down
25 changes: 25 additions & 0 deletions Test/test.py
@@ -1,4 +1,29 @@
#!/usr/bin/env python
"""
@description Defines the Python CodeSense Library
@author Matt Jones <m.t.h.jones@gmail.com>
@copyright The MIT License
Copyright (c) 2009
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
"""
# single-line comment

# string
Expand Down

0 comments on commit af7ed1e

Please sign in to comment.