Skip to content

Commit

Permalink
More consistent indentation
Browse files Browse the repository at this point in the history
  • Loading branch information
moltenform committed Jun 3, 2019
1 parent 9113dca commit e74fac5
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 24 deletions.
1 change: 0 additions & 1 deletion files/files/api_files/adcl.properties
Expand Up @@ -108,4 +108,3 @@ braces.cpp.style=10

command.help.$(file.patterns.dcl)=https://duckduckgo.com/?q=$(CurrentWord)+site%3Ahelp.autodesk.com
command.help.subsystem.$(file.patterns.dcl)=2

4 changes: 2 additions & 2 deletions files/files/api_files/cpp_more.properties
Expand Up @@ -568,8 +568,8 @@ arduino.port=/dev/ttyACM0
arduino.command.invoke=$(arduino.program) --board $(arduino.board) --port $(arduino.port)

if PLAT_UNIX
command.compile.$(file.patterns.arduino)=$(arduino.command.invoke) --verify $(FilePath)
command.build.$(file.patterns.arduino)=$(arduino.command.invoke) --upload $(FilePath)
command.compile.$(file.patterns.arduino)=$(arduino.command.invoke) --verify $(FilePath)
command.build.$(file.patterns.arduino)=$(arduino.command.invoke) --upload $(FilePath)

#~~ch
command.compile.*.ch=ch -n $(FileNameExt)
Expand Down
14 changes: 7 additions & 7 deletions files/files/api_files_gen/cleanapi.cc
Expand Up @@ -8,15 +8,15 @@
#include <std_disclaimer.h>
"I do not accept responsibility for any effects, adverse or otherwise,
that this code may have on you, your computer, your sanity, your dog,
and anything else that you can think of. Use it at your own risk."
"I do not accept responsibility for any effects, adverse or otherwise,
that this code may have on you, your computer, your sanity, your dog,
and anything else that you can think of. Use it at your own risk."
Usage:
cleanapi <in.api> <out.api> [OPTIONS]
cleanapi <in.api> <out.api> [OPTIONS]
Options: -c -> Remove Comments
-v -> Be (frustratingly :) verbose..
Options: -c -> Remove Comments
-v -> Be (frustratingly :) verbose..
By Deepak S.
deepaks@operamail.com
Expand Down
10 changes: 5 additions & 5 deletions files/files/api_files_gen/phpapi.php.txt
Expand Up @@ -48,11 +48,11 @@ Requires ctags <http://ctags.sourceforge.net>
Usage: php.exe -f phpapi.php [options] FOLDER

Options:
--create - creates SciTE.properties files in all subfolders of FOLDER,
if they do not exist. if they do exist, then replaces
the api.$(file.patterns.php)=... line in those files.
--api=apifile - add apifile to the api.$(file.patterns.php)= line.
-v - verbose
--create - creates SciTE.properties files in all subfolders of FOLDER,
if they do not exist. if they do exist, then replaces
the api.$(file.patterns.php)=... line in those files.
--api=apifile - add apifile to the api.$(file.patterns.php)= line.
-v - verbose
Sample usage:
php -f phpapi.php --create --api='$(SciteDefaultHome)/api/php.api' ~/myproject/

Expand Down
18 changes: 9 additions & 9 deletions files/files/helpers/swapheader.lua
Expand Up @@ -3,27 +3,27 @@
-- By gusnan
function exists(file)
res=false

f=io.open(file)
if (f~=nil) then
io.close(f)
res=true
end

return res
end

local cpp_ext = 'cpp'
local cpp_ext2 = 'cc'
local c_ext='c'
local h_ext = 'h'
local f = props['FileName'] -- e.g 'test'
local ext = props['FileExt'] -- e.g 'cpp'
local path = props['FileDir'] -- e.g. '/home/steve/progs'

local filename=path..'/'..f..'.'..ext
local curfilename=filename

if ext==cpp_ext or ext==c_ext or ext==cpp_ext2 then
ext=h_ext
elseif ext==h_ext then
Expand All @@ -38,12 +38,12 @@ elseif ext==h_ext then
end
end
end

filename=path..'/'..f..'.'..ext

-- if the file exists, open it!
if (exists(filename)==true) and (filename ~= curfilename) then
scite.Open(filename)
scite.Open(filename)
else
print('no c/header was found.')
print('no c/header was found.')
end

0 comments on commit e74fac5

Please sign in to comment.