~ubuntu-branches/ubuntu/wily/phabricator/wily

« back to all changes in this revision

Viewing changes to src/lint/linter/__tests__/lessc/comments.lint-test

  • Committer: Package Import Robot
  • Author(s): Richard Sellam
  • Date: 2014-11-01 23:20:06 UTC
  • mto: This revision was merged to the branch mainline in revision 4.
  • Revision ID: package-import@ubuntu.com-20141101232006-mvlnp0cil67tsboe
Tags: upstream-0~git20141101/arcanist
Import upstream version 0~git20141101, component arcanist

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/******************\
 
2
*                  *
 
3
*  Comment Header  *
 
4
*                  *
 
5
\******************/
 
6
 
 
7
/*
 
8
 
 
9
    Comment
 
10
 
 
11
*/
 
12
 
 
13
/*
 
14
 * Comment Test
 
15
 *
 
16
 * - cloudhead (http://cloudhead.net)
 
17
 *
 
18
 */
 
19
 
 
20
////////////////
 
21
@var: "content";
 
22
////////////////
 
23
 
 
24
/* Colors
 
25
 * ------
 
26
 *   #EDF8FC (background blue)
 
27
 *   #166C89 (darkest blue)
 
28
 *
 
29
 * Text:
 
30
 *   #333 (standard text) // A comment within a comment!
 
31
 *   #1F9EC9 (standard link)
 
32
 *
 
33
 */
 
34
 
 
35
/* @group Variables
 
36
------------------- */
 
37
#comments /* boo *//* boo again*/,
 
38
//.commented_out1
 
39
//.commented_out2
 
40
//.commented_out3
 
41
.comments //end of comments1
 
42
//end of comments2
 
43
{
 
44
  /**/ // An empty comment
 
45
  color: red; /* A C-style comment */  /* A C-style comment */
 
46
  background-color: orange; // A little comment
 
47
  font-size: 12px;
 
48
 
 
49
  /* lost comment */ content: @var;
 
50
 
 
51
  border: 1px solid black;
 
52
 
 
53
  // padding & margin //
 
54
  padding: 0; // }{ '"
 
55
  margin: 2em;
 
56
} //
 
57
 
 
58
/* commented out
 
59
  #more-comments {
 
60
    color: grey;
 
61
  }
 
62
*/
 
63
 
 
64
.selector /* .with */, .lots, /* of */ .comments {
 
65
  color: grey, /* blue */ orange;
 
66
  -webkit-border-radius: 2px /* webkit only */;
 
67
  -moz-border-radius: (2px * 4) /* moz only with operation */;
 
68
}
 
69
 
 
70
.mixin_def_with_colors(@a: white, // in
 
71
       @b: 1px //put in @b - causes problems! --->
 
72
           ) // the
 
73
           when (@a = white) {
 
74
        .test {
 
75
            color: @b;
 
76
        }
 
77
}
 
78
.mixin_def_with_colors();
 
79
 
 
80
#last { color: blue }
 
81
//
 
82
 
 
83
/*  *//* { *//*  *//*  *//*  */#div { color:#A33; }/* } */
 
84
~~~~~~~~~~