Skip to content

Commit

Permalink
👌 IMPROVE: JS Doc param
Browse files Browse the repository at this point in the history
  • Loading branch information
ahmadawais committed Jul 28, 2018
1 parent 099de44 commit 9c2c184
Show file tree
Hide file tree
Showing 3 changed files with 83 additions and 29 deletions.
29 changes: 20 additions & 9 deletions demo/js.js
Expand Up @@ -5,24 +5,35 @@
* now my neck hurts. Time to hit the bed.
*
* @param String hello Hello.
* @param Number count Count of hells said.
* @param Boolean isBye True or False.
* @return Boolean
* @since 1.0.0
*/

// String.
const hello = 'Hey, hello there there there there';

// Class.
class vsc extends React.Component {}

const ahmad = function() {};
let awais = function() {};
awais = 01;
// Const.
const ahmad = function nameAhmad() {
return 'Ahmad';
};

const ahmad = 100;
// Let.
let awais = () => 'Awais';
console.log(awais);

function maedah() {
return true;
/**
* Maedah's Function.
*
* @param String name
*/
function maedah(name) {
return name;
}

const batool = () => {};

console.log(ahmad, awais);
// Regex.
const coursePlatformURL = new RegExp('/' + window.location.host + '/');
22 changes: 22 additions & 0 deletions demo/php.php
Expand Up @@ -9,6 +9,9 @@
// Header.
get_header();

$ahmad = 'Ahmad';
$awais = 'Awais';

// Display the page to admins and subscribers only.
if ( current_user_can( 'administrator' ) || current_user_can( 'subscriber' ) ) {
echo 'HELLO!';
Expand All @@ -19,3 +22,22 @@

// Footer.
get_footer();



/**
* Small Class.
*
* @since 1.0.0
*/
class Small {
/**
* Name.
*
* @var String
* @since 1.0.0
*/
public static $name;


}
61 changes: 41 additions & 20 deletions themes/shades-of-purple-color-theme.json
Expand Up @@ -157,7 +157,7 @@
// https://code.visualstudio.com/docs/getstarted/theme-color-reference#_extensions
"extensionButton.prominentBackground": "#5D37F0",
"extensionButton.prominentForeground": "#FFFFFF",
"extensionButton.prominentHoverBackground": "#ff9d00",
"extensionButton.prominentHoverBackground": "#FF9D00",
"focusBorder": "#1E1E3F",
"foreground": "#A599E9",

Expand Down Expand Up @@ -342,14 +342,14 @@
"name": "[Keyword] — The main color for Keyword",
"scope": ["keyword, storage.type.class.js"],
"settings": {
"foreground": "#ff9d00"
"foreground": "#FF9D00"
}
},
{
"name": "[Meta] — The main color for Meta",
"scope": "meta",
"settings": {
"foreground": "#9effff"
"foreground": "#9EFFFF"
}
},
{
Expand Down Expand Up @@ -426,7 +426,7 @@
"name": "[Support] Function Colors",
"scope": "support.function",
"settings": {
"foreground": "#ff9d00"
"foreground": "#FF9D00"
}
},
{
Expand Down Expand Up @@ -468,7 +468,7 @@
"name": "[INI] - Color for Punctuation Separator",
"scope": "source.ini punctuation.separator",
"settings": {
"foreground": "#ff9d00"
"foreground": "#FF9D00"
}
},
{
Expand Down Expand Up @@ -527,7 +527,7 @@
"name": "[CSS] - Color for Variable",
"scope": ["source.css variable", "source.stylus variable"],
"settings": {
"foreground": "#9effff"
"foreground": "#9EFFFF"
}
},
{
Expand All @@ -552,7 +552,7 @@
"meta.tag.html"
],
"settings": {
"foreground": "#9effff"
"foreground": "#9EFFFF"
}
},
{
Expand Down Expand Up @@ -621,23 +621,44 @@
},
{
"name": "[JAVASCRIPT] - Color for React Extends keyword",
"scope": "storage.type.extends.js",
"scope": ["storage.type.extends.js", "storage.type.class.jsdoc"],
"settings": {
"foreground": "#ff9d00"
"foreground": "#FF9D00"
}
},
{
"name": "[JAVASCRIPT] — Docs Keywords",
"scope": "punctuation.definition.block.tag.jsdoc",
"settings": {
"foreground": "#FAD000",
"foreground": "#FF9D00"
}
},
{
"name": "[JAVASCRIPT] — Docs Type",
"scope": "variable.other.jsdoc",
"settings": {
"foreground": "#9EFFFF"
}
},
{
"name": "[JAVASCRIPT] — Storage types",
"scope": ["storage.type.js", "storage.type.class.js", "storage.modifier.js", "keyword.control.flow.js"],
"settings": {
"foreground": "#FF9D00"
}
},
{
"name": "[JAVASCRIPT] — Docs Useless stuff",
"scope": "punctuation.definition.bracket.curly",
"settings": {
"foreground": "#494685"
}
},
{
"name": "Typescript React Assignment Operator",
"scope": ["keyword.operator.assignment.tsx", "keyword.operator.assignment.jsx"],
"settings": {
"foreground": "#9effff"
"foreground": "#9EFFFF"
}
},
{
Expand Down Expand Up @@ -669,7 +690,7 @@
"variable.other.property.js"
],
"settings": {
"foreground": "#9effff"
"foreground": "#9EFFFF"
}
},
{
Expand Down Expand Up @@ -718,7 +739,7 @@
"name": "[TYPESCRIPT] - Color for Storage",
"scope": "source.ts storage",
"settings": {
"foreground": "#9effff"
"foreground": "#9EFFFF"
}
},
{
Expand Down Expand Up @@ -812,14 +833,14 @@
"name": "[MARKDOWN] - Color for Link Address",
"scope": ["markup.underline.link.markdown", "markup.underline.link.image.markdown"],
"settings": {
"foreground": "#9effff"
"foreground": "#9EFFFF"
}
},
{
"name": "[MARKDOWN] - Color for Inline Code",
"scope": ["fenced_code.block.language", "markup.inline.raw.markdown"],
"settings": {
"foreground": "#9effff"
"foreground": "#9EFFFF"
}
},
{
Expand All @@ -839,7 +860,7 @@
"name": "[PUG] - Color for Entity Name",
"scope": "text.jade entity.name",
"settings": {
"foreground": "#9effff"
"foreground": "#9EFFFF"
}
},
{
Expand All @@ -853,14 +874,14 @@
"name": "[C#] - Color for Annotations",
"scope": "storage.type.cs",
"settings": {
"foreground": "#9effff"
"foreground": "#9EFFFF"
}
},
{
"name": "[C#] - Color for Properties",
"scope": "entity.name.variable.property.cs",
"settings": {
"foreground": "#9effff"
"foreground": "#9EFFFF"
}
},
{
Expand All @@ -874,7 +895,7 @@
"name": "[PHP] - Color for Entity",
"scope": ["source.php entity", "variable.other.class.php"],
"settings": {
"foreground": "#9effff"
"foreground": "#9EFFFF"
}
},
{
Expand All @@ -888,7 +909,7 @@
"name": "[PHP] - Color for Storage Modifiers",
"scope": "storage.modifier.php",
"settings": {
"foreground": "#ff9d00"
"foreground": "#FF9D00"
}
},
{
Expand Down

0 comments on commit 9c2c184

Please sign in to comment.